/* ICAT Cricket Website Styles */

:root {
    --primary-blue: #2c5282;
    --secondary-blue: #4a90a4;
    --light-blue: #bee3f8;
    --accent-red: #e53e3e;
    --dark-navy: #1a365d;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --medium-gray: #718096;
    --dark-gray: #2d3748;
    --border-color: #e2e8f0;
    --success-green: #38a169;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    min-width: 320px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(44, 82, 130, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
}

.contact-info i {
    margin-right: 8px;
    opacity: 0.8;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-links a:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--light-blue);
    overflow: hidden;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-placeholder span {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 18px;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--light-gray);
}

.mobile-toggle.active {
    color: var(--primary-blue);
}

/* Navigation Styles */
.navigation {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 25px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-red);
    background: var(--light-blue);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 25px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--success-green), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2f855a, #3182ce);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* Alternative button styles */
.btn-teal {
    background: var(--secondary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.3);
    border: none;
}

.btn-teal:hover {
    background: #357a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

.btn-green {
    background: var(--success-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
    border: none;
}

.btn-green:hover {
    background: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: var(--white);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--medium-gray);
    font-weight: 500;
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.card-image {
    height: 200px;
    background: linear-gradient(45deg, var(--light-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.card-description {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--accent-red);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

/* Comprehensive Mobile Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .nav-menu {
        gap: 15px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header Mobile Fixes */
    .header-top {
        display: none; /* Hide contact info on mobile to save space */
    }
    
    .header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    
    body {
        padding-top: 70px; /* Account for fixed header */
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo {
        flex-direction: row;
        align-items: center;
        flex: 1;
    }
    
    .logo-placeholder {
        margin-right: 10px;
        margin-bottom: 0;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .logo-text {
        text-align: left;
        flex: 1;
    }
    
    .logo-text h1 {
        font-size: 16px;
        line-height: 1.1;
        margin-bottom: 2px;
        font-weight: 600;
    }
    
    .logo-text p {
        font-size: 10px;
        opacity: 0.8;
        display: none; /* Hide tagline on mobile to save space */
    }
    
    .header-actions {
        display: none; /* Hide join button on mobile header */
    }
    
    /* Navigation Mobile */
    .navigation {
        position: relative;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-container {
        position: relative;
    }
    
    .mobile-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: none;
        border: none;
        color: var(--primary-blue);
        font-size: 20px;
        padding: 10px;
        cursor: pointer;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        margin: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 15px 20px;
        text-align: left;
        border-bottom: none;
        border-radius: 0;
        font-size: 16px;
        display: block;
        width: 100%;
        color: var(--dark-gray);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--light-gray);
        color: var(--primary-blue);
    }
    
    /* Mobile dropdown handling */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--light-gray);
        margin: 0;
        padding-left: 20px;
        display: none;
    }
    
    .nav-item:hover .dropdown {
        display: none; /* Disable hover on mobile */
    }
    
    .nav-item.dropdown-active .dropdown {
        display: block;
    }
    
    .dropdown a {
        padding: 10px 20px;
        font-size: 14px;
        border-bottom: none;
        border-radius: 0;
    }
    
    .dropdown a:hover {
        background: rgba(44, 82, 130, 0.1);
        padding-left: 30px;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 30px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 12px;
        font-weight: 700;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    .hero p:last-of-type {
        font-size: 13px;
        opacity: 0.9;
    }
    
    .cta-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        flex: 1;
        max-width: 160px;
    }
    
    /* Content Sections Mobile */
    .stats-section,
    .featured-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 10px;
        font-weight: 700;
    }
    
    .section-subtitle {
        font-size: 14px;
        text-align: center;
        margin-bottom: 0;
        padding: 0 20px;
        line-height: 1.4;
    }
    
    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 25px;
    }
    
    .stat-card {
        padding: 20px 8px;
        text-align: center;
        border-radius: 8px;
    }
    
    .stat-number {
        font-size: 32px;
        margin-bottom: 5px;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 12px;
        font-weight: 500;
    }
    
    /* Featured Grid Mobile */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .featured-card {
        margin: 0;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .card-image {
        height: 150px;
        font-size: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .card-image i {
        font-size: 48px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .card-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .card-link {
        font-size: 14px;
        font-weight: 600;
    }
    
    /* Tables Mobile */
    .history-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -15px;
        padding: 0 15px;
    }
    
    .history-table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .history-table thead th {
        padding: 12px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .history-table tbody td {
        padding: 12px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 25px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
    
    .footer-section {
        padding: 0 15px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
        color: var(--white);
    }
    
    .footer-section ul li {
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .footer-section ul li i {
        width: 16px;
        text-align: center;
        margin-right: 8px;
        font-size: 12px;
    }
    
    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 11px;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Forms Mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        padding: 12px;
        width: 100%;
    }
    
    /* Touch Improvements */
    .btn:active,
    .nav-link:active,
    .card:active {
        transform: scale(0.98);
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra Small Mobile (iPhone SE, etc.) */
@media (max-width: 480px) {
    .header-top {
        font-size: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 5px;
        font-size: 10px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .hero h1 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px 16px;
        max-width: 100%;
    }
    
    .card-content {
        padding: 15px 12px;
    }
    
    .footer-section h3 {
        font-size: 14px;
    }
    
    .footer-section ul li {
        font-size: 12px;
    }
}

/* Mobile Table Improvements */
@media (max-width: 768px) {
    /* All tables mobile-friendly */
    .history-table-container,
    .table-container,
    table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 15px 0;
    }
    
    /* Specific table styling */
    .history-table,
    table {
        min-width: 600px;
        font-size: 11px;
        border-collapse: collapse;
    }
    
    .history-table th,
    .history-table td,
    table th,
    table td {
        padding: 8px 6px;
        font-size: 11px;
        white-space: nowrap;
        text-align: left;
    }
    
    /* Teams grid mobile */
    .teams-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team-card {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    /* Format grid mobile */
    .format-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .format-card {
        padding: 15px;
        text-align: center;
    }
    
    /* Tournament specific mobile */
    .tournament-header {
        padding: 40px 0;
    }
    
    .tournament-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
        margin: 15px 0;
    }
    
    .tournament-stat {
        text-align: center;
    }
    
    .stat-number {
        font-size: 20px;
        line-height: 1.1;
    }
    
    .stat-label {
        font-size: 10px;
        margin-top: 2px;
    }
    
    /* Info grids mobile */
    .info-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-sidebar {
        order: -1;
        padding: 15px;
    }
    
    .sidebar-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .sidebar-section ul li {
        padding: 6px 0;
        font-size: 13px;
    }
    
    /* League page specific */
    .league-header h1,
    .tournament-header h1 {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .league-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        line-height: 1.2;
        border-radius: 6px;
    }
    
    /* Navigation improvements */
    .nav-link {
        padding: 16px 20px;
        font-size: 15px;
        line-height: 1.2;
    }
    
    /* Typography improvements */
    h1 { font-size: 22px; line-height: 1.2; }
    h2 { font-size: 20px; line-height: 1.3; }
    h3 { font-size: 18px; line-height: 1.3; }
    h4 { font-size: 16px; line-height: 1.4; }
    
    p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Form improvements */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
        display: block;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        padding: 12px;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Image responsive */
    img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
    }
    
    /* Card improvements */
    .card,
    .featured-card,
    .stat-card,
    .value-card {
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* List improvements */
    ul, ol {
        padding-left: 20px;
    }
    
    li {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 5px;
    }
    
    /* Footer mobile specific */
    .footer {
        padding: 25px 0 15px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
        color: var(--primary-blue);
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .footer-section ul li a {
        color: var(--medium-gray);
        text-decoration: none;
    }
    
    .footer-section ul li a:hover {
        color: var(--primary-blue);
    }
    
    .footer-bottom {
        border-top: 1px solid var(--border-color);
        margin-top: 20px;
        padding-top: 15px;
        font-size: 11px;
        color: var(--medium-gray);
    }
}

/* iPhone specific fixes */
@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .container {
        padding: 0 8px;
    }
    
    .tournament-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px 14px;
        width: 100%;
    }
    
    .history-table,
    table {
        font-size: 10px;
    }
    
    .history-table th,
    .history-table td {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    .team-card {
        padding: 12px;
    }
    
    .format-card {
        padding: 12px;
    }
    
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    
    p {
        font-size: 13px;
        line-height: 1.5;
    }
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}