/* ==========================================================================
   Drama Online — Unified Luxury Dark-Gold Site Footer v2.0
   Loaded AFTER app.css, drama-mobile-ux.css, custom.css, and site-header.css.
   Matches the #0b0f19 Midnight Navy + #f5c16c Gold visual identity.
   ========================================================================== */

footer.site-footer.do-footer {
    position: relative;
    overflow: hidden;
    margin-top: 3.5rem;
    padding: 3.5rem 0 2rem !important;
    background:
        radial-gradient(720px 220px at 50% 0%, rgba(245, 193, 108, 0.09), transparent 72%),
        linear-gradient(180deg, #0c1220 0%, #070a13 100%) !important;
    border-top: 1px solid rgba(245, 193, 108, 0.16) !important;
    font-family: "JF-Flat", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #cbd5e1;
    direction: rtl;
}

footer.site-footer.do-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 8%, rgba(245, 193, 108, 0.45) 50%, transparent 92%);
}

footer.site-footer.do-footer a:focus,
footer.site-footer.do-footer button:focus {
    outline: none !important;
}
footer.site-footer.do-footer a:focus-visible,
footer.site-footer.do-footer button:focus-visible {
    outline: 2px solid #f5c16c !important;
    outline-offset: 2px !important;
}

/* ---- 4-Column Luxury Grid ---- */
.do-footer-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.45fr) minmax(150px, 0.9fr) minmax(200px, 1.15fr) minmax(185px, 1fr);
    gap: 2.25rem 2rem;
    align-items: start;
    padding-bottom: 2.25rem;
}

/* Brand Column */
.do-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

footer.site-footer.do-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.95rem;
    text-decoration: none;
    transition: transform 0.22s ease, filter 0.22s ease;
}

footer.site-footer.do-footer .footer-logo img {
    height: 62px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.45));
}

footer.site-footer.do-footer .footer-logo:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 20px rgba(245, 193, 108, 0.28));
}

.do-footer-tagline {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #94a3b8;
    max-width: 340px;
}

/* Social Links Row */
footer.site-footer.do-footer .social-links {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
}

footer.site-footer.do-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

footer.site-footer.do-footer .social-links a svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

footer.site-footer.do-footer .social-links a:hover {
    background: linear-gradient(135deg, #f5c16c, #dca042) !important;
    border-color: #f5c16c;
    color: #0b0f19 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 193, 108, 0.28);
}

/* Section Headings */
.do-footer-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1.1rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.1px;
}

.do-footer-heading::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    border-radius: 99px;
    background: linear-gradient(180deg, #f5c16c, #d49435);
    box-shadow: 0 0 10px rgba(245, 193, 108, 0.45);
}

/* Quick Links Column */
.do-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.do-footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.do-footer-links li a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(245, 193, 108, 0.45);
    flex: 0 0 5px;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.do-footer-links li a:hover {
    color: #f5c16c;
    transform: translateX(-4px);
}

.do-footer-links li a:hover::before {
    background: #f5c16c;
    transform: scale(1.3);
}

/* Genres 2-Column Pill Links */
.do-footer-genres {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.do-footer-genres li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.do-footer-genres li a:hover {
    background: rgba(245, 193, 108, 0.13);
    border-color: rgba(245, 193, 108, 0.34);
    color: #f5c16c;
    transform: translateY(-2px);
}

/* WordPress footer_menu Column — Fixes RTL icon overlap (.mr-1) completely! */
footer.site-footer.do-footer .footer-nav {
    margin: 0 !important;
    text-align: right !important;
}

footer.site-footer.do-footer .footer-nav .footer-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 8px !important;
}

footer.site-footer.do-footer .footer-nav .footer-menu li {
    margin: 0;
    padding: 0;
}

footer.site-footer.do-footer .footer-nav .footer-menu li a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px !important;
    min-height: 38px;
    padding: 7px 12px !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.065);
    color: #cbd5e1 !important;
    font-size: 0.86rem !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer.site-footer.do-footer .footer-nav .footer-menu li a svg,
footer.site-footer.do-footer .footer-nav .footer-menu li a svg.mr-1,
footer.site-footer.do-footer .footer-nav .footer-menu li a i {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
    color: #f5c16c !important;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

footer.site-footer.do-footer .footer-nav .footer-menu li a:hover {
    background: rgba(245, 193, 108, 0.12) !important;
    border-color: rgba(245, 193, 108, 0.32) !important;
    color: #f5c16c !important;
    transform: translateX(-3px);
}

footer.site-footer.do-footer .footer-nav .footer-menu li a:hover svg {
    opacity: 1;
    transform: scale(1.08);
}

/* ---- Legal Disclaimer Card ---- */
footer.site-footer.do-footer .footer-disclaimer {
    padding: 0 !important;
    margin: 0 0 1.4rem !important;
    border-top: 0 !important;
    text-align: right !important;
}

.do-footer-disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.do-footer-disclaimer-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(245, 193, 108, 0.12);
    border: 1px solid rgba(245, 193, 108, 0.24);
    color: #f5c16c;
    flex: 0 0 30px;
    margin-top: 1px;
}

footer.site-footer.do-footer .do-footer-disclaimer-box p {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.7 !important;
    color: #94a3b8 !important;
}

/* ---- Bottom Copyright Bar ---- */
footer.site-footer.do-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

footer.site-footer.do-footer .footer-bottom .copyright {
    margin: 0 !important;
    text-align: right !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

footer.site-footer.do-footer .footer-bottom .copyright strong {
    color: #f5c16c;
    font-weight: 700;
}

.do-footer-bottom-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.do-footer-love {
    font-size: 0.8rem;
    color: #64748b;
}

.do-footer-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(245, 193, 108, 0.28);
    background: rgba(245, 193, 108, 0.08);
    color: #f5c16c;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.do-footer-top-btn:hover {
    background: #f5c16c;
    color: #0b0f19;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 193, 108, 0.28);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 991.98px) {
    .do-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
    .do-footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
    .do-footer-tagline {
        max-width: 520px;
    }
    footer.site-footer.do-footer .social-links {
        justify-content: center !important;
    }
}

@media (max-width: 767.98px) {
    footer.site-footer.do-footer {
        margin-top: 2.5rem;
        padding: 2.5rem 0 4.5rem !important; /* extra bottom room for floating mobile buttons */
    }

    .do-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-bottom: 1.75rem;
    }

    footer.site-footer.do-footer .footer-logo img {
        height: 54px !important;
        max-width: 195px !important;
    }

    .do-footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .do-footer-links li a {
        justify-content: center;
        min-height: 42px;
        padding: 6px 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.07);
        transform: none !important;
    }

    .do-footer-links li a::before {
        display: none;
    }

    .do-footer-links li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    footer.site-footer.do-footer .footer-nav .footer-menu {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    footer.site-footer.do-footer .footer-nav .footer-menu li a {
        justify-content: center !important;
        min-height: 44px;
        padding: 8px 10px !important;
        gap: 7px !important;
        font-size: 0.84rem !important;
        transform: none !important;
    }

    .do-footer-disclaimer-box {
        padding: 12px 13px;
        gap: 10px;
    }

    footer.site-footer.do-footer .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    footer.site-footer.do-footer .footer-bottom .copyright {
        text-align: center !important;
    }

    .do-footer-bottom-meta {
        justify-content: center;
    }
}
