/* --- Themes Variables Config --- */
.site-wrapper {
    --bg-main: #070708;
    --bg-card: #0f1015;
    --text-main: #ffffff;
    --text-muted: #8b8e99;
    --text-hero: #ffffff;   
    --border-color: #1b1c24;
    --accent-red: #ff2a2a;
    --accent-hover: #d21b1b;
    
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide control checkboxes */
.theme-checkbox-input, .faq-checkbox-trigger { display: none !important; }

/* --- Day/Light Mode color fixes for full text readability --- */
.theme-checkbox-input:checked ~ .site-wrapper {
    --bg-main: #f4f5f8;
    --bg-card: #ffffff;
    --text-main: #18191f;       /* Dark black text for all primary titles */
    --text-muted: #4e515f;      /* Deep dark gray for clear visibility of descriptions */
    --text-hero: #ffffff;       
    --border-color: #d1d4e0;
    --accent-red: #d32f2f;
    --accent-hover: #b71c1c;
}

/* Adaptive SVG text logos for Light Mode */
.theme-checkbox-input:checked ~ .site-wrapper .logo-txt-white { fill: #18191f; }

/* Slide theme handle inside light mode */
.theme-checkbox-input:checked ~ .site-wrapper .switch-ball {
    transform: translateX(27px);
    background: #18191f;
}
.theme-checkbox-input:checked ~ .site-wrapper .theme-toggle-btn { background: #d1d4e0; }

/* Structural resets */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; overflow-x: hidden; background: #070708; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* --- Click active animation and hover effects --- */
.btn-click-effect {
    cursor: pointer;
    transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), filter 0.15s ease, background-color 0.2s ease;
}
.btn-click-effect:hover { filter: brightness(1.2); }
.btn-click-effect:active { transform: scale(0.92) !important; filter: brightness(0.8); }

/* --- Header Section --- */
header {
    display: flex; justify-content: space-between; align-items: center; padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-muted); padding: 5px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--accent-red); }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Switch handle frame */
.theme-toggle-btn {
    width: 55px; height: 28px; background: #1b1c24; border-radius: 30px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 6px; position: relative;
    user-select: none;
}
.theme-toggle-btn span { font-size: 12px; z-index: 1; }
.switch-ball {
    position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff;
    border-radius: 50%; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Buttons Styles --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; border-radius: 6px; text-transform: uppercase; border: none; text-decoration: none;
}
.btn-red { background: var(--accent-red); color: #fff; }
.btn-red:hover { background: var(--accent-hover); box-shadow: 0 4px 15px rgba(255, 42, 42, 0.2); }
.btn-outline { background: rgba(255,255,255,0.03); color: var(--text-hero); border: 1px solid rgba(255, 255, 255, 0.2); }
.theme-checkbox-input:checked ~ .site-wrapper .btn-outline { color: var(--text-main); border-color: var(--border-color); }

.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 14px; }

