/**
 * Footer CSS - جميع أنماط الفوتر
 * @package Kora_Plus_Pro
 * @version 25.8
 * يشمل: Quick Tools + Categories + Footer + Mobile Responsive
 */

/* Quick Tools Section */
.quick-tools-section {
    padding: 50px 0 20px 0;
    margin-top: 40px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.quick-tools-title {
    text-align: center;
    font-weight: 800;
    color: #fff;
    margin: 0 0 40px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-tool-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-tool-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.tool-icon {
    font-size: 24px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.tool-content {
    flex: 1;
}

.tool-name {
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.3;
}

.tool-desc {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Quick Tools Responsive */
@media (max-width: 1200px) {
    .quick-tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .quick-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* إصلاح عرض Quick Tools للكامل - بدون فراغات */
    .quick-tools-section {
        padding: 40px 0 15px 0;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .quick-tools-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .quick-tools-title {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .quick-tool-item {
        padding: 15px;
        gap: 12px;
    }
    
    .tool-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .quick-tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .quick-tool-item {
        padding: 15px;
        gap: 10px;
    }
    
    .tool-icon {
        font-size: 18px;
        width: 35px;
        height: 35px;
    }
}

/* ✅ Simple Categories Section - بسيط ومميز بدون تأثيرات */
.simple-categories-section {
    background: #ffffff;
    padding: 20px 0 !important;
    margin: 0 !important;
    border-top: 1px solid #e9ecef;
    position: relative;
    overflow: visible;
}

/* ✅ إزالة جميع التأثيرات من العنوان */
.simple-categories-title {
    text-align: center;
    margin-bottom: 20px;
}

.simple-categories-title h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    padding: 0;
}

.simple-categories-title h3::after {
    display: none !important;
}

.simple-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

/* ✅ أزرار بسيطة ومميزة - بدون تأثيرات معقدة */
.simple-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

/* ✅ إزالة جميع التأثيرات المعقدة */
.simple-category-btn::before,
.simple-category-btn::after {
    display: none !important;
    content: none !important;
}

/* ✅ hover بسيط ومميز */
.simple-category-btn:hover {
    color: var(--primary, #00A859);
    border-color: var(--primary, #00A859);
    background: #ffffff;
    text-decoration: none;
    /* ✅ تحسين الأداء - استخدام transform بدلاً من position */
    transform: translateY(-2px) translateZ(0);
    will-change: transform;
    box-shadow: 0 2px 4px rgba(0, 168, 89, 0.15);
}

.simple-category-btn:active {
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 168, 89, 0.1);
}

/* ✅ Responsive - بسيط ومميز */
@media (max-width: 768px) {
    .simple-categories-section {
        padding: 15px 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .simple-categories-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .simple-categories-title {
        margin-bottom: 15px;
    }
    
    .simple-categories-title h3 {
        font-size: 18px;
        padding: 0;
    }
    
    .simple-category-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .simple-categories-list {
        gap: 8px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .simple-categories-section {
        padding: 12px 0 !important;
    }
    
    .simple-categories-title h3 {
        font-size: 16px;
    }
    
    .simple-category-btn {
        font-size: 12px;
        padding: 7px 14px;
    }
    
    .simple-categories-list {
        gap: 6px;
    }
}

.site-footer {
    background: var(--secondary, #1a1a1a);
    color: #ffffff !important; /* ✅ تحسين التباين - أبيض بدلاً من #e0e0e0 */
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 5px solid var(--primary, #00A859);
}
.site-footer .container {
    padding-bottom: 0;
    margin-bottom: 0;
}
body > footer:last-child,
html > body > footer:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
.site-footer::after,
.site-footer::before {
    display: none;
    content: none;
}

.footer-quick-links {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #ffffff !important; /* ✅ تباين 21:1 على خلفية #1a1a1a - WCAG AAA compliance */
    text-decoration: none;
    font-weight: 700 !important; /* زيادة الوزن لتحسين القراءة */
    font-size: 15px;
    display: inline-block;
    padding: 8px 0;
    position: relative;
}

.footer-nav a:hover {
    color: #00A859 !important; /* لون أخضر واضح عند hover */
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary, #00A859);
    transition: width 0.3s ease;
}

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

.footer-bottom {
    padding: 25px 0;
    margin-bottom: 0;
}
.site-footer:after,
.site-footer::after {
    display: none;
    content: none;
}
.footer-widgets {
    padding-bottom: 40px;
    margin-bottom: 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    flex: 1;
}

/* ✅ إصلاح تباين الألوان - WCAG AA Compliance */
.copyright {
    margin: 0 !important;
    color: #ffffff !important; /* أبيض بدلاً من #e0e0e0 لتباين أفضل (21:1 على أسود) */
    font-weight: 600 !important;
}

/* ضمان تباين كافٍ في جميع حالات الفوتر */
.site-footer .footer-copyright {
    background-color: #000000 !important;
}
.site-footer .footer-copyright .copyright,
.site-footer .footer-copyright p,
.site-footer .footer-copyright p.copyright {
    color: #ffffff !important;
}

.footer-design-credits {
    flex: 1;
    text-align: right;
}

.design-text {
    color: #ffffff !important; /* ✅ تباين محسّن - أبيض على خلفية داكنة */
    font-size: 14px;
    font-weight: 700 !important; /* زيادة الوزن لتحسين القراءة */
    margin: 0;
    line-height: 1.6;
}

.design-prefix {
    color: var(--primary, #00A859);
    font-size: 16px;
}

.design-icon {
    display: inline-block;
    font-size: 16px;
    margin: 0 5px;
}

.team-name {
    font-weight: 700;
    color: #00A859 !important; /* ✅ لون أخضر واضح - تباين جيد على خلفية داكنة */
    text-decoration: none;
    font-size: 15px;
}

.team-name:hover {
    color: #ffffff !important; /* ✅ أبيض عند hover - تباين 21:1 */
    text-decoration: underline;
}

/* Floating Footer Buttons */
.floating-footer-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-footer-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary, #198754);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-footer-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-footer-button:hover {
    background: var(--primary-dark, #0f5132);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.floating-footer-button svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .floating-footer-buttons {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .floating-footer-button {
        width: 45px;
        height: 45px;
    }
    
    .floating-footer-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* إصلاح عرض الفوتر للكامل - بدون فراغات */
    .site-footer {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .site-footer .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0 15px;
    }
    
    .footer-design-credits {
        text-align: center;
    }
    
    .footer-quick-links {
        padding: 25px 15px;
    }
    
    .footer-bottom {
        padding: 20px 15px;
    }
    
    .footer-widgets {
        padding: 40px 15px !important;
    }
}

/* Footer Styles - من footer.php */
.site-footer { direction: rtl; margin-bottom: 0 !important; padding-bottom: 0 !important; }
.site-footer .footer-widgets { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer .footer-widget-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.site-footer .footer-column { display: flex; flex-direction: column; }
.site-footer .footer-quick-links { margin-bottom: 15px; }
.site-footer .footer-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.site-footer .footer-bottom { padding: 15px 0; border-top: 1px solid #eee; margin-bottom: 0 !important; padding-bottom: 15px !important; }
.site-footer .footer-bottom-content { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.site-footer .footer-bottom-content p { margin: 0; line-height: 1.7; }
.site-footer .footer-copyright { background-color: #000000 !important; padding: 10px 15px; border-radius: 4px; }
.site-footer .footer-copyright .copyright,
.site-footer .footer-copyright p,
.site-footer .footer-copyright p.copyright { color: #ffffff !important; font-weight: 600 !important; margin: 0 !important; }
.site-footer .footer-design-credits .design-text { margin: 0; font-size: 14px; color: #ffffff !important; font-weight: 600; }
.site-footer .footer-design-credits .team-name { color: #00A859 !important; text-decoration: none; font-weight: 700; }
.site-footer .footer-design-credits .team-name:hover { color: #ffffff !important; text-decoration: underline; }

/* إخفاء أي إعلانات في الفوتر */
.site-footer ins,
.site-footer .adsbygoogle,
.site-footer [id*="ad"],
.site-footer [class*="ad"],
.site-footer [id*="ads"],
.site-footer [class*="ads"],
.site-footer .ad-container,
.site-footer .ad-wrapper,
.site-footer .advertisement,
.site-footer .advert,
.site-footer iframe[src*="ads"],
.site-footer iframe[src*="advertising"],
.site-footer div[id*="google_ads"],
.site-footer div[class*="google_ads"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* إخفاء أي عناصر فاضية في footer widgets */
.site-footer .footer-column:empty,
.site-footer .footer-widget-area:empty {
    display: none !important;
}

/* منع أي إعلانات بعد الفوتر فقط (وليس في الأماكن المخصصة) */
body > footer.site-footer ~ ins:not(.kora-ad-container ins),
body > footer.site-footer ~ div[id*="ad"]:not(.kora-ad-container),
body > footer.site-footer ~ div[class*="ad"]:not(.kora-ad-container),
body > footer.site-footer ~ .adsbygoogle:not(.kora-ad-container .adsbygoogle) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* منع أي مربعات فاضية بعد الفوتر نهائياً */
body > footer.site-footer ~ div:not(.floating-footer-buttons):not(.kora-ad-container):not(script):not(style) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* منع أي عناصر فاضية بعد الفوتر */
body > footer.site-footer ~ *:not(.floating-footer-buttons):not(.kora-ad-container):not(script):not(style):not(.quick-tools-section):not(.simple-categories-section) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .site-footer .footer-bottom-content { justify-content: center; text-align: center; }
    .site-footer .footer-widget-area { grid-template-columns: 1fr; gap: 20px; }
}

body > footer:last-child,
html > body > footer:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}



