/**
 * Footer Styles
 * @package Kora_Plus_Pro
 */

/* Categories Bar Before Footer */
.categories-bar-before-footer {
    background: linear-gradient(135deg, #00A859, #00c46e);
    padding: 25px 0;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.categories-bar-title {
    text-align: center;
    margin-bottom: 20px;
}

.categories-bar-title span {
    display: inline-block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.15);
    padding: 10px 30px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-bar-nav {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.categories-bar-nav::-webkit-scrollbar {
    height: 6px;
}

.categories-bar-nav::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.categories-bar-nav::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.categories-bar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

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

.categories-list .cat-item {
    flex-shrink: 0;
}

.categories-list .cat-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.categories-list .cat-item a:hover {
    background: #fff;
    color: #00A859;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-color: #fff;
}

.cat-name {
    font-weight: 700;
}

.cat-count {
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 800;
}

.categories-list .cat-item a:hover .cat-count {
    background: #00A859;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-bar-before-footer {
        padding: 20px 0;
    }
    
    .categories-bar-title {
        margin-bottom: 15px;
    }
    
    .categories-bar-title span {
        font-size: 16px;
        padding: 8px 20px;
    }
    
    .categories-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .categories-list .cat-item a {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.site-footer {
    background: var(--secondary, #1a1a1a);
    color: #e0e0e0;
    padding: 40px 0 0;
    margin-top: 0;
    border-top: none;
}

/* إزالة الفراغ تماماً */
.categories-bar-before-footer {
    margin-bottom: 0 !important;
    padding-bottom: 25px !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
}

/* About */
.footer-about {}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 15px;
}

.footer-description {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 15px;
    font-weight: 600;
}

/* Menu */
.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #00A859);
}

/* Footer Menu Header */
.footer-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.footer-menu-controls {
    display: flex;
    gap: 5px;
}

.footer-menu-toggle,
.footer-menu-visibility {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-menu-toggle:hover,
.footer-menu-visibility:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.footer-menu-toggle .toggle-icon,
.footer-menu-visibility .toggle-visibility {
    display: block;
    line-height: 1;
    font-weight: bold;
}

/* Footer Menu Content */
.footer-menu-content {
    transition: all 0.4s ease;
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
}

.footer-menu-content.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer Nav - Default Vertical (عمودي - فوق بعض) */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Footer Nav - Horizontal Layout (أفقي - جنب بعض) */
.footer-nav.horizontal-layout {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.footer-nav.horizontal-layout li {
    flex: 0 0 auto;
}

.footer-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: #fff;
    padding-right: 10px;
}

.footer-nav.horizontal-layout a:hover {
    padding-right: 0;
    transform: translateY(-2px);
}

/* Footer Logo Toggle Button */
.footer-about {
    position: relative;
}

.footer-logo-toggle {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.footer-logo-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.footer-logo-toggle .toggle-eye {
    display: block;
    line-height: 1;
}

/* Footer Logo Content */
.footer-logo-content {
    transition: all 0.4s ease;
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
}

.footer-logo-content.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-menu-header {
        margin-bottom: 12px;
    }
    
    .footer-menu-toggle,
    .footer-menu-visibility,
    .footer-logo-toggle {
        padding: 5px 10px;
        font-size: 16px;
    }
    
    .footer-nav {
        gap: 8px;
    }
    
    .footer-nav.horizontal-layout {
        gap: 12px 20px;
    }
    
    .footer-nav a {
        font-size: 14px;
    }
}

/* ===============================================
   تصميم الفوتر البسيط الجديد
   =============================================== */

.site-footer-simple {
    background: var(--footer-bg, #1a1a1a);
    color: var(--footer-text, #fff);
    padding: 30px 0 20px;
    margin-top: 0;
}

/* قسم القائمة (في مربع) */
.footer-menu-section {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.footer-nav-simple {
    list-style: none;
    padding: 15px 30px;
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.footer-nav-simple li {
    margin: 0;
}

.footer-nav-simple a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-nav-simple a:hover {
    color: var(--primary, #00A859);
    transform: translateY(-2px);
}

/* الحقوق + Design Credits (في الأسفل - صف واحد) */
.footer-bottom-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* الحقوق - على اليمين */
.footer-bottom-simple .copyright {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    order: 1;
}

/* حقوق التصميم - على اليسار */
.footer-bottom-simple .design-credits-simple {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    order: 2;
}

.footer-bottom-simple .design-icon {
    margin: 0 5px;
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-bottom-simple .team-name {
    color: var(--primary, #00A859);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-bottom-simple .team-name:hover {
    color: var(--accent, #00c46e);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-nav-simple {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
    }
    
    .footer-nav-simple a {
        font-size: 14px;
    }
    
    .footer-bottom-simple {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-bottom-simple .copyright,
    .footer-bottom-simple .design-credits-simple {
        font-size: 13px;
        order: 0;
    }
}

/* Social (من التصميم القديم - إذا احتجنا) */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-social .social-link:hover {
    background: rgba(255,255,255,0.1);
}

.footer-social .social-link.facebook:hover {
    background: #1877f2;
}

.footer-social .social-link.twitter:hover {
    background: #000;
}

.footer-social .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.footer-social .social-link.youtube:hover {
    background: #ff0000;
}

/* Copyright */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.copyright {
    margin: 0;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Design Credits Styles */
.design-credits {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.design-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.design-icon {
    display: inline-block;
    font-size: 22px;
}

.heart-icon {
    display: inline-block;
    font-size: 20px;
    margin: 0 5px;
    color: #ff6b9d;
}

.team-name {
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    padding: 0 8px;
    font-size: 19px;
    text-decoration: none;
    display: inline-block;
}

.team-name:hover {
    color: #fff;
    text-decoration: underline;
}

/* Design Credits Responsive */
@media (max-width: 768px) {
    .design-credits {
        padding: 15px;
    }
    
    .design-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .team-name {
        font-size: 17px;
    }
}

