/**
 * Quiz Game Interface Styles
 */

/* Full Screen Game Layout */
.quiz-game {
    background: #000;
    color: white;
}

.quiz-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.quiz-header {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 300;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-header h1 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin: 0;
}

.tab-badge {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.header-right {
    display: flex;
    gap: 0.75rem;
}

.header-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Photo Container */
.photo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
    min-height: 300px;
    padding: 1rem;
}

.plant-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Loading State */
.photo-container .loading {
    color: var(--text-muted);
}

.photo-container .spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color);
}

/* Error Message */
.error-message {
    color: #ef4444;
    text-align: center;
    padding: 2rem;
    font-size: 1.125rem;
}

/* Names Overlay */
.names-overlay {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 200;
}

.names-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.names-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    min-width: 280px;
    max-width: 90vw;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dutch-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.latin-name {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.photo-credit {
    font-size: 0.75rem;
    color: #64748b;
    opacity: 0.8;
}

/* Preloading Indicator */
.preloading-indicator {
    position: fixed;
    top: 70px;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 250;
    backdrop-filter: blur(10px);
}

.preloading-indicator.visible {
    opacity: 1;
}

/* Controls Footer */
.quiz-controls {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.status-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.quiz-controls .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .quiz-header {
        padding: 0.5rem 1rem;
    }
    
    .quiz-header h1 {
        font-size: 1rem;
    }
    
    .tab-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }
    
    .header-right {
        gap: 0.25rem;
    }
    
    .header-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .photo-container {
        padding: 0.5rem;
        min-height: 250px;
    }
    
    .plant-image {
        max-height: 60vh;
    }
    
    .names-overlay {
        bottom: 100px;
    }
    
    .names-content {
        min-width: 250px;
        max-width: 85vw;
        padding: 0.75rem 1.25rem;
    }
    
    .dutch-name {
        font-size: 1.125rem;
    }
    
    .latin-name {
        font-size: 0.875rem;
    }
    
    .photo-credit {
        font-size: 0.625rem;
    }
    
    .quiz-controls {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .status-text {
        font-size: 0.75rem;
        text-align: center;
        order: 2;
    }
    
    .control-buttons {
        width: 100%;
        justify-content: space-between;
        order: 1;
        gap: 0.5rem;
    }
    
    .quiz-controls .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
        flex: 1;
    }
    
    .preloading-indicator {
        top: 50px;
        right: 0.625rem;
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Small Height Devices */
@media (max-height: 600px) {
    .plant-image {
        max-height: 50vh;
    }
    
    .names-overlay {
        bottom: 80px;
    }
    
    .names-content {
        padding: 0.625rem 1rem;
    }
    
    .dutch-name {
        font-size: 1rem;
    }
    
    .latin-name {
        font-size: 0.8125rem;
    }
}