/* Submit Page Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fullscreen Camera */
.camera-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.camera-fullscreen.active {
    display: flex;
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.camera-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.camera-title svg {
    flex-shrink: 0;
}

.camera-back,
.camera-switch {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.camera-back svg,
.camera-switch svg {
    width: 24px;
    height: 24px;
}

.camera-back:hover,
.camera-switch:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.camera-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.camera-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-viewport canvas {
    display: none;
}

.camera-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.camera-footer {
    padding: 30px 20px;
    background: rgba(0,0,0,0.5);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Capture Button */
.capture-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 4px solid rgba(255,255,255,0.5);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.capture-button:hover {
    transform: scale(1.05);
}

.capture-button:active {
    transform: scale(0.95);
}

.capture-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid #f0f0f0;
}

/* Action Buttons */
.btn-action {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-retake {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn-retake:hover {
    background: rgba(255,255,255,0.3);
}

.btn-use {
    background: var(--success);
    color: white;
}

.btn-use:hover {
    background: #059669;
    transform: scale(1.02);
}

/* Submit Container */
.submit-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.submit-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.submit-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.submit-header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-header h1 svg {
    flex-shrink: 0;
}

.event-description {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Form */
.submit-form {
    padding: 25px;
}

/* Photo Selection */
.photo-selection {
    text-align: center;
    padding: 20px 0;
}

.selection-label {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.selection-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.selection-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.selection-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.selection-btn:active {
    transform: translateY(0);
}

.selection-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-icon svg {
    width: 40px;
    height: 40px;
}

.selection-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Photo Preview */
.photo-preview {
    margin-bottom: 20px;
}

.preview-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.change-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.change-photo:hover {
    background: var(--danger);
    transform: scale(1.05);
}

/* Form Fields */
.form-fields {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 0 25px 20px;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 50px 30px;
}

.success-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 64px;
    height: 64px;
}

.success-message h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.success-message p {
    color: #6b7280;
    margin-bottom: 8px;
}

.pending-note {
    font-size: 0.9rem;
    color: var(--primary);
}

.success-message .btn {
    margin-top: 25px;
}

/* Footer */
.submit-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 540px) {
    .submit-container {
        padding: 10px;
    }
    
    .submit-card {
        border-radius: var(--radius);
    }
    
    .submit-header {
        padding: 25px 20px;
    }
    
    .submit-header h1 {
        font-size: 1.4rem;
    }
    
    .submit-form {
        padding: 20px;
    }
    
    .selection-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .selection-btn {
        flex-direction: row;
        padding: 20px 30px;
        justify-content: center;
    }
    
    .selection-icon {
        font-size: 2rem;
    }
    
    .capture-button {
        width: 70px;
        height: 70px;
    }
    
    .capture-ring {
        width: 52px;
        height: 52px;
    }
    
    .btn-action {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
