/* BASSL - Bay Area Shia Sports League Website Styles */
/* Mobile-first responsive design using HTML5 and CSS3 */
/* Color scheme based on BASSL logo: Dark green, emerald, and cream */

/* CSS Custom Properties - BASSL Logo Colors */
:root {
    --primary-dark: #1a3d2e;      /* Dark forest green from logo */
    --primary-green: #2d5a3d;     /* Medium green from logo */
    --accent-emerald: #4a9b5e;    /* Emerald green from logo */
    --accent-light: #6bb77b;      /* Light green accent */
    --cream-bg: #f5f3f0;          /* Cream background from logo */
    --text-dark: #2c3e2d;         /* Dark green text */
    --text-light: #5a6b5d;        /* Medium green text */
    --white: #ffffff;
    --success: #4a9b5e;           /* Using logo green for success */
    --warning: #d4a574;           /* Warm tone complement */
    --danger: #c85a5a;            /* Muted red */
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream-bg);
}

.main-logo {
    position: absolute;
    left: 20;
    margin-left: 10px;
    margin-top: 10px;
    top: 20;
    border-radius: 50%;
}

.main-logo-home-link {
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-emerald);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 0;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(26, 61, 46, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: -0.5rem;
}

/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: rgba(74, 155, 94, 0.3);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 61, 46, 0.85), rgba(45, 90, 61, 0.85)), 
                url('../images/hero-bg.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-emerald);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 155, 94, 0.4);
    color: var(--white)
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

/* Card Components */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(26, 61, 46, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 61, 46, 0.15);
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    text-align: center;
}

.team-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-emerald));
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(26, 61, 46, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(74, 155, 94, 0.2);
}

th {
    background-color: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

tr:hover {
    background-color: rgba(74, 155, 94, 0.05);
}

.standings-table td:first-child {
    font-weight: 600;
    color: var(--primary-dark);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input, textarea, select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(74, 155, 94, 0.3);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(74, 155, 94, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.bg-primary { background-color: var(--primary-dark); }
.bg-secondary { background-color: var(--text-light); }
.bg-success { background-color: var(--accent-emerald); }

.text-primary { color: var(--primary-dark); }
.text-success { color: var(--accent-emerald); }
.text-danger { color: var(--danger); }

/* Responsive Design - Mobile First */

/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(26, 61, 46, 0.2);
    }
    
    nav ul.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .menu-toggle, .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--accent-emerald);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #333;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
