/**
 * Purenote Child Theme - Burgundy Editorial Footer Stylesheet
 * 
 * Implements the rich Burgundy Editorial color scheme:
 * - Section A (Main footer): Deep Wine/Burgundy (#5E2038)
 * - Section B (Bottom bar): Deep Plum/Dark Burgundy (#421224)
 * - Subscribe Card: Deep Burgundy (#421224) with border (#742442)
 * - Inputs & Buttons: Input (#52172d) and Signature Burgundy Button (#7F304F -> hover #65223c)
 * - Social Circles: (#52172d -> hover #7F304F)
 * - Reuses exact typography system ('Outfit' headings/titles, 'Plus Jakarta Sans' body/meta)
 * - Desktop 1440px–1728px calibrated layout
 */

/* ==========================================================================
   1. ROOT & FOOTER CONTAINER RESET
   ========================================================================== */
.custom-editorial-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fce7f3;
    clear: both;
    position: relative;
    z-index: 10;
}

.custom-editorial-footer a {
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* ==========================================================================
   2. SECTION A: MAIN FOOTER CONTENT AREA (Background: #5E2038)
   ========================================================================== */
.footer-main-section {
    background-color: #5E2038 !important;
    border-top: 1px solid #4d192d;
    padding: 56px 0 60px 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-main-container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

/* 3 Equal Columns on Desktop: Col 1 (Popular), Col 2 (Picks), Col 3 (Card) */
.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    align-items: start;
}

/* Column Header Titles: "MOST POPULAR", "OUR PICKS" */
.footer-column-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.14em !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* Articles List Container */
.footer-articles-list {
    display: flex;
    flex-direction: column;
}

/* Article Row Item */
.footer-article-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #4d192d;
    box-sizing: border-box;
    width: 100%;
}

.footer-article-row:first-child {
    padding-top: 0;
}

.footer-article-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Article Thumbnail (84px × 68px, ~5:4 ratio) */
.footer-thumb-link {
    flex-shrink: 0;
    display: block;
    width: 84px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #4a172b;
    border: 1px solid #6b2641;
}

.footer-thumb-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.footer-article-thumb {
    width: 84px !important;
    height: 68px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 5px !important;
    transition: transform 0.3s ease;
}

.footer-thumb-link:hover .footer-article-thumb {
    transform: scale(1.05);
}

/* Article Info & Typography */
.footer-article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1px;
}

.footer-article-headline {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.01em !important;
}

.footer-article-headline a {
    color: #fce7f3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-article-headline a:hover {
    color: #ffffff !important;
}

/* Article Meta (Date & Views) */
.footer-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    line-height: 1.2;
}

.footer-article-date {
    color: rgba(249, 168, 212, 0.75);
    font-weight: 400;
}

.footer-article-views {
    color: #ff7878;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-article-views i {
    font-size: 10.5px;
    color: #ff7878;
}

/* ==========================================================================
   3. COLUMN 3: SUBSCRIBE TO UPDATES CARD (#421224)
   ========================================================================== */
.footer-col-subscribe {
    display: flex;
    flex-direction: column;
}

.footer-subscribe-card {
    background-color: #421224 !important;
    border: 1px solid #742442 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 28px 24px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.footer-subscribe-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

.footer-subscribe-desc {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: rgba(251, 207, 232, 0.8) !important;
    margin: 0 0 18px 0 !important;
    max-width: 290px;
}

.footer-subscribe-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-input-group,
.footer-button-group {
    width: 100%;
}

.footer-subscribe-input {
    width: 100% !important;
    height: 42px !important;
    background-color: #52172d !important;
    border: 1px solid #742442 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12.5px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.footer-subscribe-input::placeholder {
    color: rgba(249, 168, 212, 0.5) !important;
}

.footer-subscribe-input:focus {
    border-color: #7F304F !important;
    background-color: #5a1a33 !important;
    box-shadow: 0 0 0 1px #7F304F !important;
}

.footer-subscribe-button {
    width: 100% !important;
    height: 42px !important;
    background-color: #7F304F !important;
    border: 1px solid #8f385a !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.footer-subscribe-button:hover {
    background-color: #65223c !important;
    border-color: #792a48 !important;
    color: #ffffff !important;
}

/* Terms Checkbox & Legal text */
.footer-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    margin-top: 4px;
    cursor: pointer;
}

.footer-terms-checkbox {
    margin-top: 2px;
    accent-color: #7F304F;
    cursor: pointer;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background-color: #52172d;
    border: 1px solid #742442;
}

.footer-terms-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(249, 168, 212, 0.7);
}

.footer-terms-link {
    color: #fbcfe8 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.footer-terms-link:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   4. SECTION B: BOTTOM FOOTER AREA (Background: #421224)
   ========================================================================== */
.footer-bottom-section {
    background-color: #421224 !important;
    border-top: 1px solid #54192f;
    padding: 38px 0 34px 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 1. Circular Social Media Buttons (34px × 34px) */
.footer-social-circles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.social-circle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #52172d;
    border: 1px solid #6b2641;
    color: rgba(251, 207, 232, 0.8) !important;
    font-size: 13.5px;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-circle-btn:hover {
    background-color: #7F304F;
    border-color: #8f385a;
    color: #ffffff !important;
    transform: translateY(-1.5px);
}

/* 2. Horizontal Lower Navigation Menu */
.footer-bottom-nav {
    margin-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.footer-nav-list li {
    margin: 0;
    padding: 0;
}

.footer-nav-list li a {
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(251, 207, 232, 0.8) !important;
    transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
    color: #ffffff !important;
}

/* 3. Dynamic Copyright Notice */
.footer-copyright-notice {
    margin: 0;
}

.footer-copyright-notice p {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 11.5px !important;
    color: rgba(249, 168, 212, 0.6) !important;
    margin: 0 !important;
    letter-spacing: 0.02em !important;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (Desktop 1440px-1728px, Tablet, Mobile)
   ========================================================================== */
@media (min-width: 1440px) {
    .footer-main-container,
    .footer-bottom-container {
        max-width: 1340px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .footer-columns-grid {
        gap: 48px;
    }
}

@media (max-width: 1080px) {
    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-col-subscribe {
        grid-column: span 2;
        align-items: center;
    }

    .footer-subscribe-card {
        max-width: 460px;
    }
}

@media (max-width: 768px) {
    .footer-main-section {
        padding: 40px 0 44px 0;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-col-subscribe {
        grid-column: span 1;
    }

    .footer-thumb-link,
    .footer-article-thumb {
        width: 76px !important;
        height: 62px !important;
    }

    .footer-article-headline {
        font-size: 13px !important;
    }

    .footer-bottom-section {
        padding: 32px 0 28px 0;
    }

    .footer-nav-list {
        gap: 14px 18px;
    }
}
