/**
 * SmartFamilyEye - School & Homework Focus Mode Stylesheet
 * High-Contrast, Brand-Compliant, Fully Responsive & RTL Ready
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.sf-hero-section {
    background: linear-gradient(135deg, #061922 0%, #0d2833 50%, #153846 100%);
    color: #ffffff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.sf-hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.22) 0%, rgba(6, 25, 34, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sf-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.18);
    border: 1px solid rgba(20, 184, 166, 0.4);
    color: #5eead4;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.sf-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff !important;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.sf-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cbd5e1 !important;
    margin-bottom: 30px;
    max-width: 580px;
}

.sf-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.sf-hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.sf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.sf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #079f70;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(7, 159, 112, 0.4);
}

.sf-btn-primary:hover {
    background: #068860;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(7, 159, 112, 0.5);
    color: #ffffff !important;
}

.sf-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* ==========================================================================
   2. HERO VISUAL MOCKUP CARD (Smart Study Desk)
   ========================================================================== */
.sf-mockup-wrap {
    perspective: 1000px;
}

.sf-mockup-card {
    background: rgba(11, 25, 36, 0.96);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.sf-mockup-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.sf-mockup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.sf-mockup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(7, 159, 112, 0.2);
    border: 1px solid rgba(7, 159, 112, 0.4);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: sf-pulse 2s infinite;
}

@keyframes sf-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.sf-timer-box {
    background: rgba(15, 34, 48, 0.8);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.sf-timer-label {
    font-size: 0.82rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sf-timer-val {
    font-size: 2.3rem;
    font-weight: 800;
    color: #5eead4;
    letter-spacing: 0.04em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sf-timer-subject {
    display: inline-block;
    background: rgba(20, 184, 166, 0.15);
    color: #99f6e4;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-top: 6px;
}

.sf-apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.sf-app-bucket {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.sf-bucket-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.sf-bucket-heading.allowed {
    color: #34d399;
}

.sf-bucket-heading.blocked {
    color: #f87171;
}

.sf-app-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf-app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
}

.sf-app-item.allowed {
    border-left: 3px solid #10b981;
}

.sf-app-item.blocked {
    border-left: 3px solid #ef4444;
    opacity: 0.75;
}

.sf-app-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-app-icon {
    font-size: 1.1rem;
}

.sf-app-name {
    font-weight: 600;
    color: #f1f5f9;
}

.sf-app-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.sf-app-tag.green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.sf-app-tag.red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.sf-blocked-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sf-blocked-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.sf-status-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: #ccfbf1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
}

/* ==========================================================================
   3. STATS STRIP SECTION
   ========================================================================== */
.sf-stats-section {
    background: #ffffff;
    padding: 55px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.sf-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sf-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.sf-stat-val {
    font-size: 2.4rem;
    font-weight: 800;
    color: #079f70;
    line-height: 1.1;
    margin-bottom: 8px;
}

.sf-stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #18394b;
    margin-bottom: 6px;
}

.sf-stat-desc {
    font-size: 0.88rem;
    color: #53627c;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   4. DEEP DIVE FEATURE SHOWCASES
   ========================================================================== */
.sf-features-section {
    background: #f8fafc;
    padding: 85px 0;
}

.sf-sec-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 55px;
}

.sf-sec-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #18394b !important;
    margin-bottom: 16px;
    line-height: 1.25;
}

.sf-sec-subtitle {
    font-size: 1.12rem;
    line-height: 1.65;
    color: #53627c !important;
    margin: 0;
}

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

.sf-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.sf-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.sf-feat-badge {
    display: inline-block;
    background: rgba(7, 159, 112, 0.1);
    color: #079f70;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.sf-feat-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #18394b !important;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sf-feat-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #53627c !important;
    margin-bottom: 22px;
}

.sf-feat-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.sf-feat-bullets li {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.sf-feat-bullets li:last-child {
    margin-bottom: 0;
}

.sf-feat-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #079f70;
    font-weight: 800;
}

/* ==========================================================================
   5. PEDAGOGICAL AGE MATRIX
   ========================================================================== */
.sf-pedagogy-section {
    background: #ffffff;
    padding: 85px 0;
}

.sf-pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.sf-pedagogy-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.sf-pedagogy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

.sf-pedagogy-top {
    margin-bottom: 16px;
}

.sf-pedagogy-age {
    font-size: 1.6rem;
    font-weight: 800;
    color: #18394b;
    margin-bottom: 2px;
}

.sf-pedagogy-stage {
    font-size: 0.88rem;
    color: #079f70;
    font-weight: 700;
    margin-bottom: 10px;
}

.sf-pedagogy-span-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.sf-pedagogy-focus {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #53627c;
    margin-bottom: 18px;
    flex-grow: 1;
}

.sf-pedagogy-rule {
    background: #f8fafc;
    border-left: 3px solid #079f70;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.45;
    font-weight: 600;
}

/* ==========================================================================
   6. AUTOPILOT CONFLICT-FREE SECTION
   ========================================================================== */
.sf-autopilot-section {
    background: #f8fafc;
    padding: 85px 0;
}

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

.sf-autopilot-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 26px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    position: relative;
    transition: all 0.25s ease;
}

