/* ==========================================================================
   Jimbaba.com - Bespoke Editorial & Deal Engine Stylesheet
   Designed for maximum conversion, speed, and modern minimalism.
   ========================================================================== */

:root {
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-subtle: #E2E8F0;
    --border-hover: #CBD5E1;
    
    /* Brand Accents */
    --accent-emerald: #059669;
    --accent-emerald-light: #ECFDF5;
    --accent-amber: #D97706;
    --accent-amber-light: #FFFBEB;
    --accent-blue: #2563EB;
    --accent-blue-light: #EFF6FF;
    --accent-dark: #090D16;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Top Announcement
   ========================================================================== */

.top-announcement {
    background: var(--accent-dark);
    color: #E2E8F0;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-announcement .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-announcement .badge-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 11px;
    margin-right: 8px;
    text-transform: uppercase;
}

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 74px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #38BDF8;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo .dot {
    color: var(--accent-emerald);
}

.brand-logo .tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: #F1F5F9;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.header-link:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    padding: 40px 0 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.hero-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 14px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #0284C7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Category Nav Pills
   ========================================================================== */

.category-bar {
    padding: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-list {
    display: flex;
    gap: 8px;
    list-style: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.cat-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
    background: #F8FAFC;
}

.cat-pill.active {
    background: var(--text-main);
    color: #FFFFFF;
    border-color: var(--text-main);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   Featured Spotlight Showcase
   ========================================================================== */

.spotlight-section {
    padding: 30px 0 10px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.spotlight-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.gold {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FCD34D;
    border: 1px solid rgba(252, 211, 77, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-badge.deal {
    background: var(--accent-emerald);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.card-media {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #F1F5F9;
    overflow: hidden;
}

.card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.spotlight-card:hover .card-media img {
    transform: scale(1.03);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-category {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-emerald);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-title a:hover {
    color: var(--accent-emerald);
}

.card-summary {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

/* Editorial Blockquote: "Why We Picked It" */
.why-box {
    background: #F8FAFC;
    border-left: 3px solid var(--accent-emerald);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 16px;
    line-height: 1.45;
}

.why-box strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Micro Pros/Cons Tags */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag-pro {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-con {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Card Footer & Pricing */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.price-old {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-tag {
    font-size: 11px;
    font-weight: 700;
    color: #DC2626;
    background: #FEE2E2;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    display: inline-block;
    width: fit-content;
}

/* CTA Buttons */
.btn-deal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--text-main);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-deal:hover {
    background: var(--accent-emerald);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.btn-deal.amazon {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-deal.amazon:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0F172A;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.btn-deal .icon-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn-deal:hover .icon-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Full Review Page Specific Styles
   ========================================================================== */

.review-hero {
    padding: 30px 0 20px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.review-headline {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px 0;
}

.review-main {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.verdict-box {
    background: var(--accent-emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
}

.verdict-box h3 {
    color: var(--accent-emerald);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.pro-list, .con-list {
    list-style: none;
    padding: 18px;
    border-radius: var(--radius-md);
}

.pro-list {
    background: var(--accent-emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.con-list {
    background: #FEF2F2;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pro-list h4, .con-list h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pro-list h4 { color: var(--accent-emerald); }
.con-list h4 { color: #DC2626; }

.pro-list li, .con-list li {
    font-size: 13.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Sidebar Sticky CTA Card */
.sticky-sidebar {
    position: sticky;
    top: 94px;
}

.sidebar-cta-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.sidebar-cta-card .card-media {
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.sidebar-cta-card .btn-deal {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--accent-dark);
    color: #94A3B8;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13.5px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .brand-logo {
    color: #FFFFFF;
    margin-bottom: 14px;
}

.footer-brand p {
    line-height: 1.6;
    max-width: 440px;
}

.footer-col h5 {
    color: #F8FAFC;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-disclosure {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: #64748B;
}

/* Stars Component */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #F59E0B;
}

.stars svg {
    width: 14px;
    height: 14px;
}

.stars .star.empty {
    color: #CBD5E1;
}

.star-score {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 12px;
    }
    .search-wrapper {
        order: 3;
        max-width: 100%;
    }
    .hero-title {
        font-size: 30px;
    }
    .review-layout {
        grid-template-columns: 1fr;
    }
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
