/* ============================================
   ThemeForge Pro Blog - Advanced Footer CSS
   ============================================ */

/* ---------- Footer Base ---------- */
.tf-footer {
    background: linear-gradient(180deg, #0f1720 0%, #0a1520 100%);
    color: #94a3b8;
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

/* Decorative gradient line on top */
.tf-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tf-accent), var(--tf-secondary), var(--tf-accent), transparent);
}

/* ---------- Footer Grid (4 Columns) ---------- */
.tf-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(148,163,184,0.12);
}

/* ---------- Footer Columns ---------- */
.tf-footer-col {
    min-width: 0;
}

.tf-footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 22px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: 0.3px;
}
.tf-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--tf-accent);
    border-radius: 1px;
}

/* ---------- Column 1: About ---------- */
.tf-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.tf-footer-logo .tf-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tf-accent), var(--tf-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}
.tf-footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}
.tf-footer-tagline {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 3px;
}

.tf-footer-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* ---------- Social Icons ---------- */
.tf-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tf-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(148,163,184,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.tf-footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--tf-accent), var(--tf-secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}
.tf-footer-social a:hover {
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.35);
}
.tf-footer-social a:hover::before {
    opacity: 1;
}
.tf-footer-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    position: relative;
    z-index: 1;
}

/* ---------- Footer Menu (Quick Links + Categories) ---------- */
.tf-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tf-footer-menu li {
    margin-bottom: 12px;
}
.tf-footer-menu li a {
    color: #94a3b8;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    padding-left: 0;
}
.tf-footer-menu li a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--tf-accent);
    transition: width 0.3s;
    position: absolute;
    left: 0;
    top: 50%;
}
.tf-footer-menu li a:hover {
    color: var(--tf-accent);
    padding-left: 16px;
}
.tf-footer-menu li a:hover::before {
    width: 10px;
}

/* ---------- Newsletter Form ---------- */
.tf-footer-newsletter {
    position: relative;
    margin-top: 10px;
}
.tf-footer-newsletter input {
    width: 100%;
    padding: 14px 52px 14px 16px;
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 10px;
    background: rgba(148,163,184,0.06);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}
.tf-footer-newsletter input::placeholder {
    color: #64748b;
}
.tf-footer-newsletter input:focus {
    outline: none;
    border-color: var(--tf-accent);
    background: rgba(255,107,53,0.08);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.tf-footer-newsletter button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--tf-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.tf-footer-newsletter button:hover {
    background: var(--tf-secondary);
    transform: translateY(-50%) scale(1.08);
}

/* ---------- Footer Bottom (Copyright + Legal) ---------- */
.tf-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    font-size: 13px;
}

.tf-footer-copyright {
    color: #64748b;
}

.tf-footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tf-footer-legal a {
    color: #64748b;
    transition: color 0.3s;
    font-size: 13px;
}
.tf-footer-legal a:hover {
    color: var(--tf-accent);
}
.tf-footer-sep {
    color: #334155;
    font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .tf-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
}

@media (max-width: 640px) {
    .tf-footer {
        padding: 40px 0 0;
        margin-top: 50px;
    }
    .tf-footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 34px;
    }
    .tf-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .tf-footer-legal {
        justify-content: center;
    }
    .tf-footer-social a {
        width: 38px;
        height: 38px;
    }
}