/**
 * Footer Pro Styles - Jory News Theme
 * CSS variables are set dynamically from Panel settings via frontend.php
 * 
 * @package jory-news-theme
 */

/* ===================== */
/* Footer Pro Styles     */
/* ===================== */
.footer-pro {
    background: var(--jooeri-footer-bg, #0f172a);
    color: #94a3b8;
    position: relative;
}

.footer-wave-pro {
    margin-bottom: -1px;
}

.footer-wave-pro svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-main-pro {
    padding: 50px 0 30px;
}

.footer-main-pro .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Top */
.footer-top-pro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand-pro {
    max-width: 350px;
}

.footer-logo-pro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 15px;
}

.logo-emoji {
    font-size: 2rem;
}

.logo-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* Social Buttons */
.footer-social-pro {
    text-align: left;
}

.social-label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.social-btns {
    display: flex;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-btn.fb:hover { background: #1877f2; }
.social-btn.tw:hover { background: #1da1f2; }
.social-btn.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.yt:hover { background: #ff0000; }

.social-btn:hover {
    transform: translateY(-3px);
}

/* Footer Grid */
.footer-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    width: fit-content;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--jooeri-accent, #e53e3e);
    border-radius: 3px;
}

.footer-column h4 svg {
    color: var(--jooeri-accent, #e53e3e);
    flex-shrink: 0;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    position: relative;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.footer-column ul a::before {
    content: '›';
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--jooeri-accent, #e53e3e);
    font-size: 1.4rem;
    line-height: 1;
}

.footer-column ul a:hover {
    color: #fff;
    padding-right: 18px;
}

.footer-column ul a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info p svg {
    color: var(--jooeri-accent, #e53e3e);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-info a {
    color: #94a3b8;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--jooeri-accent, #3b82f6);
}

/* Footer Bottom */
.footer-bottom-pro {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
}

.footer-bottom-pro .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright-pro, .developer-pro {
    margin: 0;
    font-size: 0.9rem;
}

.copyright-pro strong {
    color: #fff;
}

.developer-pro a {
    color: var(--jooeri-accent, #3b82f6);
    text-decoration: none;
    font-weight: 600;
}

.developer-pro a:hover {
    color: #fff;
}

/* =============================================
   Back to Top — Premium with Scroll Progress Ring
   ============================================= */
.btt-premium {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 52px;
    height: 52px;
    background: rgba(var(--jooeri-btt-rgb, 59, 130, 246), 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--jooeri-btt-rgb, 59, 130, 246), 0.25);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.btt-premium.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.btt-premium:hover {
    background: rgba(var(--jooeri-btt-rgb, 59, 130, 246), 0.3);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        0 8px 32px rgba(var(--jooeri-btt-rgb, 59, 130, 246), 0.35),
        0 0 0 4px rgba(var(--jooeri-btt-rgb, 59, 130, 246), 0.1);
}

.btt-premium:active {
    transform: translateY(-2px) scale(1.02);
}

/* Progress ring SVG */
.btt-progress {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.btt-progress-bg {
    stroke: rgba(var(--jooeri-btt-rgb, 59, 130, 246), 0.15);
}

.btt-progress-bar {
    stroke: var(--jooeri-btt-color, #3b82f6);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease;
    filter: drop-shadow(0 0 4px rgba(var(--jooeri-btt-rgb, 59, 130, 246), 0.5));
}

/* Center arrow icon */
.btt-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jooeri-btt-color, #3b82f6);
    transition: all 0.3s ease;
}

.btt-premium:hover .btt-icon {
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid-pro {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top-pro {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand-pro {
        max-width: 100%;
    }
    
    .footer-social-pro {
        text-align: center;
    }
    
    .social-btns {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid-pro {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column ul a:hover {
        padding-right: 0;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .footer-bottom-pro .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .btt-premium {
        bottom: 20px;
        left: 20px;
        width: 46px;
        height: 46px;
    }
    
    .btt-premium .btt-progress {
        width: 46px;
        height: 46px;
    }
}