.sf-autopilot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
}

.sf-autopilot-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #079f70, #0d9488);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.sf-autopilot-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #18394b !important;
    margin-bottom: 12px;
}

.sf-autopilot-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #53627c !important;
    margin: 0;
}

/* ==========================================================================
   7. WEEKLY SCHEDULE BLUEPRINT
   ========================================================================== */
.sf-schedule-section {
    background: #ffffff;
    padding: 85px 0;
}

.sf-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.sf-schedule-day {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
}

.sf-schedule-label {
    font-size: 1.2rem;
    font-weight: 800;
    color: #18394b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sf-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-time-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
}

.sf-block-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sf-block-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sf-block-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #18394b;
}

.sf-block-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.sf-block-status.tag-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.sf-block-status.tag-green {
    background: #f0fdf4;
    color: #15803d;
}

.sf-block-status.tag-amber {
    background: #fffbeb;
    color: #b45309;
}

.sf-block-status.tag-purple {
    background: #faf5ff;
    color: #7e22ce;
}

.sf-block-status.tag-red {
    background: #fef2f2;
    color: #b91c1c;
}

/* ==========================================================================
   8. FAQ ACCORDION SECTION
   ========================================================================== */
.sf-faq-section {
    background: #f8fafc;
    padding: 85px 0;
}

.sf-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sf-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sf-faq-item.is-open {
    border-color: #079f70;
    box-shadow: 0 4px 15px rgba(7, 159, 112, 0.08);
}

.sf-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #18394b;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.sf-faq-btn:hover {
    color: #079f70;
}

.sf-faq-icon {
    font-size: 1.3rem;
    font-weight: 400;
    color: #64748b;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.sf-faq-item.is-open .sf-faq-icon {
    transform: rotate(45deg);
    color: #079f70;
}

.sf-faq-body {
    display: none;
    padding: 0 24px 22px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #53627c;
}

.sf-faq-item.is-open .sf-faq-body {
    display: block;
}

.sf-faq-body p {
    margin: 0;
}

/* ==========================================================================
   9. BOTTOM CALL TO ACTION
   ========================================================================== */
.sf-bottom-cta {
    background: #ffffff;
    padding: 80px 0;
}

.sf-cta-box {
    background: linear-gradient(135deg, #061922 0%, #0d2833 50%, #153846 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(6, 25, 34, 0.2);
}

.sf-cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 16px auto 14px;
    max-width: 680px;
    line-height: 1.25;
}

.sf-cta-sub {
    font-size: 1.1rem;
    color: #cbd5e1 !important;
    margin: 0 auto 30px;
    max-width: 620px;
    line-height: 1.6;
}

.sf-cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.sf-cta-note {
    font-size: 0.85rem;
    color: #94a3b8 !important;
    margin: 0;
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .sf-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sf-features-grid,
    .sf-pedagogy-grid,
    .sf-autopilot-grid,
    .sf-schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sf-hero-section {
        padding: 50px 0 60px;
    }
    .sf-hero-title {
        font-size: 2.1rem;
    }
    .sf-sec-title {
        font-size: 1.75rem;
    }
    .sf-features-grid,
    .sf-pedagogy-grid,
    .sf-autopilot-grid,
    .sf-schedule-grid,
    .sf-stats-grid {
        grid-template-columns: 1fr;
    }
    .sf-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .sf-btn-primary, .sf-btn-ghost {
        width: 100%;
        text-align: center;
    }
    .sf-cta-box {
        padding: 40px 20px;
    }
    .sf-cta-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   11. RTL (ARABIC) SUPPORT
   ========================================================================== */
[dir="rtl"] .sf-feat-bullets li {
    padding-left: 0;
    padding-right: 22px;
}

[dir="rtl"] .sf-feat-bullets li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .sf-pedagogy-rule {
    border-left: none;
    border-right: 3px solid #079f70;
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .sf-app-item.allowed {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 3px solid #10b981;
}

[dir="rtl"] .sf-app-item.blocked {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 3px solid #ef4444;
}

[dir="rtl"] .sf-faq-btn {
    text-align: right;
}

[dir="rtl"] .sf-faq-icon {
    margin-left: 0;
    margin-right: 12px;
}
