/* SquatchyStack.com - Modern Deal Hunter Styles */
/* Robinhood-inspired: clean, confident, modern */

:root {
    --primary-green: #00d084;
    --primary-dark: #00875a;
    --accent-lime: #00ff9d;
    --accent-teal: #20c997;
    --bg-dark: #000000;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --bg-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-light: #2a2a2a;
    --border-medium: #333333;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== SASQUATCH WATERMARK ===== */
.squatch-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 900px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 42px;
    height: 42px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-green);
    background: rgba(0, 135, 90, 0.08);
}

.nav-link.active {
    color: var(--primary-green);
    background: rgba(0, 135, 90, 0.1);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 6px 14px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SEARCH BAR ===== */
.search-container {
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1.1rem;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--border-light);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: var(--border-medium);
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-chip {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-chip.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.filter-chip.clear-filter {
    background: transparent;
    border-style: dashed;
}

.filter-chip.clear-filter:hover {
    background: rgba(0, 135, 90, 0.05);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* ===== SECTION STYLES ===== */
.deals-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-count {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* ===== DEALS LIST ===== */
.deals-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.deal-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.deal-row:last-child {
    border-bottom: none;
}

.deal-row:hover {
    background: var(--bg-hover);
}

.deal-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.deal-row:nth-child(even):hover {
    background: var(--bg-hover);
}

.deal-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.badge-triple {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #5d4e00;
}

.badge-double {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #3d3d3d;
}

.badge-bogo {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    color: white;
}

.badge-coupon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.deal-content {
    min-width: 0;
}

.deal-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.deal-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.deal-details strong {
    color: var(--primary-green);
    font-weight: 600;
}

.deal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.deal-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.deal-actions {
    display: flex;
    gap: 8px;
}

.copy-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    white-space: nowrap;
}

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

.copy-btn.copied {
    background: var(--accent-lime);
    border-color: var(--accent-lime);
    color: var(--primary-dark);
}

/* ===== CATEGORY DIVIDER ===== */
.category-divider {
    padding: 14px 24px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* ===== STACK DEAL EXPANDED ===== */
.stack-deal-content {
    display: grid;
    gap: 12px;
}

.stack-section {
    display: flex;
    gap: 8px;
}

.stack-label {
    font-weight: 600;
    color: var(--primary-green);
    min-width: 100px;
    font-size: 0.85rem;
}

.stack-items {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stack-why {
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid #f59e0b;
    font-size: 0.9rem;
    color: #fbbf24;
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 24px 40px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-lime);
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-lime);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 48px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
    }

    .nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .last-updated {
        display: none;
    }

    .hero {
        padding: 48px 16px 40px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-input {
        padding: 14px 20px 14px 48px;
        font-size: 1rem;
    }

    .filter-chips {
        gap: 8px;
    }

    .filter-chip {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 24px 16px;
    }

    .deal-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .deal-badge {
        justify-self: start;
    }

    .deal-actions {
        justify-self: start;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-count {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand-section {
        grid-column: span 1;
    }

    .about-section {
        padding: 32px 24px;
    }

    .squatch-watermark {
        width: 400px;
        height: 450px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .filter-chip {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .stack-section {
        flex-direction: column;
        gap: 4px;
    }

    .stack-label {
        min-width: auto;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.deal-row {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header, .hero, .footer, .squatch-watermark, .copy-btn, .filter-chips, .search-container {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .deals-list {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
