/* EventPhotoGen Frontend Styles */

.epg-upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Event Header */
.epg-event-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.epg-event-header h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 600;
}

.epg-event-date, .epg-event-location {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Upload Section */
.epg-upload-section {
    margin-bottom: 30px;
}

.epg-upload-area {
    border: 3px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
}

.epg-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.epg-upload-area.dragover {
    border-color: #667eea;
    background: #e8f2ff;
    transform: scale(1.02);
}

.epg-upload-info {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 0.9em;
}

/* Buttons */
.epg-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.epg-btn-primary {
    background: #667eea;
    color: white;
}

.epg-btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.epg-btn-secondary {
    background: #6c757d;
    color: white;
}

.epg-btn-secondary:hover {
    background: #5a6268;
}

.epg-btn-success {
    background: #28a745;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
}

.epg-btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.epg-btn-small {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 40px;
}

/* Preview Section */
.epg-preview-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.epg-preview-container {
    text-align: center;
}

#epg-preview-canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Controls */
.epg-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.epg-zoom-controls, .epg-position-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.epg-zoom-controls label, .epg-position-controls label {
    font-weight: 600;
    color: #495057;
}

#epg-zoom-level {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #667eea;
}

/* Action Section */
.epg-action-section {
    text-align: center;
    margin-bottom: 30px;
}

#epg-loading {
    padding: 20px;
    color: #667eea;
    font-size: 1.1em;
}

#epg-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Section */
#epg-result-section {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#epg-result-section h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#epg-final-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.epg-download-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Event Selector */
#epg-event-selector {
    text-align: center;
}

#epg-event-selector h2 {
    margin-bottom: 30px;
    color: #333;
}

.epg-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.epg-event-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.epg-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.epg-event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.epg-event-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.epg-event-card .epg-event-date,
.epg-event-card .epg-event-location {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.epg-select-event {
    margin-top: 15px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .epg-upload-container {
        padding: 15px;
    }
    
    .epg-event-header h2 {
        font-size: 1.5em;
    }
    
    .epg-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .epg-zoom-controls, .epg-position-controls {
        justify-content: center;
    }
    
    .epg-download-actions {
        flex-direction: column;
    }
    
    .epg-events-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
.epg-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.epg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.epg-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Error States */
.epg-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
}

.epg-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
}

