/* Turkpidya Custom CSS - Extracted from functions.php */

/* Rich Footer Styles */
.turkpidya-footer-upper {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 60px 20px 40px;
    position: relative;
    overflow-x: hidden !important;
}

.turkpidya-footer-upper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #C9A227 20%, #E30A17 50%, #C9A227 80%, transparent 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-col h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
}

.footer-col h4 {
    color: #C9A227;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #E30A17;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 1rem 0;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover {
    color: #C9A227;
    transform: translateX(5px);
}

[dir="rtl"] .footer-col ul li a:hover {
    transform: translateX(-5px);
}

.footer-col ul li a i {
    color: #E30A17;
    width: 18px;
    text-align: center;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: #C9A227;
    color: #1a1a1a;
    transform: translateY(-5px);
    border-color: #C9A227;
}

.footer-lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(227, 10, 23, 0.15);
    padding: 10px 18px;
    border-radius: 25px;
    color: #E30A17;
    font-weight: 600;
    margin-top: 1.5rem;
    border: 1px solid rgba(227, 10, 23, 0.3);
}

.footer-lang-badge i {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TURKPIDYA FOOTER - OTTOMAN ELEGANCE
   ============================================ */

/* Main Footer Container */
body .site-footer,
body footer.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin-top: 60px !important;
}

/* Ottoman Geometric Pattern Overlay */
body .site-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Top Gold Accent Line */
body .site-footer::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent 0%, #C9A227 20%, #E30A17 50%, #C9A227 80%, transparent 100%) !important;
    z-index: 10 !important;
}

/* Footer Inner Container */
body .site-footer-inner-wrap,
body .site-footer .site-footer-wrap {
    position: relative !important;
    z-index: 1 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 30px 30px !important;
}

/* Footer Widget Area */
body .footer-widget-area {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
    gap: 40px !important;
    margin-bottom: 40px !important;
}

