/*
Theme Name: 1xBet Download Pro
Theme URI: https://example.com/1xbet-download-pro
Author: Professional Affiliate Themes
Author URI: https://example.com
Description: قالب ووردبريس احترافي محسّن لمواقع تحميل تطبيق وان اكس بيت (1xBet). يدعم RTL بالكامل، SEO قوي لكلمة "وان اكس بيت"، تصميم حديث ومتجاوب مع أزرار تحميل مباشرة للأندرويد والآيفون، ويعرض أحدث 3 مقالات فقط في الصفحة الرئيسية.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 1xbet-download-pro
Tags: rtl-language-support, custom-menu, featured-images, theme-options, translation-ready, blog, one-column, two-columns, custom-colors, custom-logo, custom-header, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

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

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

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background-color: #0a0e17;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

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

a {
    color: #00c853;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: #69f0ae;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25em;
}

/* ============================================
   Layout Containers
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: linear-gradient(135deg, #0d1421 0%, #1a2332 100%);
    border-bottom: 2px solid #00c853;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, #00c853, #69f0ae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 0.85rem;
    color: #90a4ae;
    margin: 0;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-navigation a {
    display: block;
    padding: 10px 18px;
    color: #e0e0e0;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #00c853;
    color: #00c853;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ============================================
   Hero Section - Download Buttons
   ============================================ */
.hero-section {
    background: linear-gradient(160deg, #0a0e17 0%, #121a2b 40%, #0d1a14 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #b0bec5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #90a4ae;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Download Cards */
.download-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.download-card {
    background: linear-gradient(145deg, #1a2332, #121a2b);
    border: 1px solid rgba(0, 200, 83, 0.25);
    border-radius: 20px;
    padding: 30px 40px;
    width: 280px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c853, #69f0ae);
    opacity: 0;
    transition: opacity 0.3s;
}

.download-card:hover {
    transform: translateY(-10px);
    border-color: #00c853;
    box-shadow: 0 20px 40px rgba(0, 200, 83, 0.2);
}

.download-card:hover::before {
    opacity: 1;
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.download-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #fff;
}

.download-card p {
    color: #90a4ae;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #00c853, #00a844);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.35);
}

.btn-download:hover {
    background: linear-gradient(135deg, #00e676, #00c853);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.5);
    color: #fff !important;
}

.btn-download.ios {
    background: linear-gradient(135deg, #2979ff, #1565c0);
    box-shadow: 0 6px 20px rgba(41, 121, 255, 0.35);
}

.btn-download.ios:hover {
    background: linear-gradient(135deg, #42a5f5, #2979ff);
    box-shadow: 0 8px 25px rgba(41, 121, 255, 0.5);
}

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #90a4ae;
    font-size: 0.9rem;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    fill: #00c853;
}

/* ============================================
   Latest Posts Section
   ============================================ */
.latest-posts-section {
    padding: 70px 0;
    background: #0d1421;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #90a4ae;
    font-size: 1.1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: #121a2b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 200, 83, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a2332;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #78909c;
    margin-bottom: 12px;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.post-title a {
    color: #fff;
}

.post-title a:hover {
    color: #00c853;
}

.post-excerpt {
    color: #90a4ae;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #00c853;
    font-size: 0.95rem;
}

.read-more:hover {
    gap: 10px;
}

/* ============================================
   Features / Why Download Section
   ============================================ */
.features-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #0a0e17 0%, #0d1421 100%);
}

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

.feature-card {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #00c853;
    background: rgba(0, 200, 83, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    background: rgba(0, 200, 83, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

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

.feature-card p {
    color: #90a4ae;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #080c14;
    border-top: 1px solid rgba(0, 200, 83, 0.2);
    padding: 50px 0 25px;
    margin-top: auto;
}

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

.footer-widget h4 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    color: #00c853;
}

.footer-widget p,
.footer-widget li {
    color: #90a4ae;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-widget a {
    color: #b0bec5;
}

.footer-widget a:hover {
    color: #00c853;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
    text-align: center;
    color: #607d8b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #00c853;
}

/* ============================================
   Single Post / Page
   ============================================ */
.content-area {
    padding: 50px 0;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.entry-meta {
    color: #78909c;
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-content {
    background: #121a2b;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content p {
    margin-bottom: 1.3em;
}

.entry-content ul,
.entry-content ol {
    margin: 1.2em 0;
    padding-right: 25px;
}

.entry-content li {
    margin-bottom: 0.6em;
    list-style: disc;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #1a2332;
    color: #e0e0e0;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination .current {
    background: #00c853;
    color: #fff;
    border-color: #00c853;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #0d1421;
        border-bottom: 2px solid #00c853;
        padding: 15px;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .download-cards {
        gap: 20px;
    }

    .download-card {
        width: 100%;
        max-width: 320px;
        padding: 25px 20px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .entry-content {
        padding: 25px 20px;
    }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0 50px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ============================================
   Utility
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
