/* Extracted from views/frontend/publishing-library.blade.php */
/* ── PUBLISHING REDESIGN — scoped under .pub-redesign ── */
.pub-redesign {
    --wine: #862736;
    --wine-hover: #9c2e40;
    --wine-dark: #5c1a25;
    --wine-light: rgba(134, 39, 54, 0.08);
    --wine-light-solid: #f4e8ea;
    --pub-cream: #faf8f5;
    --pub-text: #1a1a1a;
    --pub-text-sec: #5a5550;
    --pub-text-muted: #8a8580;
    --pub-border: rgba(0, 0, 0, 0.08);
    --pub-border-strong: rgba(0, 0, 0, 0.12);
    --pub-font-display: 'Playfair Display', Georgia, serif;
    --pub-font-body: 'Source Sans 3', -apple-system, sans-serif;
    --pub-max: 1080px;
    --pub-radius: 10px;
    --pub-radius-lg: 14px;
    font-family: var(--pub-font-body);
    color: var(--pub-text);
    -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.pub-hero {
    background: var(--pub-cream);
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
    border-bottom: 1px solid var(--pub-border);
}
.pub-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}
.pub-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wine);
    margin-bottom: 1rem;
}
.pub-hero__heading {
    font-family: var(--pub-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--pub-text);
    margin-bottom: 1rem;
}
.pub-hero__heading em { color: var(--wine); font-style: italic; }
.pub-hero__desc {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--pub-text-sec);
    max-width: 560px;
    margin: 0 auto 0;
}

/* ── FEATURED STORIES ── */
.pub-stories {
    padding: 4rem 2rem;
}
.pub-stories__inner {
    max-width: var(--pub-max);
    margin: 0 auto;
}
.pub-section-heading {
    font-family: var(--pub-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pub-text);
    text-align: center;
    margin-bottom: 0.5rem;
}
.pub-section-heading::after {
    content: '';
    display: block;
    width: 40px; height: 3px;
    background: var(--wine);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}
.pub-section-sub {
    font-size: 0.95rem;
    color: var(--pub-text-sec);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
}

/* Story cards */
.pub-story {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--pub-border);
}
.pub-story:last-child { border-bottom: none; }
.pub-story:nth-child(even) { direction: rtl; }
.pub-story:nth-child(even) > * { direction: ltr; }

.pub-story__img {
    aspect-ratio: 3 / 4;
    border-radius: var(--pub-radius-lg);
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #e8e2da, #d4cec6);
}
.pub-story__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pub-story__badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #fff;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--wine-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pub-story__content { padding: 0.5rem 0; }
.pub-story__title {
    font-family: var(--pub-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pub-text);
    margin-bottom: 0.75rem;
}
.pub-story__excerpt {
    font-size: 0.9rem;
    color: var(--pub-text-sec);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.pub-story__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wine);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
    cursor: pointer;
}
.pub-story__link:hover { gap: 0.5rem; color: var(--wine-hover); }

/* ── PUBLISHERS BAR ── */
.pub-publishers {
    padding: 2.5rem 2rem;
    background: var(--pub-cream);
    border-top: 1px solid var(--pub-border);
    border-bottom: 1px solid var(--pub-border);
    text-align: center;
}
.pub-publishers__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pub-text-muted);
    margin-bottom: 1.25rem;
}
.pub-publishers__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.pub-publisher-name {
    font-family: var(--pub-font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--pub-text-muted);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.pub-publisher-name:hover { opacity: 1; }

/* ── BOOK GALLERY ── */
.pub-gallery {
    padding: 4rem 2rem;
}
.pub-gallery__inner {
    max-width: var(--pub-max);
    margin: 0 auto;
}

/* Search bar */
.pub-search-bar {
    max-width: 400px;
    margin: 0 auto 2rem;
    position: relative;
}
.pub-search-bar__input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid var(--pub-border-strong);
    border-radius: 24px;
    font-family: var(--pub-font-body);
    font-size: 0.875rem;
    color: var(--pub-text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.pub-search-bar__input:focus { border-color: var(--wine); }
.pub-search-bar__input::placeholder { color: var(--pub-text-muted); }
.pub-search-bar__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pub-text-muted);
    pointer-events: none;
    font-size: 0.85rem;
}

/* Book grid */
.pub-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1.5rem;
}
.pub-book-card {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.pub-book-card[style*="display: none"] { display: none !important; }
.pub-book-card__cover {
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #e8e2da, #d8d2ca);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.pub-book-card:hover .pub-book-card__cover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pub-book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pub-book-card__cover-placeholder {
    font-family: var(--pub-font-display);
    font-size: 0.85rem;
    color: rgba(0,0,0,0.12);
    font-weight: 700;
    padding: 1rem;
    text-align: center;
    line-height: 1.3;
}
.pub-book-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pub-text);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}
.pub-book-card__author {
    font-size: 0.75rem;
    color: var(--pub-text-muted);
}

/* No results */
.pub-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pub-text-muted);
    font-size: 0.95rem;
    display: none;
}

/* ── STORY MODAL ── */
.pub-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.pub-modal-overlay.pub-modal--open {
    display: flex;
}
.pub-modal {
    background: #fff;
    border-radius: var(--pub-radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
}
.pub-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pub-text-muted);
    line-height: 1;
    padding: 0.25rem;
    z-index: 1;
}
.pub-modal__close:hover { color: var(--pub-text); }
.pub-modal__img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--pub-radius);
    margin-bottom: 1.5rem;
}
.pub-modal__title {
    font-family: var(--pub-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 1rem;
}
.pub-modal__text {
    font-size: 0.95rem;
    color: var(--pub-text-sec);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.pub-modal__text p { margin-bottom: 1rem; }
.pub-modal__quote {
    font-family: var(--pub-font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--wine);
    border-left: 3px solid var(--wine);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}
.pub-modal__books {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.pub-modal__book-thumb {
    width: 90px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pub-modal__book-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wine);
    text-decoration: none;
}
.pub-modal__book-link:hover { text-decoration: underline; }

/* ── CTA BANNER ── */
.pub-cta {
    padding: 0 2rem 4rem;
}
.pub-cta__banner {
    max-width: var(--pub-max);
    margin: 0 auto;
    background: var(--wine);
    border-radius: var(--pub-radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}
.pub-cta__banner::after {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.pub-cta__text { position: relative; z-index: 1; }
.pub-cta__heading {
    font-family: var(--pub-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.pub-cta__heading em { font-style: italic; color: rgba(255,255,255,0.7); }
.pub-cta__sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}
.pub-cta__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.pub-cta-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--pub-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pub-cta-btn--white {
    background: #fff;
    color: var(--wine);
    border: 2px solid #fff;
}
.pub-cta-btn--white:hover { background: transparent; color: #fff; }
.pub-cta-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.pub-cta-btn--outline:hover { border-color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
    .pub-story {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .pub-story:nth-child(even) { direction: ltr; }
    .pub-story__img { max-width: 280px; }
    .pub-cta__banner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }
}
@media (max-width: 500px) {
    .pub-book-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
    .pub-cta__buttons { flex-direction: column; width: 100%; }
    .pub-cta-btn { text-align: center; }
    .pub-hero { padding: 3rem 1.5rem 2.5rem; }
    .pub-stories, .pub-gallery { padding: 3rem 1.5rem; }
}
