/*
===============================================================================
BIG TEXAN D2C - GIFTING PAGE STYLES
===============================================================================
Styles specific to the gifting hub page (pages/gifting.html)
Gift options, featured boxes, how it works, corporate CTA.
===============================================================================
*/

/* Hero uses shared .page-hero + .page-hero--neon from globals.css. */
.gifting-hero .page-hero__bg img {
    object-position: center 32%;
    opacity: 0.95;
    filter: brightness(0.9) contrast(1.12) saturate(1.1);
}

.gifting-hero .page-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(26, 0, 5, 0.42) 0%,
        rgba(26, 0, 5, 0.45) 42%,
        rgba(26, 0, 5, 0.78) 78%,
        rgba(26, 0, 5, 0.95) 100%
    );
}

/* --- GIFT OPTIONS OVERVIEW (dark neon) ---
   Background handled by globals.css .page-section / --neon. */

.gift-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.gift-option-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(31, 10, 13, 0.6);
    border: 1px solid rgba(255, 210, 0, 0.18);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.gift-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(255, 210, 0, 0.18), var(--shadow-lg);
    border-color: rgba(255, 210, 0, 0.35);
}

.gift-option-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--texan-yellow);
    border-radius: 50%;
    color: var(--texan-yellow);
    box-shadow: 0 0 12px rgba(255, 210, 0, 0.3), inset 0 0 8px rgba(255, 210, 0, 0.1);
}

.gift-option-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--brand-cream);
    margin-bottom: 0.75rem;
}

.gift-option-description {
    font-size: var(--text-base);
    color: var(--brand-cream);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* --- GIFT BOXES SECTION (dark neon-2) ---
   Background handled by globals.css .page-section / --neon-2. */

.gift-boxes .product-card {
    background: linear-gradient(180deg, rgba(67, 0, 10, 0.98) 0%, rgba(26, 0, 5, 0.98) 100%);
    border: 1px solid rgba(255, 210, 0, 0.2);
}

.gift-boxes .product-card-content {
    background: transparent;
}

.gift-boxes .product-card-tagline {
    font-size: var(--text-sm);
    color: var(--color-success);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gift-boxes .product-badge.legendary {
    background: var(--brand-maroon);
    color: var(--texan-yellow);
}

.gift-boxes .product-badge.beast {
    background: #1a1a1a;
    color: var(--texan-yellow);
}

.view-all-cta {
    text-align: center;
    margin-top: 3rem;
}

/* --- HOW GIFTING WORKS (lit cream panel - high-contrast) ---
   Background handled by globals.css .page-section / --lit-cream. */

.gifting-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.gifting-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--brand-tan);
    z-index: 0;
}

.gifting-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-maroon);
    color: var(--texan-yellow);
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    border-radius: 50%;
    border: 4px solid var(--bg-surface);
    box-shadow: var(--shadow-md);
}

.step-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--brand-maroon);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 200px;
    margin: 0 auto;
}

/* --- E-GIFT SECTION (dark neon) ---
   Background handled by globals.css .page-section / --neon. */

.egift-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.egift-title {
    font-size: var(--text-4xl);
    color: var(--brand-cream);
    margin-bottom: 0.75rem;
}

.egift-subtitle {
    font-size: var(--text-lg);
    color: var(--brand-cream);
    opacity: 0.85;
    margin-bottom: 2rem;
}

.egift-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.egift-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: var(--text-base);
    color: var(--brand-cream);
    opacity: 0.9;
}

.egift-features svg {
    color: var(--texan-yellow);
    filter: drop-shadow(0 0 4px rgba(255, 210, 0, 0.4));
    flex-shrink: 0;
}

.egift-amounts {
    margin-bottom: 2rem;
}

.amount-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--texan-yellow);
    opacity: 0.85;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.amount-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.amount-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 210, 0, 0.06);
    border: 1px solid rgba(255, 210, 0, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--texan-yellow);
}

