/**************************************************************
Ap44u Store - Premium Top-Header Style Sheet (2026 Edition)
**************************************************************/

/* الأساسيات */
body {
    overflow-x: hidden;
    background-color: #07060e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #f1f5f9;
    margin: 0;
    padding: 0;
}

/* الإضاءات الفاخرة الموزعة في الخلفية */
.bg-glow-1 {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    z-index: -5;
    pointer-events: none;
}
.bg-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 38, 211, 0.08) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    z-index: -5;
    pointer-events: none;
}

/* حاوية الصفحة الكلية */
.main-layout {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* الـ Header العلوي الجديد */
.top-panel-container {
    margin-bottom: 40px;
}
.top-panel-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.top-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* تنسيق جانب الشعار والاسم */
.brand-side {
    display: flex;
    align-items: center;
    gap: 20px;
}
.app-logo {
    max-width: 75px;
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.6));
}
.brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -1px;
}
.brand-title span {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

/* تنسيق جانب البحث المطور */
.search-side {
    flex-grow: 1;
    max-width: 400px;
}
.search-box-wrapper {
    width: 100%;
}
.search-input-group {
    position: relative;
}
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
    font-size: 1.1rem;
}
.search-input {
    width: 100%;
    height: 52px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding-left: 50px;
    padding-right: 20px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
    background: rgba(0, 0, 0, 0.6);
}

/* شارات التحقق أسفل الهيدر */
.store-badge-info {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}
.badge-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}
.badge-item i {
    color: #10b981;
    margin-right: 5px;
}

/* قسم شبكة التطبيقات السفلي */
.bottom-panel-container {
    position: relative;
}
.content-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.header-icon {
    color: #a78bfa;
    margin-right: 8px;
}
.live-indicator {
    font-size: 0.78rem;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    padding: 5px 14px;
    border-radius: 30px;
    font-weight: 600;
}
.live-indicator .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

/* كروت التطبيقات الاحترافية المتجاوبة */
.grid-item-wrapper {
    margin-bottom: 24px;
}
.app-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* الأيقونة المستديرة الاحترافية داخل الكرت */
.app-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px auto;
    border-radius: 18px;
    overflow: hidden;
    background: #111018;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}
.app-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1; /* لتتساوى الأزرار أفقياً بانتظام */
}

/* أزرار التحميل المضيئة والذكية */
.btn-action {
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    display: block;
    width: 100%;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transition: all 0.25s ease;
}
.btn-action i {
    font-size: 0.75rem;
    margin-left: 5px;
    transition: transform 0.2s ease;
}
.btn-action:hover {
    box-shadow: 0 6px 20px rgba(192, 38, 211, 0.45);
    transform: scale(1.02);
}
.btn-action:hover i {
    transform: translateX(3px);
}

/* رسالة الخطأ للبحث */
.search-error-wrapper {
    display: none;
    text-align: center;
    padding: 60px 20px;
}
.error-icon {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 15px;
}
.search-error-wrapper span {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}
.search-error-wrapper p {
    color: #64748b;
    font-size: 0.9rem;
}

/* تأثير الـ Blink للعلامة الحية */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* التجاوب الذكي مع الهواتف والأجهزة اللوحية */
@media (max-width: 991px) {
    .top-panel-card {
        padding: 25px 20px;
    }
    .brand-side {
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    .search-side {
        max-width: 100%;
    }
    .store-badge-info {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
}