/* ============================================
   Xparibet Egypt - Professional Stylesheet
   Colors: Black, Red, White, Gold accents
   ============================================ */

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

:root {
    --black: #0a0a0a;
    --black-light: #1a1a2e;
    --black-card: #16162a;
    --red: #e31e24;
    --red-dark: #b71c1c;
    --red-light: #ff4444;
    --white: #ffffff;
    --gray: #a0a0b0;
    --gray-light: #e0e0e0;
    --gold: #ffd700;
    --gold-dark: #c5a000;
    --green: #00c853;
    --gradient-red: linear-gradient(135deg, #e31e24, #ff4444);
    --gradient-dark: linear-gradient(180deg, #0a0a0a, #1a1a2e);
    --gradient-card: linear-gradient(145deg, #1a1a2e, #0f0f23);
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-red: 0 5px 30px rgba(227,30,36,0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.text-red { color: var(--red); }
.text-gold { color: var(--gold); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(227,30,36,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 5px 30px rgba(255,215,0,0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(255,215,0,0.5);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
}

.logo-xpari {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 900;
}

.logo-bet {
    color: var(--red);
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-light);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(227,30,36,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(227,30,36,0.05) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(227,30,36,0.15);
    border: 1px solid rgba(227,30,36,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--red-light);
    margin-bottom: 20px;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.promo-code {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.4rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.promo-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--black-card);
    border: 2px dashed var(--gold);
    padding: 12px 24px;
    border-radius: var(--radius);
}

.promo-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.promo-value {
    color: var(--gold);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--white);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 15px;
    border: 3px solid #333;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 30px rgba(227,30,36,0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #000;
    border-radius: 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--black);
    border-radius: 28px;
    overflow: hidden;
    padding-top: 40px;
}

.app-preview {
    padding: 20px;
}

.app-header-preview {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.4rem;
}

.app-content-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--black-card);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.odds {
    background: var(--gradient-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.download-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-10px);
    border-color: rgba(227,30,36,0.3);
    box-shadow: 0 20px 50px rgba(227,30,36,0.15);
}

.download-card.featured {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(255,215,0,0.15);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--black);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.download-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.download-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-features {
    text-align: right;
    margin-bottom: 25px;
}

.card-features li {
    padding: 6px 0;
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Bonus Section */
.bonus-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a0000, #0a0a0a, #1a0000);
    position: relative;
    overflow: hidden;
}

.bonus-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227,30,36,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.bonus-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bonus-text h2 {
    margin-bottom: 20px;
}

.bonus-text > p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.bonus-steps {
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.step-text h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.step-text p {
    font-size: 0.85rem;
    color: var(--gray);
}

.bonus-visual {
    display: flex;
    justify-content: center;
}

.bonus-card-display {
    width: 300px;
    height: 380px;
    background: var(--gradient-card);
    border: 2px solid var(--red);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 20px 60px rgba(227,30,36,0.2);
    position: relative;
    overflow: hidden;
}

.bonus-card-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(227,30,36,0.1), transparent);
    animation: rotate 10s linear infinite;
}

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

.bonus-amount {
    font-size: 5rem;
    font-weight: 900;
    color: var(--red);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(227,30,36,0.5);
}

.bonus-label {
    font-size: 1.2rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.bonus-extra {
    font-size: 1rem;
    color: var(--gold);
    position: relative;
    z-index: 1;
}

.bonus-code {
    background: var(--gold);
    color: var(--black);
    padding: 8px 30px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--black);
}

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

.feature-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227,30,36,0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* How To Section */
.howto-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.howto-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.howto-step {
    text-align: center;
    padding: 30px 20px;
    flex: 1;
    min-width: 200px;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-red);
}

.howto-step h3 {
    margin-bottom: 8px;
}

.howto-step p {
    color: var(--gray);
    font-size: 0.9rem;
}

.howto-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(to left, var(--red), transparent);
}

.howto-cta {
    text-align: center;
}

/* Sports Section */
.sports-section {
    padding: 100px 0;
    background: var(--black);
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sport-item {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.sport-item:hover {
    border-color: var(--red);
    transform: scale(1.05);
}

.sport-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.sport-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black-card);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--red);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--red);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--gray);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* SEO Content */
.seo-content {
    padding: 80px 0;
    background: var(--black);
}

.seo-article h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.seo-article h3 {
    margin: 30px 0 15px;
    color: var(--red-light);
}

.seo-article p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.9;
    font-size: 1rem;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #050510;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-cta h4 {
    margin-bottom: 10px;
}

.footer-cta p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.promo-box-footer {
    background: var(--black-card);
    border: 1px dashed var(--gold);
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    display: inline-block;
}

.promo-box-footer span {
    color: var(--gray);
    font-size: 0.85rem;
}

.promo-box-footer strong {
    color: var(--gold);
    font-size: 1.2rem;
    margin-right: 8px;
    letter-spacing: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.disclaimer {
    color: #666 !important;
    font-size: 0.8rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .promo-box {
        justify-content: center;
    }
    
    .bonus-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bonus-steps {
        text-align: right;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .howto-connector {
        display: none;
    }
    
    .howto-steps {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .card-features {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .sports-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.download-card:hover .card-icon {
    animation: pulse 1s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-light);
}
