/*
Theme Name: IPTV Store Theme
Author: IPTV Developer
Description: Tema de WordPress personalizado para ventas de IPTV.
Version: 1.0
*/

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    margin: 0;
    padding: 0;
    direction: ltr;
}

header {
    background-color: #1e293b;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #38bdf8;
}

header h1 {
    margin: 0;
    color: #38bdf8;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.pricing-table {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.plan-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
}

.plan-card.featured {
    border: 2px solid #38bdf8;
    position: relative;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #38bdf8;
    color: #0f172a;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: bold;
    color: #38bdf8;
    margin: 15px 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.btn-buy {
    background-color: #0284c7;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    display: block;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-buy:hover {
    background-color: #0369a1;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1e293b;
    color: #64748b;
    margin-top: 50px;
}
/* إصلاح ألوان نصوص WooCommerce وتنسيق صفحة الدفع */
.woocommerce, 
.woocommerce form .form-row label, 
.woocommerce table.shop_table th, 
.woocommerce table.shop_table td,
.woocommerce-checkout label,
.woocommerce-checkout span,
.woocommerce-checkout h3 {
    color: #333333 !important;
}

.woocommerce input[type="text"], 
.woocommerce input[type="email"], 
.woocommerce input[type="tel"], 
.woocommerce select, 
.woocommerce textarea {
    color: #333333 !important;
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    padding: 8px !important;
}
/* إصلاح الألوان الشامل لمكونات WooCommerce Blocks وصفحة الدفع */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart,
.wc-block-checkout,
.wc-block-components-checkout-step,
.wc-block-components-text-input,
.wc-block-components-address-form,
.wc-block-components-totals-item,
.wc-block-components-order-summary,
.woocommerce-checkout {
    color: #222222 !important;
}

/* إصلاح لون العناوين والنصوص داخل النموذج */
.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-components-text-input label,
.wc-block-components-text-input input,
.wc-block-components-checkbox-control__label,
.wc-block-components-radio-control__label,
p, h1, h2, h3, h4, h5, h6, span, label, div {
    color: #222222 !important;
}

/* ضبط لون خلفية حقول الإدخال ولون الكتابة داخلها */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"] {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #cccccc !important;
}

/* إصلاح لون نص العناوين المحددة */
::selection {
    background: #0073aa !important;
    color: #ffffff !important;
}
/* ===================================================
   1. تنسيق الواجهة الرئيسية السينمائية (Hero Banner)
   =================================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), 
                url('http://tvmax.local/wp-content/uploads/2026/10/modern-television-broadcasting-movie-wide-screen-generative-ai-scaled.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #dddddd !important;
}

.hero-btn {
    background-color: #e50914;
    color: #ffffff !important;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-block;
}

.hero-btn:hover {
    background-color: #b80710;
}

/* ===================================================
   2. تنسيق بطاقات الخطط والأسعار (Plans Cards)
   =================================================== */
.plans-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 50px 20px;
    background-color: #0b0e14;
    flex-wrap: wrap;
}

