/* ===========================
   Inventory Page Styles
   =========================== */

/* Hero */
.inv-hero {
    position: relative;
    margin-top: 60px;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

.inv-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8a84e 0%, #8b6914 40%, #2A5D34 100%);
}

.inv-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 5%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.inv-hero-content h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1.5rem auto 0;
}

/* Intro Section — warm golden background like homepage producers */
.inv-intro {
    padding: 4rem 5%;
    background: var(--primary-color);
    color: white;
}

.inv-intro-inner {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.inv-intro-text {
    flex: 1;
}

.inv-intro-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.inv-intro-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.inv-intro-image {
    flex: 0 0 380px;
}

.inv-intro-image .image-placeholder {
    width: 100%;
    height: 280px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.3);
}

.inv-intro-image .caption {
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Board Section — warm cream background */
.inv-board-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: #faf8f5;
}

.inv-board-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.inv-board-header h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Filter Buttons — goldenrod accents */
.inv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 24px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: var(--secondary-color);
    color: var(--neutral-dark);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: var(--neutral-dark);
}

/* Inventory Board Grid */
.inv-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Inventory Card */
.inv-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid var(--secondary-color);
}

.inv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.inv-card.hidden {
    display: none;
}

.inv-card.fade-in {
    animation: cardFadeIn 0.35s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Image */
.inv-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.inv-card-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e8dcc8 0%, #c8b896 50%, #d4c8a8 100%);
}

/* Availability Badge */
.inv-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-badge.limited {
    background: #a8d5a2;
    color: #1a3d1a;
}

.inv-badge.no-supply {
    background: #c0392b;
    color: white;
}

/* Card Body */
.inv-card-body {
    padding: 1.25rem;
}

.inv-card-body h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.inv-local-name {
    font-weight: 400;
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.inv-origin {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.inv-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.75rem;
}

/* Acidity Slider */
.inv-acidity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.inv-acidity-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.inv-acidity-track {
    flex: 1;
    height: 6px;
    background: #e8e2d6;
    border-radius: 3px;
    position: relative;
}

.inv-acidity-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #c0392b);
}

.inv-acidity-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #c0392b;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.inv-acidity-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

/* Available Volume */
.inv-volume {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

/* Tags — green tinted */
.inv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.inv-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(42, 93, 52, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Pull Quote Section — goldenrod background */
.inv-quote-section {
    padding: 4rem 5%;
    text-align: center;
    background: var(--secondary-color);
}

.inv-pull-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--neutral-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    border: none;
    padding: 0;
}

.inv-quote-attr {
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* How to Enjoy / Guide Section — green background */
.inv-guide {
    padding: 4rem 5%;
    background: var(--primary-color);
    text-align: center;
}

.inv-guide h2 {
    color: white;
    margin-bottom: 2.5rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-card {
    background: rgba(255,255,255,0.12);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.18);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.guide-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

/* Seasonal Section — warm cream */
.inv-seasonal {
    padding: 4rem 5%;
    background: var(--neutral-light);
}

.seasonal-inner {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.seasonal-text {
    flex: 1;
}

.seasonal-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.seasonal-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.seasonal-image {
    flex: 0 0 400px;
}

.seasonal-image .image-placeholder {
    width: 100%;
    height: 300px;
    background: #ccc;
    border-radius: 8px;
}

/* Loading & Error States */
.inv-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.inv-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #c0392b;
    font-size: 1rem;
}

/* Card images from JSON */
.inv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Generic image placeholder */
.image-placeholder {
    background: #ccc;
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
    .inv-hero {
        height: 40vh;
        min-height: 250px;
    }

    .inv-hero-content h1 {
        font-size: 1.8rem;
    }

    .inv-hero-content .subheadline {
        font-size: 1rem;
    }

    .inv-intro-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .inv-intro-image {
        flex: none;
        width: 100%;
    }

    .inv-intro-image .image-placeholder {
        height: 220px;
    }

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

    .inv-card-image {
        height: 150px;
    }

    .inv-card-body {
        padding: 1rem;
    }

    .inv-card-body h3 {
        font-size: 1rem;
    }

    .inv-desc {
        font-size: 0.85rem;
    }

    .inv-pull-quote {
        font-size: 1.1rem;
    }

    .seasonal-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .seasonal-image {
        flex: none;
        width: 100%;
    }

    .seasonal-image .image-placeholder {
        height: 220px;
    }

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

@media (max-width: 576px) {
    .inv-board {
        grid-template-columns: 1fr;
    }

    .inv-card-image {
        height: 180px;
    }

    .inv-filters {
        gap: 0.4rem;
    }

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

@media (min-width: 1200px) {
    .inv-board {
        grid-template-columns: repeat(3, 1fr);
    }
}
