/* The Ghetto History Books - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --accent-color: #d69e2e;
    --accent-light: #ecc94b;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
.site-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

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

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title a:hover {
    text-decoration: none;
}

.header-logo {
    height: 50px;
    width: auto;
}

.header-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.main-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent-light);
    text-decoration: none;
}

/* Nav Cart Link */
.nav-cart-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-cart-icon {
    font-size: 1.1rem;
}

.nav-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
}

.nav-cart-count:empty {
    display: none;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 0.2rem;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    min-width: 140px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    z-index: 200;
    list-style: none;
    margin: 0;
    margin-top: 0.5rem;
    transition: opacity 0.2s, visibility 0.2s;
    display: block;
}

.nav-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

.dropdown-menu li {
    border: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--accent-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

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

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

.footer-note {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table .number {
    font-family: var(--font-mono);
    text-align: right;
}

.data-table th[data-sort="number"] {
    text-align: right;
}

.sortable th {
    cursor: pointer;
    user-select: none;
}

.sortable th:hover {
    background: #edf2f7;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Image Slider */
.image-slider {
    margin: 0 0 2rem;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: none;
    overflow: hidden;
    z-index: 1;
}

.slides {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.slider-btn.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.slider-dots {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
}

/* League Anthem Audio Player */
.league-anthem {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 1rem 0;
    text-align: center;
    margin-top: 0;
    position: relative;
    z-index: 50;
    isolation: isolate;
}

.league-anthem * {
    pointer-events: auto;
}

.league-anthem audio {
    cursor: pointer;
    position: relative;
    z-index: 51;
    width: 100%;
    max-width: 350px;
    display: inline-block;
}

.image-slider {
    margin-bottom: 0;
}

.anthem-content {
    display: block;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.anthem-label {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.75rem;
}

.league-anthem audio {
    height: 40px;
    border-radius: 20px;
}

/* Welcome Section */
.welcome-section {
    background: var(--card-bg);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-title {
    color: #c41e3a;
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.welcome-tagline {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    font-style: italic;
}

.welcome-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.ralf-quote {
    color: #c41e3a;
    font-style: italic;
    margin-bottom: 1rem;
}

.welcome-content p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Dragon Slayer Champion Section */
.dragon-slayer-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 3px solid #d4af37;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.dragon-slayer-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.dragon-slayer-image {
    flex-shrink: 0;
}

.dragon-slayer-image img {
    width: 280px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.dragon-slayer-info {
    flex: 1;
}

.dragon-slayer-label {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #0a0a0a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.dragon-slayer-title {
    font-size: 2.5rem;
    color: #d4af37;
    margin: 0 0 0.25rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    font-weight: 700;
}

.dragon-slayer-name {
    margin: 0 0 1rem;
}

.dragon-slayer-name a {
    color: #f4d03f;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.dragon-slayer-name a:hover {
    text-decoration: underline;
}

.dragon-slayer-story {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.dragon-slayer-merch {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem;
    border-left: 2px solid #d4af37;
}

.dragon-slayer-merch a {
    text-decoration: none;
}

.merch-image {
    width: 180px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
    margin-bottom: 1rem;
}

.merch-image:hover {
    transform: scale(1.05);
}

.merch-tagline {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.buy-shirt-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.buy-shirt-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    text-decoration: none;
}

/* Finals Matchup Section */
.finals-matchup {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 3px solid #d4af37;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.finals-title {
    color: #d4af37;
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: none;
}

.finals-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
}

.finals-player {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.finals-player a {
    display: block;
    margin-bottom: 1rem;
}

.finals-player img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.finals-player:hover img {
    transform: scale(1.05);
}

.finals-player.winner img {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.finals-player .player-name {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.finals-player .player-score {
    display: block;
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.finals-player .winner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #0a0a0a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.finals-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 70px;
}

.finals-vs .vs-text {
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.finals-vs .finals-label {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Current Champion (legacy) */
.current-champ {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.current-champ h3 {
    color: white;
    border-color: var(--accent-color);
}

.champ-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.champ-display .trophy {
    font-size: 3rem;
}

.champ-name {
    font-size: 1.75rem;
    color: white;
    font-weight: 700;
}

.champ-year {
    display: block;
    font-size: 1rem;
    color: white;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Stats Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.champion {
    background: var(--accent-color);
    color: white;
}

.badge.runner-up {
    background: #a0aec0;
    color: white;
}

.badge.active {
    background: var(--success-color);
    color: white;
}

.badge.inactive {
    background: #cbd5e0;
    color: var(--text-light);
}

/* Trophy */
.trophy {
    color: var(--accent-color);
}

.trophy-small {
    font-size: 1rem;
}

/* Muted Text */
.muted {
    color: var(--text-light);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

/* Page Subtitle */
.page-subtitle {
    color: var(--text-light);
    margin-top: 0;
}

/* Season Cards */
.season-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.season-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.season-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.season-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.season-champ {
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.season-teams {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Year Grid */
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.year-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.year-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.year-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pick-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Championship Rows */
.champion-row {
    background: rgba(214, 158, 46, 0.1) !important;
}

.runner-up-row {
    background: rgba(160, 174, 192, 0.1) !important;
}

/* Profile Hero */
.profile-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-info {
    flex: 1;
}

.profile-card {
    flex-shrink: 0;
}

.profile-card img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Meet the Managers Grid */
.meet-managers {
    margin-top: 3rem;
}

.meet-managers h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.managers-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.manager-card-link {
    display: block;
    transition: transform 0.2s;
}

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

.manager-card-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.manager-card-link:hover img {
    box-shadow: var(--shadow-lg);
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-header h2 {
    margin: 0;
}

/* Championships Banner */
.championships-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.championship-year {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.championship-year .trophy {
    color: white;
    font-size: 1.25rem;
}

.runner-ups-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.runner-up-year {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #708090, #a9a9a9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.runner-up-year .medal {
    font-size: 1.25rem;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.stat-detail {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

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

.rival-name {
    display: block;
    margin-bottom: 0.5rem;
}

.rival-record {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* H2H Lookup */
.h2h-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.manager-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
}

.vs-text {
    font-weight: 600;
    color: var(--text-light);
}

.h2h-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.h2h-result.hidden {
    display: none;
}

.h2h-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.25rem;
}

.h2h-team {
    text-align: center;
}

.team-name {
    display: block;
    font-weight: 600;
}

.team-record {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.h2h-separator {
    font-size: 2rem;
    color: var(--text-light);
}

.h2h-summary {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
}

/* Matrix */
.matrix-container {
    overflow-x: auto;
}

.matrix-table {
    border-collapse: collapse;
    font-size: 0.75rem;
}

.matrix-table th,
.matrix-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    min-width: 50px;
}

.matrix-header {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    height: 80px;
}

.matrix-row-header {
    text-align: right !important;
    font-weight: 600;
    white-space: nowrap;
}

.matrix-cell {
    font-family: var(--font-mono);
}

.matrix-cell.self {
    background: #edf2f7;
}

.matrix-cell.winning {
    background: rgba(56, 161, 105, 0.2);
}

.matrix-cell.losing {
    background: rgba(229, 62, 62, 0.2);
}

.matrix-cell.even {
    background: rgba(214, 158, 46, 0.2);
}

/* Records Grid */
.records-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .records-grid {
        grid-template-columns: 1fr;
    }
}

/* Championship Timeline */
.championship-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.championship-entry {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.championship-entry .champ-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 60px;
}

.champ-details {
    flex: 1;
}

.champ-winner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.champ-winner .trophy {
    font-size: 1.5rem;
}

.champion-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.champ-score {
    font-family: var(--font-mono);
    color: var(--text-light);
}

.champ-runner-up {
    font-size: 0.875rem;
    color: var(--text-light);
}

.runner-up-label {
    margin-right: 0.25rem;
}

.runner-up-score {
    font-family: var(--font-mono);
    margin-left: 0.5rem;
}

/* Title Leaders */
.title-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.title-holder {
    text-align: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.holder-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trophy-count {
    font-size: 1.5rem;
}

.title-count {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Position Badges */
.position {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--border-color);
    color: var(--text-light);
}

.position.qb { background: #feb2b2; color: #c53030; }
.position.rb { background: #9ae6b4; color: #276749; }
.position.wr { background: #90cdf4; color: #2b6cb0; }
.position.te { background: #fbd38d; color: #c05621; }
.position.k { background: #e9d8fd; color: #6b46c1; }
.position.def, .position.dst { background: #cbd5e0; color: #4a5568; }

/* Draft Views */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.draft-view {
    display: none;
}

.draft-view.active {
    display: block;
}

.draft-round {
    margin-bottom: 2rem;
}

.draft-round h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.round-picks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.pick-card {
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.pick-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.pick-player {
    font-weight: 600;
}

.pick-position {
    margin-left: 0.25rem;
}

.pick-manager {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Trades */
.trade-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trade-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.trade-card.trade-robbery {
    border: 3px solid #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.trade-header {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.trade-robbery .trade-header {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fecaca;
}

.robbery-label {
    margin-left: auto;
    background: #dc2626;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.8); }
}

.trade-sides {
    display: flex;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
}

.trade-side {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.trade-manager {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.receives-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: normal;
}

.trade-players {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trade-players li {
    padding: 0.25rem 0;
}

.trade-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Week Selector */
.week-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.week-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.week-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.week-matchups {
    display: none;
}

.week-matchups.active {
    display: block;
}

.matchup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.matchup-card {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.matchup-card.playoff {
    border-left: 3px solid var(--accent-color);
}

.matchup-team {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.matchup-team.winner {
    font-weight: 700;
}

.matchup-vs {
    text-align: center;
    color: var(--text-light);
    font-size: 0.75rem;
}

.score {
    font-family: var(--font-mono);
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
}

/* Facts List */
.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facts-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.facts-list li:last-child {
    border-bottom: none;
}

/* Our Story Timeline */
.story-section {
    margin-bottom: 2rem;
}

.story-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.story-section p {
    line-height: 1.8;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.timeline-entry {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-year {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
}

.timeline-content p {
    margin: 0;
}

/* Dragon Slayer Story Merch */
.dragon-slayer-merch-story {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 3px solid #d4af37;
}

.dragon-slayer-merch-story h3 {
    color: #d4af37;
    border-bottom-color: #d4af37;
}

.merch-promo {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.merch-promo .merch-text {
    flex: 1;
}

.merch-promo .merch-text p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.merch-promo .merch-image {
    flex-shrink: 0;
    margin-right: 2rem;
}

.merch-promo .merch-image a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.merch-promo .merch-image img {
    width: 160px;
    height: auto;
    transition: transform 0.3s;
}

.merch-promo .merch-image a:hover img {
    transform: scale(1.05);
}

.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    text-decoration: none;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Draft Data Link */
.draft-data-link {
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.draft-data-link .link-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Draft Stats Page */
.draft-stats-section {
    margin-bottom: 2rem;
}

.draft-stats-section .section-subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.highlight-section .highlight-row {
    background: #fef3c7;
}

.highlight-section .highlight-row td {
    color: #92400e;
}

/* Position styling */
.position {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.position-rb { background: #dbeafe; color: #1e40af; }
.position-wr { background: #dcfce7; color: #166534; }
.position-qb { background: #fef3c7; color: #92400e; }
.position-te { background: #fce7f3; color: #9d174d; }
.position-k { background: #f3e8ff; color: #7c3aed; }
.position-def { background: #fee2e2; color: #991b1b; }

.position-pct {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.position-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pos-chip {
    background: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.bust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.bust-chip {
    background: #4a1a1a;
    color: #ff6b6b;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.bust-more {
    color: var(--text-light);
    font-size: 0.75rem;
    font-style: italic;
}

.section-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

.compact-table {
    font-size: 0.85rem;
}

.compact-table th,
.compact-table td {
    padding: 0.5rem;
    text-align: center;
}

.compact-table th:first-child,
.compact-table td:first-child {
    text-align: left;
}

.manager-position-grid {
    overflow-x: auto;
}

.years-list {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Season Recap Section */
.season-recap-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.recap-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
}

.recap-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.recap-text h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 0.75rem;
}

.recap-text h4:first-child {
    margin-top: 0;
}

.recap-text p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.recap-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.recap-image-container {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.recap-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    background: #f0f0f0;
    margin: 0;
}

@media (max-width: 900px) {
    .recap-content {
        grid-template-columns: 1fr;
    }

    .recap-images {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .recap-image-container {
        flex: 1 1 250px;
    }
}

/* Trips Page */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trip-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trip-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.trip-card:hover .trip-image img {
    transform: scale(1.05);
}

.trip-info {
    padding: 1.25rem;
}

.trip-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.trip-city {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.trip-team {
    margin: 0 0 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.trip-description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-color);
}

.trip-photos {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Game Scoreboard */
.game-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.scoreboard-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.scoreboard-team .team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 8px;
}

.scoreboard-team .team-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.scoreboard-team .team-score {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.scoreboard-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.scoreboard-result .result-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scoreboard-result .result-vs {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
}

/* Trip Main Photo */
.trip-main-photo {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.trip-main-photo img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Trip Detail Page */
.trip-story {
    line-height: 1.8;
}

.trip-story h3 {
    margin-top: 0;
}

/* Photo Gallery Grid */
.trip-gallery {
    margin-top: 2rem;
}

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

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

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo Controls */
.photo-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-light);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.random-photos-gallery {
    margin-top: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
}

/* Box Score Table */
.box-score {
    margin-bottom: 2rem;
}

.box-score h3 {
    margin-bottom: 1rem;
}

.box-score-table {
    width: 100%;
    border-collapse: collapse;
}

.box-score-table th,
.box-score-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.box-score-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.box-score-table th:first-child {
    text-align: left;
}

.box-score-table .team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    font-weight: 500;
}

.box-score-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.box-score-table .score-cell {
    font-family: var(--font-mono);
    font-size: 1rem;
}

.box-score-table .final-score {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--bg-color);
}

.box-score-table tr.winner .team-cell {
    font-weight: 700;
}

.box-score-table tr.winner .final-score {
    color: var(--success-color);
}

/* Scoring Summary */
.scoring-summary {
    margin-top: 1.5rem;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
}

.scoring-table th,
.scoring-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.scoring-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.scoring-table .qtr-cell {
    font-weight: 600;
    width: 50px;
    white-space: nowrap;
}

.scoring-table .time-cell {
    font-family: var(--font-mono);
    width: 60px;
    color: var(--text-light);
    white-space: nowrap;
}

.scoring-table .team-cell {
    font-weight: 600;
    width: 60px;
    white-space: nowrap;
}

.scoring-table .play-cell {
    font-size: 0.9rem;
}

.scoring-table .score-cell {
    font-family: var(--font-mono);
    font-weight: 600;
    width: 70px;
    text-align: center;
    white-space: nowrap;
}

.scoring-table tbody tr:hover {
    background: var(--bg-color);
}

@media (max-width: 768px) {
    .scoring-table th,
    .scoring-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .scoring-table .qtr-cell,
    .scoring-table .time-cell {
        width: auto;
    }

    .scoring-table .play-cell {
        font-size: 0.8rem;
    }
}

/* Trip Navigation */
.trip-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.trip-nav-link {
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.trip-nav-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Draft Grades Page */
.grade-legend {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--border-color);
}

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

.legend-item {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.legend-title {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.legend-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.year-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.jump-label {
    font-weight: 600;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.jump-link {
    padding: 0.375rem 0.75rem;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.jump-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.draft-grades-year {
    scroll-margin-top: 80px;
}

/* Grade Badges */
.grade-cell {
    text-align: center;
    width: 140px;
}

.draft-grades-year .data-table {
    table-layout: fixed;
}

.draft-grades-year .data-table th:first-child,
.draft-grades-year .data-table td:first-child {
    width: 25%;
}

.draft-grades-year .data-table th:last-child,
.draft-grades-year .data-table td:last-child {
    width: 80px;
    text-align: center;
}

@media (max-width: 600px) {
    .draft-grades-year .data-table {
        table-layout: auto;
        font-size: 0.8rem;
    }

    .draft-grades-year .data-table th,
    .draft-grades-year .data-table td {
        padding: 0.5rem 0.25rem;
    }

    .draft-grades-year .data-table th:first-child,
    .draft-grades-year .data-table td:first-child {
        width: auto;
    }

    .draft-grades-year .data-table th:last-child,
    .draft-grades-year .data-table td:last-child {
        width: auto;
    }

    .grade-cell {
        width: auto;
        min-width: 60px;
    }

    .grade-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
        min-width: 28px;
    }
}

.grade-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 36px;
    text-align: center;
}

/* A grades - Green */
.grade-badge.grade-aplus {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.grade-badge.grade-a {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.grade-badge.grade-aminus {
    background: linear-gradient(135deg, #86efac, #4ade80);
    color: #166534;
}

/* B grades - Blue */
.grade-badge.grade-bplus {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.grade-badge.grade-b {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

.grade-badge.grade-bminus {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    color: #1e40af;
}

/* C grades - Yellow/Amber */
.grade-badge.grade-cplus {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.grade-badge.grade-c {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.grade-badge.grade-cminus {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    color: #78350f;
}

/* D grades - Red */
.grade-badge.grade-dplus {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.grade-badge.grade-d {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.grade-badge.grade-dminus {
    background: linear-gradient(135deg, #fca5a5, #f87171);
    color: #991b1b;
}

/* F grade */
.grade-badge.grade-f {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: white;
}

.grade-na {
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
}

.grade-value {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

.grade-value.positive {
    color: #16a34a;
}

.grade-value.negative {
    color: #dc2626;
}

.finish-champion {
    color: var(--accent-color);
    font-weight: 700;
}

.finish-runner-up {
    color: #64748b;
    font-weight: 600;
}

.no-data {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.methodology-content {
    line-height: 1.7;
}

.methodology-content h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.methodology-content h4:first-child {
    margin-top: 0;
}

.methodology-content code {
    background: var(--bg-color);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.methodology-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.methodology-content li {
    margin: 0.25rem 0;
}

/* Draft Links Container */
.draft-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.draft-links .draft-data-link {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .draft-links {
        grid-template-columns: 1fr;
    }
}

.btn-secondary {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 400px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile table scrolling */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.4rem;
    }

    /* Only apply min-width to large standalone tables, not ones in cards */
    .card .data-table {
        min-width: auto;
    }

    /* Large tables that need horizontal scroll */
    #managers-table,
    .draft-board .data-table {
        min-width: 550px;
    }

    /* Shorter slider on mobile, keep faces visible */
    .slide img {
        height: 280px;
        object-position: center 25%;
    }

    .slider-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
        text-align: center;
    }

    /* Mobile dropdown - collapsible submenus */
    .nav-dropdown > .dropdown-toggle {
        display: block;
        cursor: pointer;
    }

    .dropdown-arrow {
        transition: transform 0.2s;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        display: none;
        background: var(--primary-color);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        transform: none;
        margin-top: 0;
        min-width: 100%;
        left: 0;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu a {
        padding: 0.75rem 0;
        text-align: center;
    }

    /* Mobile cart link */
    .nav-cart-link {
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .h2h-form {
        flex-direction: column;
    }

    .manager-select {
        width: 100%;
    }

    .records-grid {
        grid-template-columns: 1fr;
    }

    .championship-entry {
        flex-direction: column;
        gap: 0.5rem;
    }

    .trade-sides {
        flex-direction: column;
    }

    .trade-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }

    .profile-hero {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .profile-card img {
        width: 150px;
    }

    .profile-header {
        justify-content: center;
    }

    .championships-banner,
    .runner-ups-banner {
        justify-content: center;
    }

    .managers-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dragon-slayer-content {
        flex-direction: column;
        text-align: center;
    }

    .dragon-slayer-image img {
        width: 200px;
    }

    .dragon-slayer-title {
        font-size: 1.75rem;
    }

    .dragon-slayer-merch {
        border-left: none;
        border-top: 2px solid #d4af37;
        border-radius: 0 0 8px 8px;
        margin-top: 1.5rem;
    }

    .merch-image {
        width: 150px;
    }

    .finals-content {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        align-items: flex-start;
    }

    .finals-player {
        min-height: 160px;
    }

    .finals-player img {
        width: 80px;
        height: 80px;
    }

    .finals-player .player-name {
        font-size: 1rem;
    }

    .finals-player .player-score {
        font-size: 1.25rem;
    }

    .finals-player .winner-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .finals-vs {
        padding: 0 0.5rem;
        align-self: center;
    }

    .finals-vs .vs-text {
        font-size: 1.25rem;
    }

    .finals-vs .finals-label {
        font-size: 0.6rem;
    }

    .finals-matchup {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .finals-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .merch-promo {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .merch-promo .merch-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .merch-promo .merch-image img {
        width: 150px;
    }

    .merch-promo .merch-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dragon-slayer-merch-story h3 {
        text-align: center;
    }
}

/* ============================================
   SHOP PAGES
   ============================================ */

/* Shop Header */
.shop-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shop-tagline {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Shop Actions */
.shop-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.cart-link:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.products-loading,
.products-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.retry-btn:hover {
    background: var(--primary-light);
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem 1.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.25rem;
}

.product-sizes {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
}

.modal-details h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1.5rem;
}

/* Variant Selector */
.variant-selector {
    margin-bottom: 1.5rem;
}

.variant-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.variant-btn:hover {
    border-color: var(--primary-light);
}

.variant-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 6px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-cart-btn:hover {
    background: var(--accent-light);
}

.modal-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

.modal-status.success {
    color: var(--success-color);
}

.modal-status.error {
    color: var(--danger-color);
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    white-space: nowrap;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
}

.quick-view-btn:hover {
    background: var(--primary-light);
}

/* Product Image container needs position relative for quick view button */
.product-image {
    position: relative;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail-page {
    max-width: 1100px;
    margin: 0 auto;
}

.product-detail-page .breadcrumb {
    margin-bottom: 1.5rem;
}

.product-loading,
.product-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--text-light);
}

.back-to-shop-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.back-to-shop-btn:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-image {
    position: sticky;
    top: 100px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.product-thumb:hover {
    opacity: 0.9;
    border-color: var(--text-muted);
}

.product-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.product-detail-info h1 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    color: var(--text-color);
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1.5rem;
}

.product-description {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.7;
}

.product-description p {
    margin: 0 0 1rem;
}

.product-features {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.product-features li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-detail-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    min-height: 1.5em;
}

.product-detail-status.success {
    color: var(--success-color);
}

.product-detail-status.error {
    color: var(--danger-color);
}

/* Cart Notification Popup */
.cart-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.cart-notification.hiding {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--success-color);
}

.cart-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
}

.cart-notification-text {
    color: var(--text-color);
}

.cart-notification-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cart-notification-btn:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.cart-notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cart-notification-close:hover {
    color: var(--text-color);
}

@media (max-width: 600px) {
    .cart-notification {
        left: 1rem;
        right: 1rem;
        transform: none;
        animation: slideDownMobile 0.3s ease;
    }

    .cart-notification.hiding {
        animation: slideUpMobile 0.3s ease forwards;
    }

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

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

    .cart-notification-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
        position: relative;
        padding-top: 1.5rem;
    }

    .cart-notification-text {
        width: 100%;
        order: 1;
    }

    .cart-notification-icon {
        order: 0;
    }

    .cart-notification-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Product Detail Responsive */
@media (max-width: 900px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-image {
        position: static;
    }

    .product-detail-info h1 {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .product-detail-info h1 {
        font-size: 1.25rem;
    }

    .product-detail-price {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .product-description {
        margin-bottom: 1.5rem;
    }

    /* Hide quick view on mobile - tap goes to product page */
    .quick-view-btn {
        display: none;
    }
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.continue-shopping {
    color: var(--primary-light);
    font-weight: 500;
}

/* Empty Cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-empty h2 {
    margin: 0 0 0.5rem;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.shop-now-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.shop-now-btn:hover {
    background: var(--primary-light);
    text-decoration: none;
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    min-width: 0;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    color: var(--text-light);
    margin: 0;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-quantity .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.qty-value {
    width: 30px;
    text-align: center;
    font-weight: 600;
}

.item-total {
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.summary-total {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: var(--accent-light);
}

.checkout-btn:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.checkout-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

.checkout-status.error {
    color: var(--danger-color);
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.secure-icon {
    font-size: 1rem;
}

/* Cancelled Message */
.cancelled-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.cancelled-message .message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.message-icon {
    font-size: 1.5rem;
}

.dismiss-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ============================================
   ORDER SUCCESS PAGE
   ============================================ */

.success-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.success-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-color);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.success-title {
    font-size: 1.75rem;
    margin: 0 0 1rem;
}

.success-message {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.order-details {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.order-details h3 {
    margin: 0 0 1rem;
    text-align: center;
}

.next-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.next-steps li:last-child {
    border-bottom: none;
}

.step-icon {
    font-size: 1.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.continue-btn,
.home-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.continue-btn {
    background: var(--accent-color);
    color: var(--primary-color);
}

.home-btn {
    background: var(--primary-color);
    color: white;
}

.continue-btn:hover,
.home-btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

.support-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   SHOP RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        border-radius: 12px 12px 0 0;
    }

    .modal-details {
        padding: 0 1.5rem 1.5rem;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-modal {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-content {
        max-height: none;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        margin: 0;
        overflow: visible;
    }

    .modal-image {
        aspect-ratio: auto;
        height: 250px;
        border-radius: 0;
        flex-shrink: 0;
    }

    .modal-image img {
        object-fit: contain;
        background: #f5f5f5;
    }

    .modal-details {
        padding: 1rem;
    }

    .modal-details h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .modal-price {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .variant-selector {
        margin-bottom: 1rem;
    }

    .variant-options {
        gap: 0.4rem;
    }

    .variant-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .quantity-selector {
        margin-bottom: 1rem;
    }

    .add-to-cart-btn {
        padding: 0.875rem 1.5rem;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
    }

    .item-image {
        width: 60px;
        height: 60px;
        grid-row: span 2;
    }

    .item-details {
        grid-column: 2;
    }

    .item-quantity {
        grid-column: 2;
    }

    .item-total {
        grid-column: 1 / -1;
        text-align: left;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .remove-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    .cart-item {
        position: relative;
        padding-right: 2.5rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .cart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ============================================
   BYLAWS PAGE
   ============================================ */

.bylaws-intro {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.bylaws-intro p {
    margin: 0.5rem 0;
}

.bylaws-section {
    margin-bottom: 2rem;
}

.bylaws-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.bylaws-section h4 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
}

.bylaws-section ul,
.bylaws-section ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.bylaws-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.bylaws-section ul ul {
    margin-top: 0.5rem;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.bylaws-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.bylaws-table th,
.bylaws-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.bylaws-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.bylaws-table tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

.bylaws-table tr:hover {
    background: rgba(0,0,0,0.04);
}

@media (max-width: 600px) {
    .bylaws-table {
        font-size: 0.85rem;
    }

    .bylaws-table th,
    .bylaws-table td {
        padding: 0.5rem;
    }
}

/* ============================================
   ROAST PAGE
   ============================================ */

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

.roast-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.roast-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.roast-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.roast-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.roast-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.roast-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.roast-photo {
    flex-shrink: 0;
}

.roast-photo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
}

.roast-name-block h3 {
    margin: 0;
    font-size: 1.25rem;
}

.roast-name-block h3 a {
    color: white;
    text-decoration: none;
}

.roast-name-block h3 a:hover {
    text-decoration: underline;
}

.roast-years {
    font-size: 0.85rem;
    opacity: 0.85;
}

.roast-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.roast-text {
    line-height: 1.7;
    margin: 0 0 1rem;
    color: var(--text-color);
    flex: 1;
}

.roast-callouts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.roast-callout {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

.roast-callout.sin {
    background: #fef2f2;
    border-left-color: var(--danger-color);
}

.callout-label {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.callout-value {
    color: var(--text-color);
    font-weight: 500;
}

.roast-callout.sin .callout-value {
    color: var(--danger-color);
}

/* Grade badges for roast table */
.grade {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    min-width: 32px;
}

.grade-aplus, .grade-a { background: #dcfce7; color: #166534; }
.grade-aminus { background: #d1fae5; color: #047857; }
.grade-bplus { background: #dbeafe; color: #1e40af; }
.grade-b { background: #e0e7ff; color: #3730a3; }
.grade-bminus { background: #ede9fe; color: #5b21b6; }
.grade-cplus { background: #fef3c7; color: #92400e; }
.grade-c { background: #fef9c3; color: #a16207; }
.grade-cminus { background: #fef08a; color: #a16207; }
.grade-dplus, .grade-d { background: #fed7aa; color: #c2410c; }
.grade-dminus { background: #fecaca; color: #b91c1c; }
.grade-f { background: #fee2e2; color: #991b1b; }

.section-subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.tendencies-chart .data-table td {
    vertical-align: middle;
}

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

.legend-item {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.legend-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.legend-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .roast-cards {
        grid-template-columns: 1fr;
    }
}

