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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #e63946 0%, #0f3460 50%, #3498db 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid #f4d03f;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='14' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3Cline x1='16' y1='30' x2='44' y2='30' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3Ccircle cx='30' cy='30' r='4' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-link.active {
    color: #1a1a2e;
    background: #f4d03f;
    border-color: #f4d03f;
}

/* Main */
.app-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Hero */
.price-hero {
    text-align: center;
    padding: 2rem 1rem;
}

.price-hero h2 {
    font-size: 1.8rem;
    color: #f4d03f;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Upcoming Releases Section */
.upcoming-section {
    margin-bottom: 2rem;
}

.upcoming-section h3 {
    font-size: 1.2rem;
    color: #3498db;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    margin-bottom: 1rem;
}

.upcoming-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.6) 0%, rgba(26, 26, 46, 0.8) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upcoming-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.upcoming-card.upcoming-next {
    border: 2px solid rgba(244, 208, 63, 0.5);
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
}

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

.upcoming-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
}

.upcoming-next .upcoming-label {
    color: #f4d03f;
}

.countdown-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-out {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.badge-today {
    background: rgba(244, 208, 63, 0.2);
    color: #f4d03f;
    border: 1px solid rgba(244, 208, 63, 0.4);
}

.badge-soon {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.4);
}

.badge-upcoming {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.upcoming-name {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.upcoming-next .upcoming-name {
    font-size: 1.6rem;
    color: #f4d03f;
}

.upcoming-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upcoming-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.upcoming-products {
    margin-top: 0.75rem;
}

.no-upcoming {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* Standard MSRP Section */
.msrp-section {
    margin-bottom: 2rem;
}

.msrp-section h3 {
    font-size: 1.2rem;
    color: #3498db;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    margin-bottom: 1rem;
}

.msrp-section .section-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Tables (shared) */
.msrp-table,
.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.msrp-table thead,
.product-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.msrp-table th,
.product-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.msrp-table td,
.product-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.msrp-table tr:hover,
.product-table tr:hover {
    background: rgba(52, 152, 219, 0.08);
}

.msrp-table tbody tr:nth-child(even),
.product-table tbody tr:nth-child(even) {
    background: rgba(22, 33, 62, 0.3);
}

.msrp-table tbody tr:nth-child(even):hover,
.product-table tbody tr:nth-child(even):hover {
    background: rgba(52, 152, 219, 0.08);
}

.price-cell {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    color: #2ecc71;
}

.packs-cell {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.date-cell {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}


.best-value-row td {
    background: rgba(46, 204, 113, 0.08);
}

.market-best-value-row td {
    background: rgba(52, 152, 219, 0.08);
}

.best-value-row.market-best-value-row td {
    background: rgba(46, 204, 113, 0.06);
}

.best-value-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.market-best-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

/* Market Price Column */
.market-cell {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    white-space: nowrap;
    color: #e67e22;
}

.market-price {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #e67e22;
}

.market-above {
    color: #e67e22;
}

.market-below {
    color: #e67e22;
}

.market-even {
    color: #e67e22;
}

.market-tbd {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    font-weight: 400;
}

.market-diff {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.85;
}

/* Product Links */
.link-cell a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.3rem;
}

.link-pc {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.link-pc:hover {
    background: rgba(46, 204, 113, 0.3);
}

.link-tcg {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.link-tcg:hover {
    background: rgba(52, 152, 219, 0.3);
}

.link-unavailable {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    font-style: italic;
}

/* Filter Controls */
.guide-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 52, 96, 0.4);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.filter-group {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: #3498db;
    color: #fff;
}

/* Set Listings */
.sets-section {
    margin-bottom: 2rem;
}

.sets-section > h3 {
    font-size: 1.2rem;
    color: #3498db;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    margin-bottom: 1rem;
}

.year-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.25rem;
    gap: 1rem;
}

.year-divider::before,
.year-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(244, 208, 63, 0.3);
}

.year-divider span {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f4d03f;
    letter-spacing: 1px;
}

.set-card {
    background: rgba(22, 33, 62, 0.6);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.set-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.set-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.set-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.set-card-title h4 {
    font-size: 1.1rem;
    color: #fff;
}

.set-card-date {
    font-size: 0.85rem;
    color: #f4d03f;
    font-weight: 600;
}

.set-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-main {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.badge-special {
    background: rgba(244, 208, 63, 0.2);
    color: #f4d03f;
    border: 1px solid rgba(244, 208, 63, 0.4);
}

.badge-mini {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.badge-standalone {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.4);
}

.set-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.no-sets {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

/* Disclaimer */
.price-disclaimer {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.price-disclaimer strong {
    color: #e63946;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-nav {
        margin-left: 0;
        flex-wrap: wrap;
    }

    .price-hero h2 {
        font-size: 1.4rem;
    }

    .upcoming-name {
        font-size: 1.2rem;
    }

    .upcoming-next .upcoming-name {
        font-size: 1.3rem;
    }

    .upcoming-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .set-card-header {
        flex-direction: column;
    }

    .msrp-table,
    .product-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .guide-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: center;
    }

    .set-card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .app-main {
        padding: 1rem 0.75rem;
    }

    .upcoming-card {
        padding: 1rem;
    }

    .set-card {
        padding: 1rem;
    }

    .msrp-table th,
    .msrp-table td,
    .product-table th,
    .product-table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .link-cell a {
        display: block;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .header-nav { display: none; width: 100%; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
    .header-nav.active { display: flex; }
    .nav-link { text-align: center; padding: 0.75rem 1rem; font-size: 1rem; }
    .header-content { flex-wrap: wrap; }
    .app-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .app-header { padding: 1rem; }
    .app-title { font-size: 1.2rem; }
    .nav-link { font-size: 0.9rem; padding: 0.6rem 0.75rem; }
}
