/* Reset and Base Styles */
* {
    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;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling/swiping */
    touch-action: pan-y; /* Only allow vertical touch scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    flex-wrap: wrap;
}

.header .nav-and-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.logo h1 i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

.logo p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: relative;
    display: block;
}

.hamburger-btn {
    background: transparent;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    min-width: 50px;
    min-height: 50px;
    justify-content: center;
    align-items: center;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.hamburger-content.active {
    right: 0;
}

.hamburger-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.hamburger-header h3 i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-links {
    padding: 2rem 0;
}

.hamburger-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.hamburger-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #3498db;
    color: #ffffff;
}

.hamburger-link i {
    width: 30px;
    font-size: 1.2rem;
    margin-right: 1rem;
    color: #ffffff;
}

.hamburger-link:hover i {
    color: #3498db;
}

.hamburger-link span {
    font-weight: 600;
    font-size: 1rem;
}

.hamburger-link.active {
    background: #3498db;
    color: white;
    border-left-color: #2980b9;
}

.hamburger-link.active i {
    color: white;
}

.hamburger-link.active:hover {
    background: #2980b9;
    color: white;
}

/* Overlay for mobile */
.hamburger-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    transition: left 0.3s ease;
}

.hamburger-content.active::before {
    left: 0;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.matches-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.matches-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header h2 i {
    margin-right: 0.5rem;
    color: #f39c12;
}

.loading {
    color: white;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
}

.loading i {
    margin-right: 0.5rem;
    color: #f39c12;
}

/* Matches Grid */
.matches-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.match-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    width: 100%;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: #3498db;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.league-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.league-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.league-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.match-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-live {
    background: #e74c3c;
    color: white;
    animation: pulse 2s infinite;
}

.status-scheduled {
    background: #3498db;
    color: white;
}

.status-finished {
    background: #95a5a6;
    color: white;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.team.home {
    justify-content: flex-start;
}

.team.away {
    justify-content: flex-end;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 0 1rem;
}

.match-time {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.match-venue {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Country Header */
.country-header {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
}

.country-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.country-header .flag {
    font-size: 1.8rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Error Message */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
}

.no-matches {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 2rem 0;
}

/* Page Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header h1 i {
    margin-right: 1rem;
    color: #f39c12;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
}

.submit-btn i {
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Legal Content Styles */
.legal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-section h3 {
    color: #3498db;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: #7f8c8d;
    line-height: 1.6;
    margin-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

/* About Page Styles */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-text h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-text ul {
    color: #2c3e50;
    line-height: 1.6;
    margin-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.stats-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

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

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

.stat-icon {
    width: 80px;
    height: 80px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.stat-item h3 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Team Section */
.team-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.team-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.team-member h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

/* Values Section */
.values-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.values-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.value-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.value-item p {
    color: #2c3e50;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section h3 i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

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


.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Logo Link */
.logo h1 a {
    color: inherit;
    text-decoration: none;
}

.logo h1 a:hover {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-and-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .nav {
        display: flex; /* Show nav buttons on mobile */
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .footer {
        margin-top: 1rem;
        padding: 2rem 0 1rem;
    }
    
    body {
        min-height: auto;
        padding-bottom: 0;
        overflow-x: hidden;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    .main {
        overflow-x: hidden;
    }
    
    .hamburger-content {
        width: 100%;
        max-width: 100%;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .match-card {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team {
        justify-content: center !important;
    }
    
    .match-score {
        margin: 0;
    }
    
    /* Page responsive */
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-section.reverse {
        direction: ltr;
    }
    
    .stats-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: block; /* Show hamburger on desktop too */
    }
    
    .nav {
        display: flex; /* Show nav buttons on desktop */
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 80px;
        flex: 1;
        max-width: 100px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-card,
    .contact-form-container,
    .faq-section,
    .legal-content,
    .stats-section,
    .team-section,
    .values-section {
        padding: 1rem;
    }
    
    .image-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .image-placeholder i {
        font-size: 2rem;
    }
}