.plan-card {
    background: #121824;
    border-radius: 15px;
    padding: 25px;
    width: 310px;
    color: #ffffff;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}

/* ألوان حدود وأزرار كل خطة */
.plan-3m { border-color: #0072ff; }
.plan-3m .btn-buy { background: #0072ff; color: #ffffff !important; }

.plan-6m { border-color: #00e676; }
.plan-6m .btn-buy { background: #00e676; color: #000000 !important; }

.plan-12m { border-color: #ffb300; }
.plan-12m .btn-buy { background: #ffb300; color: #000000 !important; }

.plan-header h3 {
    font-size: 1.4rem;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #ffffff !important;
}

.plan-header p {
    font-size: 0.85rem;
    color: #aaaaaa !important;
    margin-bottom: 15px;
}

.solo-text {
    font-size: 0.9rem;
    color: #cccccc !important;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.price span {
    font-size: 1.8rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.plan-features li {
    margin-bottom: 10px;
    color: #dddddd !important;
    line-height: 1.4;
}

.btn-buy {
    display: block;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.btn-buy:hover {
    opacity: 0.9;
}

.badge {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 5px;
    color: #ffffff !important;
}

.popular-tag {
    background: #ffb300;
    color: #000000 !important;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

/* ===================================================
   3. إصلاح نصوص WooCommerce والتأكيد
   =================================================== */
.woocommerce-order-overview li,
.woocommerce-order-overview li strong,
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    color: #222222 !important;
}
/* إخفاء الهيدر والشريط العلوي لتصبح الصفحة أنيقة وسينمائية مباشرة */
header,
.site-header,
.header,
#masthead {
    display: none !important;
}
.price {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.price span {
    font-size: 1.8rem;
    color: #ffffff !important;
}
/* ==========================================
   تنسيق الأشرطة المتحركة (Carousels)
   ========================================== */
.carousel-section {
    padding: 30px 0;
    overflow: hidden;
    background-color: #0f172a;
}

.section-title {
    text-align: center;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding: 0 15px;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    width: max-content;
}

/* حركة التحريك لليسار واليمين */
.track-left {
    animation: scrollLeft 25s linear infinite;
}

.track-right {
    animation: scrollRight 25s linear infinite;
}

/* التوقف المؤقت عند وضع الماوس فوق الصور */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* تصميم بطاقات الصور الحواف المنحنية والأبعاد */
.poster-card {
    width: 220px;
    height: 330px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.poster-card:hover {
    transform: scale(1.05);
}

.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* تعريف الحركة الانتقالية السلسة */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.channels-section {
padding-top: 40px;
background-color: #0b1120;
}

/* بطاقة شعار القناة */
.channel-card {
width: 180px;
height: 100px;
background: #1e293b;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
padding: 15px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
flex-shrink: 0;
transition: all 0.3s ease;
}

.channel-card:hover {
transform: translateY(-5px);
border-color: #38bdf8;
box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

.channel-card img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
filter: brightness(0.95);
transition: filter 0.3s ease;
}

.channel-card:hover img {
filter: brightness(1.1);
}
/* ==========================================
   تصحيح الأشرطة المتحركة (Carousels) لتظهر كشعارات
   ========================================== */
.marquee-track {
    display: flex;
    gap: 40px; /* زيادة الفراغ بين الشعارات */
    flex-shrink: 0;
    width: max-content;
    align-items: center; /* توسيط الشعارات عمودياً */
}

/* تصميم بطاقات الشعارات بالأبعاد المناسبة */
.poster-card {
    width: 200px; /* عرض الشعار */
    height: 100px; /* ارتفاع الشعار */
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff10; /* خلفية شفافة للشعار */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.poster-card:hover {
    transform: scale(1.05);
}

.poster-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* لتجنب تمدد الشعار */
    display: block;
}
.carousel-section {
    padding: 30px 0;
    overflow: hidden;
    background-color: #0f172a;
}

.section-title {
    text-align: center;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
    width: max-content;
    align-items: center;
}

.track-left {
    animation: scrollLeft 20s linear infinite;
}

.poster-card {
    width: 160px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.poster-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}
/* زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}
/* ==========================================
   تنسيق أزرار الواجهة الرئيسية (Hero Buttons)
   ========================================== */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* لضمان تنسيق ممتاذ على شاشات الهواتف */
    margin-top: 25px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* الزر الأحمر الاصلي */
.btn-red {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.btn-red:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 75, 43, 0.5);
}

/* الزر الأخضر الجديد للمراسلة */
.btn-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.btn-green:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.5);
}
/* ==========================================
   تنسيق زر إتمام الشراء في السلة (Checkout / Cart Button)
   ========================================== */
.wc-block-cart__submit-button,
.checkout-button,
a.checkout-button.button,
.wc-block-components-checkout-place-order-button {
    background-color: #e11d48 !important; /* لون الزر أحمر جذّاب */
    color: #ffffff !important;           /* لون النص أبيض ناصع */
    font-size: 1.1rem !important;
    font-weight: bold !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4) !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.wc-block-cart__submit-button:hover,
.checkout-button:hover,
a.checkout-button.button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background-color: #be123c !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}