/* ============================================
   SOCCER LEGENDS - MAIN STYLESHEET
   Author: Student Project
   Description: Complete CSS with all styles
   for homepage, players page, and quiz
   ============================================ */

/* === CSS Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #ffffff;
}

/* === Particle Background === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 0.8;
    }
}

/* === Navigation Bar === */
.navbar {
    background: rgba(15, 52, 96, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #e94560;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.soccer-icon-spin {
    animation: ballSpin 3s linear infinite;
    color: #e94560;
}

@keyframes ballSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* HOVER EFFECT: Navigation links */
.nav-menu a:hover {
    background: #e94560;
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: #e94560;
    color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* === Header Section === */
.header {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.soccer-ball {
    display: inline-block;
    animation: bounce 1.2s infinite;
}

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

.subtitle {
    color: #e94560;
    font-size: 1.4rem;
    margin-top: 10px;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* === Introduction Section === */
.intro-section {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #e94560;
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* === Call to Action Button === */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #e94560;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* HOVER EFFECT: CTA button */
.cta-button:hover {
    background: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

/* === Player Grid === */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* === Player Cards === */
.player-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* HOVER EFFECT: Player cards */
.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

/* === Player Image Container === */
.player-image-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid #e94560;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HOVER EFFECT: Image container glows */
.player-card:hover .player-image-container {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

/* HOVER EFFECT: Image zooms */
.player-card:hover .player-img {
    transform: scale(1.1);
}

.player-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.player-card .position {
    color: #e94560;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Stats inside cards */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    color: #aaa;
    font-size: 0.9rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e94560;
}

/* === Modal Styles === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    margin: 50px auto;
    position: relative;
    border: 2px solid #e94560;
    animation: modalSlide 0.5s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(-200px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #e94560;
    cursor: pointer;
    transition: transform 0.3s;
}

/* HOVER EFFECT: Close button */
.close-modal:hover {
    transform: rotate(90deg) scale(1.2);
}

.modal-player-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e94560;
    margin: 0 auto 20px;
    display: block;
}

/* === Video Section === */
.video-section h2 {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #e94560;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #e94560;
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-credit {
    text-align: center;
    margin-top: 10px;
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
}

/* === Featured Section === */
.featured-section h2 {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #e94560;
}

/* === Quick Stats Section === */
.stats-section {
    margin: 40px 0;
}

.stats-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #e94560;
    margin-bottom: 30px;
}

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

.fact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    border-color: #e94560;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.fact-icon {
    font-size: 2.5rem;
    color: #e94560;
    margin-bottom: 15px;
}

.fact-card h3 {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 10px;
}

.fact-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    margin: 5px 0;
}

.fact-card p {
    color: #ccc;
    font-size: 0.9rem;
}

/* === CTA Section === */
.cta-section {
    margin: 40px 0;
}

.cta-content {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(233, 69, 96, 0.05));
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    border: 2px solid rgba(233, 69, 96, 0.3);
}

.cta-content h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 25px;
}

/* ============================================
   QUIZ STYLES
   ============================================ */

.quiz-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #e94560;
}

/* Individual Quiz Question Cards */
.quiz-question-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.quiz-question-card:hover {
    border-color: #e94560;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quiz-question-card h3 {
    color: #e94560;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.question-text {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

/* Options Container */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each Option Label */
.quiz-option-label {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

/* HOVER EFFECT: Quiz options */
.quiz-option-label:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
    transform: translateX(5px);
}

/* Radio Buttons */
.quiz-option-label input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #e94560;
    cursor: pointer;
    vertical-align: middle;
}

/* States for correct/wrong selections */
.quiz-option-label.selected-correct {
    background: rgba(39, 174, 96, 0.3) !important;
    border-color: #27ae60 !important;
    color: #27ae60 !important;
    font-weight: bold;
}

.quiz-option-label.selected-wrong {
    background: rgba(231, 76, 60, 0.3) !important;
    border-color: #e74c3c !important;
    color: #e74c3c !important;
    font-weight: bold;
}

/* Feedback Messages */
.feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: none;
}

.feedback.correct-feedback {
    display: block !important;
    background: rgba(39, 174, 96, 0.2) !important;
    color: #27ae60 !important;
    border-left: 4px solid #27ae60 !important;
}

.feedback.wrong-feedback {
    display: block !important;
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
    border-left: 4px solid #e74c3c !important;
}

/* Score Section */
.score-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Quiz Buttons */
.quiz-button {
    padding: 15px 40px;
    background: #e94560;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    font-weight: bold;
}

/* HOVER EFFECT: Quiz button */
.quiz-button:hover {
    background: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.clear-button {
    background: transparent !important;
    border: 2px solid #e94560 !important;
    color: #e94560 !important;
}

.clear-button:hover {
    background: #e94560 !important;
    color: #ffffff !important;
}

/* Score Display */
.score-display {
    margin-top: 30px;
    padding: 30px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(233, 69, 96, 0.3);
}

.score-display h3 {
    font-size: 2rem;
    color: #e94560;
    margin-bottom: 15px;
}

.score-display .big-score {
    font-size: 5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.3);
    margin: 10px 0;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(15, 52, 96, 0.95);
    margin-top: 60px;
    border-top: 3px solid #e94560;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
}

.footer-section h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
    color: #aaa;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e94560;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    color: #aaa;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 52, 96, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 15px;
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .player-grid {
        grid-template-columns: 1fr;
    }
    
    .player-image-container {
        width: 150px;
        height: 150px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 25px;
    }
    
    .quiz-question-card {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}