/* ═══════════════════════════════════════════════════════════════
   ROCEN HOMESTEADY — SHOP.CSS (Professional Accent Cards Update)
   ═══════════════════════════════════════════════════════════════

   TABLE OF CONTENTS
   ────────────────
   1.  Seasonal Badge (Promo Banner)
   2.  Main Tabs
   3.  Tab Content
   4.  Sub Tabs (Filter Pills)
   5.  Product Cards (Grid & Accents)
   6.  Buttons (Flat Modern Styling)
   7.  Category Badges
   8.  Downloads Grid
   9.  Support Card
   10. Newsletter
   11. Support Stats
   12. Affiliate Notice
   13. Responsive
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   1. SEASONAL BADGE (Promo Banner)
   ═══════════════════════════════════════════════════════════════ */

.seasonal-badge {
    max-width: 900px;
    margin: 2.5rem auto 1.5rem auto; 
    background: linear-gradient(135deg, rgba(30, 51, 30, 0.6), rgba(15, 25, 15, 0.8));
    border: 1px solid #3d5a3d;
    border-left: 4px solid var(--green-leaf);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.seasonal-badge-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.seasonal-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.seasonal-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--green-leaf);
    font-weight: 700;
}

.seasonal-name {
    color: var(--cream);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Crimson Text', Georgia, serif;
}

.seasonal-desc {
    color: var(--cream-dim);
    font-size: 0.85rem;
    margin-top: 0.1rem;
}


/* ═══════════════════════════════════════════════════════════════
   2. MAIN TABS
   ═══════════════════════════════════════════════════════════════ */

.shop-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 0 auto 1.5rem auto;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 0.3rem;
    border: 1px solid #3d5a3d;
}

.shop-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    background: transparent;
    color: var(--cream-dim);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: center;
}

.shop-tab:hover {
    background: var(--bg-card-hover);
    color: var(--cream);
}

.shop-tab.active {
    background: var(--green-dark);
    color: var(--cream);
    border-color: var(--green-leaf);
}


/* ═══════════════════════════════════════════════════════════════
   3. TAB CONTENT
   ═══════════════════════════════════════════════════════════════ */

.tab-content {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tab-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--cream-dim);
    font-size: 0.95rem;
}

.tab-intro p { margin: 0; }
.tab-intro strong { color: var(--cream); }


/* ═══════════════════════════════════════════════════════════════
   4. SUB TABS (Filter Pills)
   ═══════════════════════════════════════════════════════════════ */

.sub-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center; 
    background: transparent; 
    border: none; 
    padding: 0;
}

.sub-tab {
    padding: 0.4rem 1rem;
    background: transparent;
    color: var(--cream-dim);
    border: 1px solid #3d5a3d;
    border-radius: 20px; 
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: center;
}

.sub-tab:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--green-leaf);
    border-color: var(--green-leaf);
}

.sub-tab.active {
    background: var(--green-leaf);
    color: #0a1a0a; 
    border-color: var(--green-leaf);
    font-weight: 700;
}

.subtab-content { display: none; }

.subtab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    animation: fadeIn 0.2s ease;
}


/* ═══════════════════════════════════════════════════════════════
   5. PRODUCT CARDS (Grid & Accents)
   ═══════════════════════════════════════════════════════════════ */

.product-card {
    background: var(--bg-card);
    border: 1px solid #3d5a3d;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column; 
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow);
    border-top: 4px solid #3d5a3d; /* Default top border */
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-leaf);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
}

