/**
 * ChariInfo — Premium Footer Styles
 * Redesign for a modern, rich, and high-performance look.
 */

:root {
    --footer-bg: #0a0a0a;
    --footer-bg-accent: #151515;
    --footer-glass: rgba(255, 255, 255, 0.03);
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-gold: #d4af37;
    --footer-gold-glow: rgba(212, 175, 55, 0.3);
}

.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.site-footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--footer-gold-glow) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
}

/* ── FOOTER MAIN ── */
.footer-main {
    padding: 80px 0 60px;
    background: radial-gradient(circle at top right, #151515 0%, #0a0a0a 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Titles */
.footer-col__title {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    border-bottom: none;
    padding-bottom: 0;
}

.footer-col__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--footer-gold);
    transition: width 0.3s ease;
}

.footer-col:hover .footer-col__title::after {
    width: 60px;
}

.footer-col__title::before {
    display: none; /* Remove old bullet */
}

/* About Section */
.footer-about {
    color: var(--color-silver);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.8;
}

/* Badges Premium */
.footer-badge {
    background: var(--footer-glass);
    border: 1px solid var(--footer-border);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    color: var(--color-silver) !important;
}

.footer-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--footer-gold);
    transform: translateY(-2px);
    color: var(--footer-gold) !important;
}

/* Social Links */
.footer-social__link {
    background: var(--footer-glass);
    border: 1px solid var(--footer-border);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social__link:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Footer Links */
.footer-link {
    color: var(--color-silver);
    font-weight: 500;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--footer-gold);
    transform: translateX(-5px);
}

.footer-link::before {
    content: '✦';
    font-size: 10px;
    margin-left: 8px;
    color: var(--footer-gold);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Tags Section (New) */
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.footer-tag {
    font-size: 11px;
    padding: 4px 12px;
    background: var(--footer-glass);
    border: 1px solid var(--footer-border);
    color: var(--color-silver);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-tag:hover {
    background: var(--footer-gold);
    color: black !important;
    border-color: var(--footer-gold);
    transform: translateY(-2px);
}

/* Latest Articles Premium */
.footer-latest-item__link {
    border-bottom: 1px solid var(--footer-border) !important;
    padding: 12px 0;
}

.footer-latest-item__thumb {
    width: 70px;
    height: 50px;
    border: 1px solid var(--footer-border);
    padding: 2px;
    background: var(--footer-glass);
}

.footer-latest-item__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-smoke);
    transition: color 0.3s ease;
}

.footer-latest-item__link:hover .footer-latest-item__title {
    color: var(--footer-gold);
}

/* Newsletter Premium - Glassmorphism Card */
.footer-newsletter {
    margin-top: 30px;
    padding: 25px;
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: var(--footer-gold);
    opacity: 0.1;
    filter: blur(20px);
}

.footer-newsletter__title {
    color: var(--footer-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-newsletter__input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--footer-border);
    height: 48px;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.footer-newsletter__input:focus {
    border-color: var(--footer-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.footer-newsletter__btn {
    background: var(--footer-gold);
    color: #000;
    width: 50px;
    height: 48px;
    font-weight: bold;
}

.footer-newsletter__btn:hover {
    background: var(--color-white);
    transform: scale(1.05);
}

/* ── FOOTER BOTTOM ── */
.footer-bottom {
    background: #050505;
    padding: 30px 0;
    border-top: 1px solid var(--footer-border);
    font-family: 'Almarai', sans-serif;
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    opacity: 0.8;
}

.footer-bottom__copy {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--color-silver);
    letter-spacing: 0.3px;
}

.footer-bottom__copy .sep {
    width: 4px;
    height: 4px;
    background: var(--footer-border);
    border-radius: 50%;
    margin: 0 5px;
}

.footer-bottom__copy .dev {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom__copy .dev span {
    color: #ff4d4d;
    font-size: 14px;
}

.footer-bottom__copy .dev a {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom__copy .dev a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--footer-gold);
    transition: width 0.3s ease;
}

.footer-bottom__copy .dev a:hover {
    color: var(--footer-gold);
}

.footer-bottom__copy .dev a:hover::after {
    width: 100%;
}

.footer-bottom__left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-bottom__links {
    display: flex;
    gap: 20px;
}

.footer-bottom__link {
    font-size: 0.82rem;
    color: var(--color-silver);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-bottom__link:hover {
    color: var(--footer-gold);
}

/* Language Switcher Dropup Premium */
.lang-switcher--footer .lang-switcher__btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--footer-border);
    color: var(--color-silver);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-switcher--footer .lang-switcher__btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--footer-gold);
    color: var(--color-white);
}

.lang-switcher--footer .lang-switcher__btn .icon {
    font-size: 14px;
}

.lang-switcher--footer .lang-switcher__btn .chevron {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.lang-switcher--footer .lang-switcher__dropdown {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    min-width: 160px;
    background: #1a1a1a;
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    padding: 10px;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.lang-switcher--footer .lang-switcher__dropdown.is-active {
    display: block;
    animation: footerSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.lang-switcher--footer .lang-switcher__dropdown li a {
    display: block;
    padding: 10px 15px;
    color: var(--color-silver);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-switcher--footer .lang-switcher__dropdown li a:hover {
    background: var(--footer-gold);
    color: #000 !important;
}

.lang-switcher--footer .lang-switcher__dropdown li a.is-active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--footer-gold);
    font-weight: 700;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-bottom__left {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col__title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-link:hover {
        transform: translateY(-3px);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-tags {
        justify-content: center;
    }

    .footer-bottom__copy {
        justify-content: center;
    }
}