/* --- HERO SECTION --- */
.hero {
    margin-top: 20px; min-height: 480px; border-radius: 16px;
    background: linear-gradient(to right, rgba(7, 7, 8, 0.9) 40%, rgba(7, 7, 8, 0.2)), url('https://i.postimg.cc/bJXz2H3F/Chat-GPT-Image-Jul-6-2026-12-38-46-PM.png') center/cover;
    display: flex; align-items: center; padding: 60px;
}
.hero-content { max-width: 550px; color: var(--text-hero); } 
.hero-sub { font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; opacity: 0.8; }
.hero-title { font-size: 44px; font-weight: 900; line-height: 1.1; margin: 15px 0; }
.text-red { color: var(--accent-red); }
.hero-desc { color: #d1d4e0; font-size: 15px; line-height: 1.6; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; }

/* --- FEATURES --- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 50px 0; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-5px) !important; border-color: var(--accent-red); }
.feature-icon-box { color: var(--accent-red); width: 40px; height: 40px; margin-bottom: 15px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* --- POPULAR WORLDS --- */
.section-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.view-all-btn { color: var(--accent-red); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.worlds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.world-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: transform 0.2s ease; }
.world-card:hover { transform: scale(1.02) !important; }
.world-img-holder { height: 150px; background: #1c1d26 center/cover; }
.img-1 { background-image: url('https://i.postimg.cc/zXv98HkC/Chat-GPT-Image-Jul-6-2026-12-42-05-PM.png'); }
.img-2 { background-image: url('https://i.postimg.cc/kGQFdcpq/Chat-GPT-Image-Jul-6-2026-12-47-10-PM.png'); }
.img-3 { background-image: url('https://i.postimg.cc/FHRcPNNz/Chat-GPT-Image-Jul-6-2026-12-48-39-PM.png'); }
.world-details { padding: 20px; }
.world-details h3 { font-size: 16px; margin-bottom: 5px; display: flex; justify-content: space-between; }
.tag { font-size: 11px; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; color: var(--accent-red); }
.category { color: var(--text-muted); font-size: 12px; display: block; margin-bottom: 10px; }
.world-details p { color: var(--text-muted); font-size: 13px; }

/* --- HOW TO START --- */
.main-heading { font-size: 20px; margin: 50px 0 25px 0; }
.steps-wrapper { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; display: flex; gap: 30px; }
.step-item { flex: 1; text-align: center; }
.step-icon-circle { width: 60px; height: 60px; background: rgba(255,255,255,0.03); color: var(--accent-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; position: relative; }
.theme-checkbox-input:checked ~ .site-wrapper .step-icon-circle { background: #f4f5f8; }
.step-num { position: absolute; top: -2px; right: -2px; background: var(--accent-red); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-item p { color: var(--text-muted); font-size: 13px; margin-top: 5px; }

/* --- PURE CSS FAQ ACCORDION --- */
.faq-container { display: flex; flex-direction: column; gap: 12px; }
.faq-row { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; position: relative; }
.faq-header { padding: 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; user-select: none; cursor: pointer; }
.plus-icon { color: var(--text-muted); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-body { max-height: 0; overflow: hidden; padding: 0 20px; transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease; }
.faq-body p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* الـ selectors الخوت لي كيديرو الأنميشن والفتح الصحيح للأجوبة */
.faq-checkbox-trigger:checked ~ .faq-header .plus-icon { transform: rotate(45deg); color: var(--accent-red); }
.faq-checkbox-trigger:checked ~ .faq-header + .faq-body { max-height: 150px; padding: 0 20px 20px 20px; }

/* --- FOOTER & EMAIL SUCCESS HANDLING --- */
footer { border-top: 1px solid var(--border-color); padding: 40px 0; margin-top: 50px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.brand-col p { color: var(--text-muted); font-size: 13px; margin-top: 10px; }

.subscribe-wrapper { position: relative; width: 280px; }
.subscribe-form { display: flex; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 6px; padding: 4px; }
.theme-checkbox-input:checked ~ .site-wrapper .subscribe-form { background: #fff; }
.subscribe-form input { background: transparent; border: none; outline: none; padding: 8px; color: var(--text-main); flex: 1; font-size: 13px; }
.btn-send { background: var(--accent-red); color: white; border: none; width: 34px; height: 34px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }

/* تصميم رسالة النجاح الاحترافية عند إرسال الإيميل */
.success-message { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: #14532d; color: #bbf7d0; border-radius: 6px; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: bold; font-size: 13px; opacity: 0; pointer-events: none; 
    transition: opacity 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.theme-checkbox-input:checked ~ .site-wrapper .success-message { background: #d1fae5; color: #065f46; }

/* الهاك السحري لي كيبين الميساج وتخوا البلاصة فاش كيتأكتيفا رابط الإرسال */
#faq:target .success-message { opacity: 1; pointer-events: auto; }

.footer-bottom { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 40px 20px; text-align: center; background: linear-gradient(rgba(7,7,8,0.85), rgba(7,7,8,0.85)), url('image_6f1f82.jpg') center/cover; }
    .hero-btns { justify-content: center; }
    .hero-title { font-size: 32px; }
    .steps-wrapper { flex-direction: column; gap: 30px; padding: 30px 20px; }
    .footer-top { flex-direction: column; text-align: center; }
}