/* Accent Colors for different categories */
.card-green-accent { border-top-color: var(--green-leaf); }
.card-teal-accent { border-top-color: #26A69A; } /* A nice teal for gear */
.card-amber-accent { border-top-color: var(--amber); }
.card-amber-accent:hover { border-color: var(--amber); box-shadow: 0 8px 24px rgba(255, 193, 7, 0.15); }

.product-details {
    flex: 1;
    margin-bottom: 1rem;
}

.product-name {
    color: var(--cream);
    font-weight: 700;
    font-size: 1.15rem;
    font-family: 'Crimson Text', Georgia, serif;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.card-amber-accent .product-name {
    color: var(--amber);
}

.product-author {
    color: var(--cream-dim);
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--cream-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}

.product-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto; 
    padding-top: 1rem;
    border-top: 1px solid rgba(61, 90, 61, 0.5); /* Subtle divider line */
}

.product-price {
    color: var(--amber);
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Inter', system-ui, sans-serif;
}


/* ═══════════════════════════════════════════════════════════════
   6. BUTTONS (Flat Modern Styling)
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Green Variants ── */
.btn-affiliate,
.btn-download,
.btn-sm,
.btn-newsletter {
    background: var(--green-leaf); 
    color: #0a1a0a; 
}

.btn-affiliate:hover,
.btn-download:hover,
.btn-sm:hover,
.btn-newsletter:hover {
    background: #66BB6A; 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
}

.btn-newsletter {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
}

/* ── Amber Variant ── */
.btn-amber {
    background: var(--amber); 
    color: #1a1a1a;
}

.btn-amber:hover {
    background: #FFD54F;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

/* ── Buy Me a Coffee ── */
.btn-bmc {
    display: inline-block;
    background: #FFDD00;
    color: #1a1a1a;
    padding: 0.8rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
    transition: all 0.2s ease;
    margin: 0.5rem 0;
}

.btn-bmc:hover {
    background: #FFE135;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   7. CATEGORY BADGES
   ═══════════════════════════════════════════════════════════════ */

.category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.badge-safety {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.badge-family {
    background: rgba(76, 175, 80, 0.15);
    color: #66BB6A;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-printable {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}


/* ═══════════════════════════════════════════════════════════════
   8. DOWNLOADS GRID (Updated for Images)
   ═══════════════════════════════════════════════════════════════ */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

.digital-card {
    border-top: none; /* Remove the green top border, the image acts as the top now */
}

.product-image-wrapper {
    width: 100%;
    height: 180px; /* Fixed height so all cards align perfectly */
    overflow: hidden; /* Crops the image if it's too tall */
    background-color: #0f1f0f; /* Fallback color matching your dark theme */
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scales the image to fit without squashing it */
    transition: transform 0.3s ease; /* Smooth zoom on hover */
}

/* Add a subtle zoom effect when they hover over a download card */
.digital-card:hover .product-img {
    transform: scale(1.05);
}


/* ═══════════════════════════════════════════════════════════════
   9. SUPPORT CARD
   ═══════════════════════════════════════════════════════════════ */

.support-card {
    /* The dark overlay gradient comes first, your image URL comes second */
    background: 
        linear-gradient(135deg, rgba(26, 46, 26, 0.88), rgba(10, 26, 10, 0.92)), 
        url('/static/images/placeholder/buymecoffee.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid #3d5a3d;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.support-title {
    color: var(--cream);
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.6rem;
    margin: 0 0 0.8rem 0;
}

.support-text {
    color: var(--cream-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.support-text strong { color: var(--cream); }

.support-subtitle {
    color: var(--cream-dim);
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════
   10. NEWSLETTER
   ═══════════════════════════════════════════════════════════════ */

.newsletter-card {
    background: linear-gradient(135deg, #0a2a0a, #1a3d1a);
    border: 2px solid var(--green-leaf);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.newsletter-title {
    color: var(--green-leaf);
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.newsletter-desc {
    color: var(--cream-dim);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: var(--bg-card);
    color: var(--cream);
    border: 1px solid #3d5a3d;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', system-ui, sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input::placeholder {
    color: var(--cream-dim);
    opacity: 0.6;
}

.newsletter-input:focus {
    border-color: var(--green-leaf);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.newsletter-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    min-height: 1.2rem;
}

.feedback-success {
    color: var(--green-leaf);
    font-weight: 600;
}

.feedback-warning {
    color: var(--amber);
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════
   11. SUPPORT STATS
   ═══════════════════════════════════════════════════════════════ */

.support-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid #3d5a3d;
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 3px solid var(--green-leaf);
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    color: var(--amber);
    font-weight: 700;
    font-size: 1.6rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.stat-label {
    color: var(--cream-dim);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-family: 'Inter', system-ui, sans-serif;
}


/* ═══════════════════════════════════════════════════════════════
   12. AFFILIATE NOTICE
   ═══════════════════════════════════════════════════════════════ */

.affiliate-notice {
    max-width: 900px;
    margin: 2.5rem auto 1rem auto;
    padding: 1rem 1.5rem;
    background: rgba(30, 51, 30, 0.4);
    border: 1px solid #2d4a2d;
    border-radius: 10px;
    text-align: center;
}

.affiliate-notice p {
    color: var(--cream-dim);
    font-size: 0.8rem;
    margin: 0.3rem 0;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   13. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .shop-tabs { flex-direction: column; }
    
    .sub-tabs { 
        flex-wrap: wrap; 
        justify-content: center;
    }

    .seasonal-badge-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .seasonal-info { align-items: center; }

    .support-stats { grid-template-columns: repeat(2, 1fr); }

    .newsletter-form { flex-direction: column; }

    .btn-bmc {
        padding: 0.7rem 2rem;
        font-size: 1rem;
    }

    .support-card { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
    .support-stats { gap: 0.5rem; }

    .stat-item { padding: 0.8rem 0.5rem; }
    .stat-number { font-size: 1.3rem; }
}
