/*
Theme Name: EG1X Theme
Theme URI: https://eg1x.com
Author: EG1X Team
Description: قالب احترافي مخصص لتحميل تطبيق 1xBet - بألوان أزرق وأبيض
Version: 1.0
Text Domain: eg1x-theme
*/

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a3a5c;
    --secondary-blue: #2196F3;
    --accent-blue: #0d47a1;
    --light-blue: #e3f2fd;
    --dark-blue: #0a1929;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --green-cta: #4CAF50;
    --green-hover: #388E3C;
    --orange-cta: #FF9800;
    --orange-hover: #F57C00;
    --gold: #FFD700;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Cairo', 'Tajawal', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.site-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.site-logo span {
    color: var(--secondary-blue);
}

.header-cta {
    background: var(--green-cta);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.header-cta:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
    color: var(--white);
}

/* === Navigation === */
.main-nav {
    background: var(--primary-blue);
    padding: 0;
    border-bottom: 3px solid var(--secondary-blue);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: block;
    padding: 12px 18px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    background: rgba(33, 150, 243, 0.2);
    border-bottom-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

/* Dropdown Menu */
.main-nav ul li.has-dropdown:hover .dropdown {
    display: block;
}

.main-nav ul .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-blue);
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    flex-direction: column;
}

.main-nav ul .dropdown li {
    width: 100%;
}

.main-nav ul .dropdown li a {
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-nav ul .dropdown li a:hover {
    background: rgba(33, 150, 243, 0.3);
}

/* Nav CTA Button */
.nav-cta {
    background: var(--green-cta) !important;
    border-radius: 50px !important;
    margin: 5px 10px !important;
    padding: 8px 20px !important;
}

.nav-cta:hover {
    background: var(--green-hover) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 24px;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-menu-toggle:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--accent-blue) 50%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33,150,243,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title .highlight {
    color: var(--secondary-blue);
    background: linear-gradient(to bottom, transparent 60%, rgba(33,150,243,0.3) 60%);
}

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, var(--green-cta), #66BB6A);
    color: var(--white);
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 6px 35px rgba(76, 175, 80, 0.8); }
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(76, 175, 80, 0.7);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--secondary-blue);
    background: rgba(33,150,243,0.1);
    color: var(--white);
}

.hero-trust {
    margin-top: 25px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* === Features Section === */
.features-section {
    padding: 70px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* === Steps Section === */
.steps-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 15px;
}

.step-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === FAQ Section === */
.faq-section {
    padding: 70px 0;
    background: var(--white);
}

.faq-item {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-blue);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* === Countries Section === */
.countries-section {
    padding: 70px 0;
    background: var(--light-gray);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.country-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.country-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-blue);
}

.country-flag {
    font-size: 28px;
}

.country-name {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 15px;
}

/* === Footer === */
.site-footer {
    background: var(--dark-blue);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--secondary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* === Content Pages === */
.page-content {
    padding: 50px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.content-wrapper h1 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 800;
}

.content-wrapper h2 {
    font-size: 24px;
    color: var(--accent-blue);
    margin: 30px 0 15px;
    font-weight: 700;
}

.content-wrapper h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin: 25px 0 10px;
    font-weight: 700;
}

.content-wrapper p {
    margin-bottom: 15px;
    line-height: 1.9;
    color: var(--text-dark);
}

.content-wrapper ul, .content-wrapper ol {
    margin: 15px 30px 15px 0;
    line-height: 2;
}

.inline-cta {
    display: block;
    background: linear-gradient(135deg, var(--green-cta), #66BB6A);
    color: var(--white);
    text-align: center;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 800;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
    transition: all 0.3s ease;
}

.inline-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(76, 175, 80, 0.7);
    color: var(--white);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .btn-download {
        font-size: 16px;
        padding: 14px 30px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-inner {
        flex-direction: row;
        gap: 10px;
    }
    
    .header-cta {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav ul li a {
        padding: 12px 20px;
        font-size: 14px;
        text-align: right;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .main-nav ul .dropdown {
        position: static;
        display: block;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
    }
    
    .main-nav ul .dropdown li a {
        padding-right: 40px;
    }
    
    .content-wrapper {
        padding: 25px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
