/* Student Interface Styles */

.student-container {
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

/* Welcome Screen */
.welcome-screen {
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mascot-container {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: pulse 3s ease-in-out infinite;
    margin: 0 auto;
    display: block;
}

.welcome-title {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.welcome-text {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.student-form {
    margin-top: 30px;
}

.student-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 20px;
    border: 3px solid #ddd;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.student-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.btn-start {
    margin-top: 20px;
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Game Hub */
.game-hub {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.hub-mascot {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.hub-header h1 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.hub-subtitle {
    font-size: 18px;
    color: #7f8c8d;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: white;
    border: 3px solid #ddd;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.game-title {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.game-number {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 600;
}

/* Completion Screen */
.completion-screen {
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.completion-title {
    font-size: 48px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.completion-text {
    font-size: 22px;
    color: #7f8c8d;
    margin: 15px 0;
}

.completion-stats {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-play-again {
    display: inline-block;
    margin-top: 20px;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    background: var(--secondary-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-play-again:hover {
    background: #27ae60;
    transform: scale(1.05);
}

.completion-footer {
    margin-top: 30px;
    font-size: 14px;
    color: #95a5a6;
}

/* Logout button hover effects */
button[onclick*="studentLogout"] {
    transition: all 0.3s ease;
}

button[onclick*="studentLogout"]:hover {
    background: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4) !important;
}

button[onclick*="studentLogout"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3) !important;
}

/* Confetti Animation */
.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
    to {
        transform: translateY(600px) rotate(360deg);
        opacity: 0;
    }
}

/* Fixed Mascot in Bottom Left Corner */
.fixed-mascot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

.fixed-mascot img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.fixed-mascot.celebrating img {
    animation: celebrate 0.6s ease;
}

.mascot-speech-bubble {
    position: absolute;
    bottom: 90px;
    left: 0;
    background: white;
    padding: 12px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    max-width: 250px;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mascot-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.mascot-speech-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mascot-speech-bubble p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.mascot-speech-bubble.correct {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.mascot-speech-bubble.correct p {
    color: white;
}

.mascot-speech-bubble.wrong {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.mascot-speech-bubble.wrong p {
    color: white;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-screen,
    .game-hub,
    .completion-screen {
        padding: 40px 30px;
    }
    
    .welcome-title {
        font-size: 32px;
    }
    
    .mascot-image {
        width: 120px;
        height: 120px;
    }
    
    .fixed-mascot {
        bottom: 15px;
        left: 15px;
    }
    
    .fixed-mascot img {
        width: 60px;
        height: 60px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .game-card {
        padding: 20px 15px;
    }
    
    .game-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .hub-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 28px;
    }
    
    .student-input {
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .btn-start {
        font-size: 20px;
        padding: 16px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .completion-title {
        font-size: 36px;
    }
}

