/* ==========================================================================
   APPA Publications Home — Landing page for all product lines
   ==========================================================================
   Loaded only on the Publications Home template. Extends bok.css shared
   design system (header, footer, typography, base variables).
   ========================================================================== */


/* ==========================================================================
   1. HERO
   ========================================================================== */

.pub-hero {
    background: linear-gradient(135deg, #3252A7 0%, #1a3680 30%, #2D83FE 60%, #FD7E01 100%);
    color: #fff;
    text-align: center;
    padding: 80px 48px 64px;
}

.pub-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.pub-hero h1 {
    font-size: 44px;
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.pub-hero-desc {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.92;
    margin: 0 0 36px;
}

.pub-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.pub-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pub-stat-num {
    font-size: 32px;
    font-weight: 900;
}

.pub-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
    margin-top: 2px;
}

/* Hero CTA buttons (visible to non-logged-in visitors) */
.pub-hero-cta {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pub-hero-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.pub-hero-btn:hover {
    transform: translateY(-1px);
}

.pub-hero-btn-primary {
    background: #fff;
    color: #3252A7;
}

.pub-hero-btn-primary:hover {
    opacity: 0.95;
}

.pub-hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.pub-hero-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Header sign-in link styling */
.header-signin {
    font-weight: 600;
    color: var(--blue, #2D83FE) !important;
}


/* ==========================================================================
   2. SECTIONS — alternating backgrounds
   ========================================================================== */

.pub-section {
    padding: 64px 48px;
}

.pub-section-alt {
    background: #F8F9FB;
}

.pub-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.pub-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.pub-section-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--charcoal, #3A3838);
    margin: 0 0 10px;
}

.pub-section-desc {
    font-size: 15px;
    color: var(--text-muted, #6B7280);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.pub-section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pub-section-link {
    text-align: center;
    margin-top: 28px;
}

.pub-section-link a {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy, #3252A7);
    text-decoration: none;
    transition: color 0.15s;
}

.pub-section-link a:hover {
    color: var(--blue, #2D83FE);
    text-decoration: underline;
}


/* ==========================================================================
   3. BOK — Featured product card
   ========================================================================== */

.pub-product-featured {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.pub-product-featured:hover {
    box-shadow: 0 8px 32px rgba(50, 82, 167, 0.08);
}

.pub-product-accent {
    height: 5px;
    width: 100%;
}

.pub-product-body {
    padding: 36px;
}

.pub-product-grid {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.pub-product-info {
    flex: 1;
}

.pub-product-info h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--charcoal, #3A3838);
    margin: 0 0 12px;
    line-height: 1.3;
}

.pub-product-info p {
    font-size: 14px;
    color: var(--text-muted, #6B7280);
    line-height: 1.65;
    margin: 0 0 20px;
}

.pub-part-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pub-part-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.pub-part-tag small {
    font-weight: 400;
    opacity: 0.7;
}

.pub-product-cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 220px;
    padding-top: 8px;
}

.pub-cta-btn {
    display: inline-block;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.pub-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pub-cta-note {
    font-size: 12px;
    color: var(--text-faint, #9CA3AF);
    text-align: center;
}

.pub-cta-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy, #3252A7);
    text-decoration: none;
    transition: color 0.15s;
}

.pub-cta-link:hover {
    color: var(--blue, #2D83FE);
    text-decoration: underline;
}


/* ==========================================================================
   4. OG — Three book cards (matches OG archive design)
   ========================================================================== */

.pub-og-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pub-og-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.pub-og-card:hover {
    border-color: var(--card-color, #3252A7);
    box-shadow: 0 8px 32px rgba(50, 82, 167, 0.08);
    transform: translateY(-3px);
}

.pub-og-accent {
    height: 5px;
    width: 100%;
}

.pub-og-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pub-og-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.pub-og-desc {
    font-size: 14px;
    color: var(--text-muted, #6B7280);
    line-height: 1.6;
    flex: 1;
    margin: 0 0 20px;
}

.pub-og-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

.pub-og-meta {
    font-size: 12px;
    color: var(--text-faint, #9CA3AF);
}

.pub-og-cta {
    display: inline-block;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pub-og-cta:hover {
    opacity: 0.9;
}

/* Upsell bar below OG cards (non-logged-in) */
.pub-upsell-bar {
    text-align: center;
    margin-top: 28px;
    padding: 16px 24px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted, #6B7280);
}

.pub-upsell-bar a {
    font-weight: 600;
    color: var(--navy, #3252A7);
    text-decoration: none;
    margin-left: 8px;
}

.pub-upsell-bar a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   5. COMING SOON — placeholder cards for Books & Magazine
   ========================================================================== */

.pub-coming-soon {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 36px;
    background: #fff;
    border: 1px dashed #D1D5DB;
    border-radius: 12px;
}

.pub-coming-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.pub-coming-soon h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal, #3A3838);
    margin: 0 0 8px;
}

.pub-coming-soon p {
    font-size: 14px;
    color: var(--text-muted, #6B7280);
    line-height: 1.6;
    margin: 0 0 16px;
}

.pub-coming-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy, #3252A7);
    text-decoration: none;
    transition: color 0.15s;
}

.pub-coming-link:hover {
    color: var(--blue, #2D83FE);
    text-decoration: underline;
}


/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .pub-og-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pub-product-grid {
        flex-direction: column;
    }

    .pub-product-cta-area {
        align-items: flex-start;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .pub-hero {
        padding: 56px 24px 48px;
    }

    .pub-hero h1 {
        font-size: 32px;
    }

    .pub-hero-stats {
        gap: 24px;
    }

    .pub-stat-num {
        font-size: 24px;
    }

    .pub-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .pub-hero-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .pub-section {
        padding: 48px 24px;
    }

    .pub-section-header h2 {
        font-size: 26px;
    }

    .pub-product-body {
        padding: 24px;
    }

    .pub-part-tags {
        gap: 6px;
    }

    .pub-part-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .pub-coming-soon {
        padding: 36px 24px;
    }
}
