/* ==========================================================================
   Storesat IPTV Content Hub - Luxury Dark CSS Styles
   Matched 100% to ssouq.com high-converting Programmatic SEO UI
   Optimized for both White & Dark page backgrounds with high contrast
   ========================================================================== */

/* ---------------- 1. بطاقة المحتوى المتوفر لصفحات المنتجات ---------------- */
.desc-live-section {
    margin: 24px 0 28px 0;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

/* عنوان المحتوى المتوفر - واضح وبارز 100% على الخلفيات البيضاء */
.desc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important; /* لون كحلي غامق واضح جداً على الخلفية البيضاء */
    margin: 0 0 14px 0 !important;
    line-height: 1.3 !important;
}

/* دعم الثيمات الداكنة في حال تم تفعيل الوضع الليلي */
.dark .desc-section-title,
[data-theme="dark"] .desc-section-title,
.woodmart-dark .desc-section-title {
    color: #f8fafc !important;
}

.desc-title-bar {
    width: 4px;
    height: 20px;
    background: #0284c7;
    background: linear-gradient(180deg, #0284c7 0%, #00f2fe 100%);
    border-radius: 4px;
    display: inline-block;
}

.desc-live {
    background: #0b1118;
    background: linear-gradient(180deg, #0b1118 0%, #0d1622 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.desc-live-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    margin: 0 0 16px 0 !important;
}

.desc-live-date-val {
    color: #f1f5f9 !important;
    font-weight: 700;
}

.desc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    display: inline-block;
    animation: slcLivePulse 2s infinite ease-in-out;
}

@keyframes slcLivePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.desc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 16px 0 !important;
}

.desc-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 10px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.desc-stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
}

.desc-stat-box b {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    line-height: 1.1;
    direction: ltr;
}

.desc-stat-box span {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 600;
}

.desc-added {
    padding: 11px 16px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 14px 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.desc-added b {
    color: #10b981 !important;
}

.desc-updated {
    margin: 0 !important;
    text-align: left;
}

.desc-content-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #38bdf8 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.desc-content-link:hover {
    color: #7dd3fc !important;
}

.desc-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.desc-content-link:hover .desc-arrow {
    transform: translateX(-4px);
}

@media (max-width: 640px) {
    .desc-live {
        padding: 18px 16px;
    }
    .desc-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .desc-stat-box b {
        font-size: 19px !important;
    }
}

/* ---------------- 2. صفحة الفهرس والمحتوى /content/ ---------------- */
.storesat-catalog-page {
    background: #090d16;
    color: #f8fafc;
    min-height: 90vh;
    padding: 40px 15px 100px 15px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.sc-container {
    max-width: 1260px;
    margin: 0 auto;
}

.sc-hero {
    text-align: center;
    margin-bottom: 35px;
}

.sc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.sc-hero-title {
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
}

.sc-hero-date {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.sc-server-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.sc-tab {
    padding: 10px 24px;
    border-radius: 30px;
    background: #151d2f;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #1e293b;
    cursor: pointer;
}

.sc-tab.active, .sc-tab:hover {
    background: #0284c7;
    color: #ffffff !important;
    border-color: #38bdf8;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.45);
}

.sc-search-wrap {
    max-width: 650px;
    margin: 0 auto 35px auto;
}

.sc-search-input {
    width: 100%;
    background: #151d2f;
    border: 1px solid #23314d;
    border-radius: 14px;
    padding: 15px 22px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
}

.sc-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background: #1a243a;
}

/* شبكة العرض (6 أعمدة على الديسكتوب، 4 على التابلت، 3 على الموبايل كالمنافس) */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .sc-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .sc-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.sc-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none !important;
}

.sc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    border-color: #38bdf8;
}

.sc-card-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #1e293b;
    overflow: hidden;
}

.sc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sc-card:hover .sc-card-img {
    transform: scale(1.04);
}

.sc-card-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(2, 132, 199, 0.88);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.sc-card-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sc-card-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-card:hover .sc-card-name {
    color: #38bdf8 !important;
}

.sc-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Spinner & Sentinel */
.sc-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 15px;
}

.sc-dot-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: scSpin 0.75s linear infinite;
}

@keyframes scSpin {
    to { transform: rotate(360deg); }
}

.sc-end-msg {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    padding: 40px 0;
    font-weight: 700;
}

/* زر الشراء العائم بالأسفل */
.sc-cta-floating {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 650px;
    text-align: center;
}

.sc-cta-btn {
    display: block;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(2, 132, 199, 0.7);
}

/* ---------------- 3. صفحة تفاصيل العنوان /title/?n=... ---------------- */
.storesat-title-page {
    background: #090d16;
    color: #f8fafc;
    min-height: 85vh;
    padding: 50px 15px 90px 15px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.st-container {
    max-width: 1050px;
    margin: 0 auto;
}

.st-hero-banner {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.st-badge {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
}

.st-heading {
    font-size: 36px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.25 !important;
}

.st-meta {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.st-avail-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    backdrop-filter: blur(8px);
}

.st-avail-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.st-avail-icon {
    font-size: 32px;
}

.st-avail-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.st-avail-sub {
    font-size: 12.5px;
    color: #94a3b8;
}

.st-buy-btn {
    background: #0284c7;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.st-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}

.st-section {
    margin-top: 35px;
}

.st-section-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
}

.st-servers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .st-servers-grid {
        grid-template-columns: 1fr;
    }
}

.st-server-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
}

.st-server-card:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
}

.st-server-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.st-server-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
}

.st-server-btn {
    align-self: flex-start;
    color: #38bdf8 !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.st-server-btn:hover {
    text-decoration: underline !important;
}

/* ---------------- 4. تخصيصات اللغات والمنتجات المرتبطة ---------------- */
.slc-en {
    direction: ltr !important;
    text-align: left !important;
}

.slc-en .desc-section-title {
    flex-direction: row;
}

.slc-en .desc-title-bar {
    margin-right: 8px;
    margin-left: 0;
}

.slc-en .desc-updated {
    text-align: right !important;
}

.slc-en .desc-content-link:hover .desc-arrow {
    transform: translateX(4px);
}

.sc-page-en, .st-page-en {
    direction: ltr !important;
    text-align: left !important;
}

.sc-product-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sc-pb-tag {
    background: #0284c7;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.sc-pb-title {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
}

.sc-pb-desc {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0;
}

.sc-pb-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    padding: 13px 26px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sc-pb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.65);
}

.st-server-thumb {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #1e293b;
}

.st-server-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.st-server-price {
    font-size: 16px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 14px;
}

.st-server-price del {
    color: #64748b;
    font-size: 13px;
    margin-left: 6px;
}