.egift-image {
    display: flex;
    justify-content: center;
}

.egift-card-preview {
    width: 320px;
    aspect-ratio: 1.6;
    perspective: 1000px;
}

.egift-card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-maroon) 0%, var(--brand-maroon-soft) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 0;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-base);
}

.egift-card-preview:hover .egift-card-inner {
    transform: rotateY(0) rotateX(0);
}

.egift-logo {
    width: min(120px, 44%);
    filter: brightness(0) invert(1);
}

.egift-card-label {
    font-size: var(--text-sm);
    color: var(--brand-cream);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.egift-card-amount {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, var(--text-4xl));
    line-height: 0.95;
    color: var(--texan-yellow);
    align-self: flex-end;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* --- OCCASIONS SECTION (dark neon-2) ---
   Background handled by globals.css .page-section / --neon-2. */

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

.occasion-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(31, 10, 13, 0.6);
    border: 1px solid rgba(255, 210, 0, 0.18);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.occasion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 210, 0, 0.2);
    border-color: rgba(255, 210, 0, 0.4);
}

.occasion-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.occasion-name {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--texan-yellow);
    margin-bottom: 0.25rem;
}

.occasion-suggestion {
    font-size: var(--text-sm);
    color: var(--brand-cream);
    opacity: 0.85;
    margin: 0;
}

/* --- CORPORATE CTA (dark neon) ---
   Background handled by globals.css .page-section / --neon. */

.corporate-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.corporate-cta-title {
    font-size: var(--text-4xl);
    color: var(--brand-cream);
    margin-bottom: 0.75rem;
}

.corporate-cta-subtitle {
    font-size: var(--text-lg);
    color: var(--brand-cream);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.corporate-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.corporate-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--brand-cream);
    font-size: var(--text-base);
}

.corporate-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--texan-yellow);
    border-radius: 50%;
}

.corporate-cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

/* --- GIFT TESTIMONIALS (dark neon-2) ---
   Background handled by globals.css .page-section / --neon-2. */

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

.gift-testimonials .testimonial-card {
    background: rgba(31, 10, 13, 0.6);
    border: 1px solid rgba(255, 210, 0, 0.18);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.gift-testimonials .testimonial-quote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--brand-cream);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.gift-testimonials .testimonial-author {
    display: block;
}

.gift-testimonials .testimonial-name {
    display: block;
    font-weight: 700;
    color: var(--texan-yellow);
}

.gift-testimonials .testimonial-location {
    display: block;
    font-size: var(--text-sm);
    color: var(--brand-cream);
    opacity: 0.7;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .gift-options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .gifting-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .gifting-steps::before {
        display: none;
    }

    .egift-content {
        gap: 3rem;
    }

    .occasions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .corporate-cta-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* .page-hero mobile rules live in globals.css. */

    .gift-options-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gift-option-card {
        padding: 2rem 1.5rem;
    }

    .gifting-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }

    .egift-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .egift-image {
        order: -1;
    }

    .egift-card-preview {
        width: 280px;
    }

    .egift-title {
        font-size: var(--text-2xl);
    }

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

    .occasion-card {
        padding: 1rem;
    }

    .occasion-icon {
        font-size: 2rem;
    }

    .corporate-cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .corporate-cta-image {
        order: -1;
        max-height: 300px;
    }

    .corporate-cta-title {
        font-size: var(--text-2xl);
    }

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

@media (max-width: 480px) {
    .amount-badges {
        justify-content: center;
    }

    .egift-card-preview {
        width: 240px;
    }

    .egift-card-inner {
        padding: 1.5rem;
    }

    .egift-card-amount {
        font-size: var(--text-3xl);
    }

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

/* --- ShopForge live-load states --- */
.gift-boxes .products-loading,
.gift-boxes .products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.gift-boxes .products-loading-text {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--brand-maroon);
    margin: 0 0 0.5rem;
}

.gift-boxes .products-empty-text {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
