/* ==========================================================================
   FOOTER STYLES - Premium Theme
   ========================================================================== */

.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xl);
}

/* Main Footer */
.footer-main {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo {
    max-height: 50px;
    max-width: 100%;       /* Never exceed the column width (fixes overflow into next column) */
    width: auto;
    height: auto;
    display: block;        /* Remove inline whitespace and keep it within the box */
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.footer-logo .logo-accent {
    color: var(--accent);
}

/* Footer About */
.footer-about {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Footer Widget */
.footer-widget {
    margin-bottom: 2rem;
    min-width: 0;          /* Allow flex/grid children to shrink instead of overflowing */
    overflow-wrap: break-word;
}

/* Prevent any footer column content from spilling into the next column */
.footer-main [class*="col-"] {
    min-width: 0;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-links a i {
    font-size: 0.875rem;
    width: 16px;
}

.footer-links a.text-accent {
    color: var(--accent);
    font-weight: 500;
    margin-top: 0.5rem;
}

.footer-links a.text-accent:hover {
    color: white;
}

/* Footer Posts */
.footer-posts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-post-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: var(--transition);
}

.footer-post-title:hover {
    color: var(--accent);
}

.footer-post-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-post-meta i {
    font-size: 0.75rem;
}

/* Bottom Footer */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-credit {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.footer-credit:hover {
    color: white;
}

/* Button in Footer */
.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.footer .btn-outline-light:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .footer-main {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-widget {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 767px) {
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:first-child {
        margin-bottom: 0.5rem;
    }
}
/* ==========================================================================
   PREMIUM ENHANCEMENTS — Footer
   ========================================================================== */

.footer {
    background: var(--gradient-primary);
    position: relative;
}
/* Animated gradient top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-accent);
    background-size: 200% 100%;
    animation: gradientShift 5s ease infinite;
}

.footer-title::after { background: var(--gradient-accent); height: 3px; border-radius: 3px; width: 55px; }

.social-link { transition: var(--transition); }
.social-link:hover {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-glow-accent);
    transform: translateY(-4px) scale(1.08);
}

.footer-links a { transition: var(--transition); }
.footer-links a:hover { padding-left: 0.6rem; color: var(--accent-light); }

.footer-post-title:hover { color: var(--accent-light); }
/* =====================================================================
   Legal & Follow Us Bar (footer)
   ===================================================================== */
.footer-legal-bar {
    background: var(--primary-dark, #16222c);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0;
}

.footer-legal-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Legal linkler - yatay liste */
.footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.footer-legal-links li {
    margin: 0;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-legal-links a:hover {
    color: var(--accent-light, #F5A623);
}

/* Follow Us - sosyal butonlar */
.footer-follow-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.follow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.follow-link i {
    font-size: 1rem;
}

.follow-link:hover {
    background: var(--gradient-accent, var(--accent));
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-legal-links {
        flex-direction: column;
        gap: 0.6rem;
    }
    .footer-follow-social {
        margin-top: 0.5rem;
    }
}
