/*
Theme Name: Kadence Child - Mobile Accessories
Template: kadence
Description: قالب متجر ملحقات جوال مع شريط سفلي احترافي
Version: 2.0.0
*/

/* ===== المتغيرات الحديثة ===== */
:root {
    --primary-blue: #2563eb;
    --electric-blue: #3b82f6;
    --deep-blue: #1e40af;
    --accent-orange: #f59e0b;
    --vibrant-red: #ef4444;
    --success-green: #10b981;
    
    --pure-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    
    --shadow-lg: 0 -20px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 -25px 60px rgba(0, 0, 0, 0.2);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue) 0%, var(--electric-blue) 100%);
    --gradient-orange: linear-gradient(135deg, var(--accent-orange) 0%, #f97316 100%);
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== الشريط السفلي الاحترافي ===== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 15px 0 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    transform: translateY(0);
    transition: var(--transition);
}

.bottom-bar-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.03;
    z-index: -1;
}

.bottom-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    padding: 10px 12px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    flex: 1;
    max-width: 75px;
    min-height: 60px;
    background: transparent;
    overflow: hidden;
}

.bottom-bar-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.bottom-bar-item:hover::before,
.bottom-bar-item.active::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.08;
}

.bottom-bar-item:hover,
.bottom-bar-item.active {
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.icon-wrapper {
    position: relative;
    margin-bottom: 6px;
    z-index: 1;
    transition: var(--transition);
}

.bottom-bar-item i {
    font-size: 22px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.bottom-bar-item:hover i,
.bottom-bar-item.active i {
    transform: scale(1.15);
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.item-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    letter-spacing: -0.2px;
}

.bottom-bar-item:hover .item-label,
.bottom-bar-item.active .item-label {
    color: var(--primary-blue);
    transform: translateY(1px);
}

/* فقاعة عداد السلة */
.cart-bubble {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--vibrant-red);
    color: var(--pure-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
    border: 2px solid var(--pure-white);
}

/* النقطة النشطة */
.active-dot {
    position: absolute;
    bottom: 2px;
    width: 5px;
    height: 5px;
    background: var(--gradient-blue);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    transform: scale(0);
}

.bottom-bar-item.active .active-dot {
    opacity: 1;
    transform: scale(1);
    animation: bounceDot 2s infinite;
}

/* ===== تأثيرات الحركة ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(239, 68, 68, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
    }
}

@keyframes bounceDot {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-3px) scale(1.2);
    }
    60% {
        transform: translateY(-2px) scale(1.1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== التجاوب مع الشاشات ===== */

/* الجوالات الصغيرة */
@media (max-width: 374px) {
    .mobile-bottom-bar {
        padding: 12px 0 8px;
    }
    
    .bottom-bar-item {
        padding: 8px 10px;
        max-width: 65px;
        min-height: 55px;
    }
    
    .bottom-bar-item i {
        font-size: 20px;
    }
    
    .item-label {
        font-size: 10px;
    }
    
    .cart-bubble {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* الجوالات المتوسطة */
@media (min-width: 375px) and (max-width: 767px) {
    .mobile-bottom-bar {
        animation: slideInUp 0.6s ease-out;
    }
}

/* التابلت */
@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-bottom-bar {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 25px 25px 0 0;
        margin-bottom: 15px;
        border: 1px solid var(--glass-border);
        border-bottom: none;
    }
    
    .bottom-bar-container {
        padding: 0 25px;
    }
    
    .bottom-bar-item {
        max-width: 80px;
        min-height: 65px;
    }
    
    .bottom-bar-item i {
        font-size: 24px;
    }
    
    .item-label {
        font-size: 12px;
    }
}

/* إخفاء على الديسكتوب */
@media (min-width: 1025px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

/* ===== تحسينات الأداء ===== */
.mobile-bottom-bar {
    will-change: transform;
}

.bottom-bar-item {
    will-change: transform;
}

/* منع التداخل مع المحتوى */
@media (max-width: 1024px) {
    body.has-mobile-bottom-bar {
        padding-bottom: 85px;
    }
}

/* تحسينات للوصول */
.bottom-bar-item:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.bottom-bar-item:focus::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.12;
}

/* الوضع الليلي */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-bar {
        background: rgba(15, 23, 42, 0.95);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .bottom-bar-item {
        color: #cbd5e1;
    }
    
    .bottom-bar-item:hover,
    .bottom-bar-item.active {
        color: #60a5fa;
    }
    
    .bottom-bar-background {
        background: var(--gradient-blue);
        opacity: 0.05;
    }
}

/* تأثير اللمس للجوال */
@media (hover: none) {
    .bottom-bar-item:active {
        transform: scale(0.95);
    }
    
    .bottom-bar-item:active::before {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
}