@media (max-width: 991px) {
    body .footer-widget-area {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 600px) {
    body .footer-widget-area {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
}

/* Footer Headings */
body .site-footer h3,
body .site-footer h4,
body .site-footer .widget-title,
body .site-footer .footer-widget-title {
    color: #C9A227 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid rgba(201, 162, 39, 0.3) !important;
    position: relative !important;
}

body .site-footer .widget-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 50px !important;
    height: 2px !important;
    background: #E30A17 !important;
}

@media (max-width: 600px) {
    body .site-footer .widget-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Footer Text */
body .site-footer,
body .site-footer p,
body .site-footer .textwidget {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
}

/* Footer Links */
body .site-footer a,
body .site-footer .menu a,
body .site-footer .widget a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

body .site-footer a:hover,
body .site-footer .menu a:hover {
    color: #C9A227 !important;
    transform: translateX(5px) !important;
}

[dir="rtl"] body .site-footer a:hover {
    transform: translateX(-5px) !important;
}

/* Footer Menu Styling */
body .site-footer .menu,
body .site-footer .footer-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .site-footer .menu li,
body .site-footer .footer-navigation li {
    margin-bottom: 0.75rem !important;
}

body .site-footer .menu li a::before {
    content: '›' !important;
    margin-right: 8px !important;
    color: #E30A17 !important;
    font-weight: bold !important;
    transition: margin 0.3s ease !important;
}

[dir="rtl"] body .site-footer .menu li a::before {
    content: '‹' !important;
    margin-right: 0 !important;
    margin-left: 8px !important;
}

body .site-footer .menu li a:hover::before {
    margin-right: 12px !important;
}

[dir="rtl"] body .site-footer .menu li a:hover::before {
    margin-right: 0 !important;
    margin-left: 12px !important;
}

/* Social Media Links Container */
body .site-footer .social-links,
body .site-footer .footer-social {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

@media (max-width: 600px) {

    body .site-footer .social-links,
    body .site-footer .footer-social {
        justify-content: center !important;
    }
}

/* Social Media Buttons */
body .site-footer .social-links a,
body .site-footer .menu a[href*="facebook"],
body .site-footer .menu a[href*="twitter"],
body .site-footer .menu a[href*="instagram"],
body .site-footer .menu a[href*="youtube"] {
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(201, 162, 39, 0.3) !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

body .site-footer .menu a[href*="facebook"]:hover,
body .site-footer .menu a[href*="twitter"]:hover {
    background: #C9A227 !important;
    color: #1a1a1a !important;
    transform: translateY(-5px) scale(1.1) !important;
    border-color: #C9A227 !important;
}

/* Hide text for social links, show icon */
body .site-footer .menu a[href*="facebook"],
body .site-footer .menu a[href*="twitter"] {
    font-size: 0 !important;
}

body .site-footer .menu a[href*="facebook"]::before {
    content: '\f39e' !important;
    font-family: 'Font Awesome 6 Brands' !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
}

body .site-footer .menu a[href*="twitter"]::before {
    content: '\e61b' !important;
    font-family: 'Font Awesome 6 Brands' !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
}

/* Copyright Bar */
body .site-footer .site-info,
body .site-footer .footer-bottom,
body .site-footer .site-footer-bottom-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 25px !important;
    margin-top: 20px !important;
    text-align: center !important;
}

body .site-footer .site-info p,
body .site-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* Footer Logo Area */
body .site-footer .footer-logo img,
body .site-footer .custom-logo {
    max-width: 150px !important;
    height: auto !important;
    margin-bottom: 1rem !important;
    /* filter removed */
}

/* Newsletter Form Styling (if present) */
body .site-footer input[type="email"],
body .site-footer .newsletter-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(201, 162, 39, 0.3) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 30px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

body .site-footer input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

body .site-footer input[type="submit"],
body .site-footer .newsletter-btn {
    background: linear-gradient(135deg, #E30A17 0%, #c4090f 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

body .site-footer input[type="submit"]:hover {
    background: linear-gradient(135deg, #C9A227 0%, #b8922a 100%) !important;
    transform: translateY(-2px) !important;
}

/* Language Indicator in Footer */
body .site-footer .current-lang {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(227, 10, 23, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    color: #E30A17 !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
}

/* RTL Support */
[dir="rtl"] body .site-footer {
    text-align: right !important;
}

[dir="rtl"] body .site-footer .social-links {
    flex-direction: row-reverse !important;
}

/* Decorative Crescent Moon */
body .site-footer .footer-decoration {
    position: absolute !important;
    top: 50px !important;
    right: 50px !important;
    width: 80px !important;
    height: 80px !important;
    opacity: 0.05 !important;
    background: #C9A227 !important;
    border-radius: 50% !important;
    box-shadow: 20px 0 0 0 #1a1a1a !important;
}

[dir="rtl"] body .site-footer .footer-decoration {
    right: auto !important;
    left: 50px !important;
    box-shadow: -20px 0 0 0 #1a1a1a !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body .site-footer-inner-wrap {
        padding: 40px 20px 20px !important;
    }

    body .site-footer h3,
    body .site-footer .widget-title {
        font-size: 1rem !important;
    }

    body .site-footer .footer-decoration {
        display: none !important;
    }
}

/* Kadence-specific overrides */
body .site-footer .footer-widget-area-inner,
body .site-footer .site-footer-upper-wrap,
body .site-footer .site-footer-row-container-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 30px 20px !important;
}

body .site-footer .footer-widget-area .widget {
    margin-bottom: 0 !important;
}

body .site-footer .site-footer-row {
    background: transparent !important;
}


/* ============================================
   FOOTER ENHANCEMENTS - CULTURAL DISTINCTIVENESS
   ============================================ */

/* Stronger Ottoman Pattern */
.turkpidya-footer-upper::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg width=80 height=80 viewBox=0 0 80 80 xmlns=http://www.w3.org/2000/svg%3E%3Cg fill=%23C9A227 fill-opacity=0.08%3E%3Cpath d=M40 0l6.18 18.82L65.02 14.98l-3.84 18.84L80 40l-18.82 6.18 3.84 18.84-18.84-3.84L40 80l-6.18-18.82-18.84 3.84 3.84-18.84L0 40l18.82-6.18-3.84-18.84 18.84 3.84z/%3E%3C/g%3E%3C/svg%3E") !important;
    pointer-events: none !important;
    z-index: 0 !important;
    animation: patternFloat 60s linear infinite !important;
}

@keyframes patternFloat {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 80px 80px;
    }
}

/* Enhanced Social Buttons with Tulip Glow */
.footer-social-links a {
    position: relative !important;
    overflow: visible !important;
}

.footer-social-links a::before {
    content: "" !important;
    position: absolute !important;
    inset: -4px !important;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.4) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
    transform: scale(0.8) !important;
    z-index: -1 !important;
}

.footer-social-links a:hover::before {
    opacity: 1 !important;
    transform: scale(1.3) !important;
}

.footer-social-links a:hover {
    transform: translateY(-5px) rotate(5deg) !important;
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3) !important;
}

/* Animated Language Badge with Greeting Cycle */
.footer-lang-badge {
    position: relative !important;
    overflow: hidden !important;
}

.footer-lang-badge .greeting-text {
    display: inline-block !important;
    min-width: 80px !important;
    animation: greetingCycle 12s infinite !important;
}

@keyframes greetingCycle {

    0%,
    16% {
        opacity: 1 !important;
    }

    20%,
    36% {
        opacity: 0;
    }

    40%,
    56% {
        opacity: 1 !important;
    }

    60%,
    76% {
        opacity: 0;
    }

    80%,
    100% {
        opacity: 1 !important;
    }
}

/* Ottoman-Inspired Section Dividers */
.footer-col h4 {
    position: relative !important;
}

.footer-col h4::before {
    content: "◆" !important;
    position: absolute !important;
    left: -20px !important;
    color: #E30A17 !important;
    font-size: 0.7rem !important;
    opacity: 0.7 !important;
}

@media (max-width: 600px) {
    .footer-col h4::before {
        display: none !important;
    }
}

/* Link Hover with Shimmer Effect */
.footer-col ul li a {
    position: relative !important;
    overflow: hidden !important;
}

.footer-col ul li a::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.footer-col ul li a:hover::after {
    left: 100% !important;
}

/* Crescent Moon Decoration */
.turkpidya-footer-upper .footer-container::after {
    content: "" !important;
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: #C9A227 !important;
    border-radius: 50% !important;
    box-shadow: 15px 0 0 0 #1a1a1a !important;
    opacity: 0.15 !important;
}

[dir="rtl"] .turkpidya-footer-upper .footer-container::after {
    right: auto !important;
    left: 30px !important;
    box-shadow: -15px 0 0 0 #1a1a1a !important;
}

@media (max-width: 768px) {
    .turkpidya-footer-upper .footer-container::after {
        display: none !important;
    }
}

/* Improved Logo Display - Not Fully Inverted */
.footer-logo img {
    /* filter removed */
    transition: transform 0.3s ease !important;
}

.footer-logo:hover img {
    transform: scale(1.05) !important;
}


/* ============================================
   MOBILE FOOTER FIXES
   ============================================ */

@media (max-width: 768px) {
    .turkpidya-footer-upper {
        padding: 40px 15px 30px !important;
    }

    .turkpidya-footer-upper .footer-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .turkpidya-footer-upper .footer-col {
        width: 100% !important;
        text-align: center !important;
    }

    .turkpidya-footer-upper .footer-logo {
        display: flex !important;
        justify-content: center !important;
    }

    .turkpidya-footer-upper .footer-logo img {
        max-width: 120px !important;
        height: auto !important;
    }

    .turkpidya-footer-upper .footer-tagline {
        text-align: center !important;
    }

    .turkpidya-footer-upper .footer-social-links {
        justify-content: center !important;
    }

    .turkpidya-footer-upper .footer-col h4 {
        text-align: center !important;
    }

    .turkpidya-footer-upper .footer-col h4::before {
        display: none !important;
    }

    .turkpidya-footer-upper .footer-col h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .turkpidya-footer-upper .footer-col ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .turkpidya-footer-upper .footer-col ul li a {
        justify-content: center !important;
    }

    .turkpidya-footer-upper .footer-lang-badge {
        margin: 1.5rem auto 0 !important;
    }
}