/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation */
header {
    background-color: #1a2a3a;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    color: #ccc;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #fff;
    border-bottom: 2px solid #4ea8de;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a2a3a;
    list-style: none;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #ccc;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #2a3a4a;
    color: #fff;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a2a3a, #2d4a5a);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #ccc;
}

/* Topic Cards */
.topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.topic-card h2 {
    margin-bottom: 1rem;
    color: #1a2a3a;
}

.topic-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #4ea8de;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3a8abf;
}

/* Page Header (Subpages) */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a2a3a, #2d4a5a);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #ccc;
    font-size: 1.1rem;
}

/* Content Sections */
.content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.content h2 {
    color: #1a2a3a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4ea8de;
}

.content p {
    margin-bottom: 1rem;
    color: #555;
}

.content ul {
    margin: 1rem 0 1rem 2rem;
    color: #555;
}

.content ul li {
    margin-bottom: 0.5rem;
}

.content a {
    color: #4ea8de;
    text-decoration: underline;
    transition: color 0.3s;
}

.content a:hover {
    color: #3a8abf;
}

.content a:visited {
    color: #7b68ae;
}

/* Images */
.page-image {
    width: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.topic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Diving Theme */
.theme-diving {
    background: linear-gradient(180deg, #0a3d5c 0%, #0d6a8a 30%, #1a8fa8 60%, #a8e6f0 100%);
    background-attachment: fixed;
}

.theme-diving .content {
    background: rgba(255, 255, 255, 0.92);
}

.theme-diving footer {
    background-color: #0a3d5c;
}

/* AFVH Theme */
.theme-afvh {
    background: linear-gradient(180deg, #1a2550 0%, #2d3a6a 30%, #4a5590 60%, #c8d0e8 100%);
    background-attachment: fixed;
}

.theme-afvh .content {
    background: rgba(255, 255, 255, 0.92);
}

.theme-afvh footer {
    background-color: #1a2550;
}

/* NFL Theme */
.theme-nfl {
    background: linear-gradient(180deg, #013369 0%, #1a4a8a 30%, #2d6ab0 60%, #d50a0a 100%);
    background-attachment: fixed;
}

.theme-nfl .content {
    background: rgba(255, 255, 255, 0.92);
}

.theme-nfl footer {
    background-color: #013369;
}

/* Galaxy Theme */
.theme-galaxy {
    background: linear-gradient(180deg, #2d1050 0%, #4a1a7a 30%, #6b2fa0 60%, #d4b0f0 100%);
    background-attachment: fixed;
}

.theme-galaxy .content {
    background: rgba(255, 255, 255, 0.92);
}

.theme-galaxy footer {
    background-color: #2d1050;
}

/* Football Theme */
.theme-football {
    background: linear-gradient(180deg, #1a3a1a 0%, #2d5a2d 30%, #3d7a3d 60%, #c8e6c8 100%);
    background-attachment: fixed;
}

.theme-football .content {
    background: rgba(255, 255, 255, 0.92);
}

.theme-football footer {
    background-color: #1a3a1a;
}

.division-standings {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Standings Tables */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.standings-table thead {
    background: #1a2a3a;
    color: #fff;
}

.standings-table th,
.standings-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.standings-table th {
    font-weight: 600;
}

.standings-table tbody tr:nth-child(even) {
    background: #f0f0f0;
}

.standings-table tbody tr:hover {
    background: #e0e8f0;
}

#nfl-standings h3 {
    margin: 1.5rem 0 0.5rem;
    color: #1a2a3a;
    font-size: 1.1rem;
}

#nfl-standings h3:first-child {
    margin-top: 0;
}

/* Scores Grid */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.score-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.score-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.score-team img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.score-team .team-name {
    font-weight: 600;
    flex: 1;
}

.score-team .team-score {
    font-size: 1.2rem;
    font-weight: bold;
}

.score-status {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Team Logos Grid */
.team-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.team-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.team-logo:hover {
    transform: scale(1.1);
}

.team-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.team-logo span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .team-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #1a2a3a;
    color: #999;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .topics {
        grid-template-columns: 1fr;
    }
}
