/* Dashboard page specific styles */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.sparkle-effect {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff, transparent);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard {
    width: 100%;
    max-width: 1500px;
    padding: 50px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255,255,255,0.3);
}

/* Waiting Screen */
.waiting-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: float 6s ease-in-out infinite;
}

.waiting-screen h1 {
    font-size: 72px;
    margin-bottom: 25px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: float 4s ease-in-out infinite;
}

.waiting-screen p {
    font-size: 32px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Question Display */
.question-display {
    display: none;
    flex: 1;
    flex-direction: column;
}

.question-display.active {
    display: flex;
    animation: slideInUp 0.6s ease-out;
}

.question-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px;
    border-radius: 25px;
    margin-bottom: 35px;
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.5),
        inset 0 -5px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
}

.question-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    animation: shine 3s infinite;
}

.question-text {
    font-size: 42px;
    font-weight: 900;
    color: white;
    text-align: center;
    line-height: 1.4;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* Media Container */
.media-container {
    margin-bottom: 30px;
    display: none;
}

.media-container.active {
    display: block;
}

.media-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

.media-audio {
    width: 100%;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Answers Section */
.answers-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    flex: 1;
}


.answer-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 5px solid #ddd;
    border-radius: 25px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    position: relative;
    overflow: hidden;
    box-shadow: 
        8px 8px 25px rgba(0,0,0,0.2),
        inset 0 -3px 15px rgba(0,0,0,0.1);
}

.answer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.answer-card:hover::before {
    left: 100%;
}

.answer-card.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.answer-card.correct {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    border-color: #4a9428;
    z-index: 10;
}

.answer-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.answer-card.correct .answer-number {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.answer-text {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
}

.answer-card.correct .answer-text {
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.answer-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Buzzers Display */
.buzzers-display {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        inset 0 -2px 10px rgba(0,0,0,0.1);
    max-width: 350px;
    border: 4px solid #FFA07A;
    z-index: 1000;
}

.buzzers-display h3 {
    color: #F57C00;
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buzzers-display .buzzer-item {
    padding: 15px 18px;
    background: linear-gradient(145deg, #fff, #FFF9C4);
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 6px solid #FFA07A;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: block;
}

.buzzers-display .buzzer-item:hover {
    transform: translateX(5px);
}

/* Volume Control */
.volume-control {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.volume-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow:
        0 8px 20px rgba(102, 126, 234, 0.4),
        inset 0 -3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.volume-btn:hover {
    transform: scale(1.1);
    box-shadow:
        0 12px 25px rgba(102, 126, 234, 0.6),
        inset 0 -3px 15px rgba(0,0,0,0.3);
}

.volume-slider-container {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.3),
        inset 0 -2px 10px rgba(0,0,0,0.1);
    border: 2px solid #ddd;
    display: none;
    min-width: 180px;
    backdrop-filter: blur(5px);
}

.volume-slider-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.95);
}

.volume-slider-container::after {
    content: '';
    position: absolute;
    top: -12px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #ddd;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 8px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    cursor: pointer;
}

#volumeValue {
    font-size: 12px;
    color: #666;
    font-weight: 700;
    text-align: center;
    display: block;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .volume-control {
        top: 10px;
        right: 10px;
    }
    
    .volume-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .volume-slider-container {
        min-width: 150px;
        padding: 12px;
    }
}

.buzzers-display .buzzer-item:first-child {
    border-left-color: #56ab2f;
    background: linear-gradient(145deg, #a8e063, #8ed14a);
    font-weight: 900;
    font-size: 20px;
    box-shadow:
        0 8px 20px rgba(86, 171, 47, 0.5),
        3px 3px 12px rgba(0,0,0,0.2);
}

.buzzer-name {
    font-weight: 900;
    color: #333;
}

.buzzers-display .buzzer-item:first-child .buzzer-name {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Audio Start Overlay */
.audio-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-in;
}

.audio-start-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    color: white;
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.5),
        inset 0 -5px 30px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.audio-start-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    animation: shine 3s infinite;
}

.audio-start-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.audio-start-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.audio-start-btn {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 900;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 10px 30px rgba(86, 171, 47, 0.5),
        inset 0 -3px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.audio-start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.audio-start-btn:hover::before {
    left: 100%;
}

.audio-start-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(86, 171, 47, 0.7),
        inset 0 -3px 20px rgba(0,0,0,0.4);
}

.audio-start-btn:active {
    transform: translateY(1px) scale(0.95);
}

.audio-start-btn i {
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
