/* ══════════════════════════════════════
   PHP Öğreniyorum — Home Page Styles
   EduBlink-inspired dark theme
   ══════════════════════════════════════ */

/* ── Hero ── */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
    background: var(--bg-elegant);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Decorative glowing blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}
.hero-blob-1 {
    width: 560px;
    height: 560px;
    background: var(--primary);
    top: -160px;
    left: -120px;
}
.hero-blob-2 {
    width: 420px;
    height: 420px;
    background: #0891b2;
    bottom: -120px;
    right: -80px;
}
.hero-blob-3 {
    width: 200px;
    height: 200px;
    background: var(--info);
    top: 40%;
    left: 40%;
    opacity: 0.07;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

/* Pre-title badge */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--primary-light);
    border-radius: 50px;
    padding: 0.4rem 1rem 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.hero-eyebrow .eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.home-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.home-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* Inline stats under CTA buttons */
.hero-inline-stats {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.his-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}
.his-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.his-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.2rem;
    text-align: center;
}
.his-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    justify-self: center;
}

/* Hero visual + floating badges */
.hero-visual-wrap {
    position: relative;
    padding: 2rem 1.5rem 4rem 1.5rem;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.65rem 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 10;
    white-space: nowrap;
    animation: badge-float 3.5s ease-in-out infinite;
}
.floating-badge.fb-xp     { bottom: 1.5rem;  left: -1rem;  animation-delay: 0s;   border-color: rgba(13, 148, 136, 0.35); }
.floating-badge.fb-streak { top: 1.5rem;     right: -1rem; animation-delay: 1.8s; border-color: rgba(245, 158, 11, 0.35); }

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.fb-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.fb-xp     .fb-icon { background: rgba(13, 148, 136, 0.2); color: #2dd4bf; }
.fb-streak .fb-icon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.fb-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.fb-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

@media (max-width: 991px) {
    .home-hero { min-height: auto; padding: 4rem 0 3rem; }
    .hero-visual-wrap { margin-top: 2rem; padding-bottom: 5rem; }
    .floating-badge.fb-streak { right: 0.5rem; top: 0.75rem; }
    .floating-badge.fb-xp     { left: 0.5rem; bottom: 0.75rem; }
}
@media (max-width: 576px) {
    /* Hero inline stats: 3 equal columns, no sep elements, border-right dividers */
    .hero-inline-stats {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }
    .hero-inline-stats .his-sep { display: none; }
    .his-item {
        flex: 1;
        align-items: center;
        padding: 0 0.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    .his-item:last-child { border-right: none; }
    /* Floating badges: smaller, fully within the column */
    .floating-badge { font-size: 0.78rem; padding: 0.45rem 0.7rem; gap: 0.5rem; }
    .fb-icon { width: 26px; height: 26px; font-size: 0.75rem; }
    .hero-visual-wrap { padding: 1rem 0 4.5rem; }
}

/* ── Stats Bar ── */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 0;
}
.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.sbi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 100px;
}
.sbi-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sbi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sbi-sep {
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, 0.07);
}
@media (max-width: 767px) {
    /* Stats bar: 2×2 grid. Seps hidden, items wrap to 50% each */
    .stats-bar { padding: 0; }
    .sbi-sep { display: none; }
    .stats-bar-inner {
        flex-wrap: wrap;
        gap: 0;
        align-items: stretch;
    }
    .sbi-item {
        flex: 0 0 50%;
        min-width: unset;
        padding: 1.5rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .sbi-num { font-size: 1.8rem; }
    /* Left column items (1st and 3rd sbi-item = nth-child 1 and 5 in DOM) */
    .stats-bar-inner > .sbi-item:nth-child(1),
    .stats-bar-inner > .sbi-item:nth-child(5) {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
    /* Bottom row items (no bottom border) */
    .stats-bar-inner > .sbi-item:nth-child(5),
    .stats-bar-inner > .sbi-item:nth-child(7) {
        border-bottom: none;
    }
}

/* ── Section Common ── */
.home-section {
    padding: 5.5rem 0;
}
.home-section.bg-alt {
    background: var(--bg-card);
}

.section-pill {
    display: inline-block;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: var(--primary-light);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.home-section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.home-section-sub {
    font-size: 0.97rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Why Cards ── */
.why-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    height: 100%;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(13, 148, 136, 0.3);
}

.why-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.why-icon-blue   { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.why-icon-red    { background: rgba(239, 68,  68,  0.15); color: #f87171; }
.why-icon-amber  { background: rgba(245, 158, 11,  0.15); color: #fbbf24; }

.why-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.65rem;
}
.why-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.why-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(13, 148, 136, 0.12);
    color: #99f6e4;
    border-radius: 6px;
    padding: 0.2rem 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ── Step Cards ── */
.steps-row {
    position: relative;
}

.step-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.22s;
    z-index: 0;
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}
.step-card:hover::before { opacity: 0.04; }
.step-card > * { position: relative; z-index: 1; }

.step-bg-num {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(13, 148, 136, 0.08);
    line-height: 1;
    margin-bottom: -0.5rem;
    font-feature-settings: 'tnum';
    user-select: none;
}
.step-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}
.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}
.step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ── Exercise Type Cards ── */
.ex-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    height: 100%;
}
.ex-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(13, 148, 136, 0.25);
}
.ex-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1rem;
}
.ex-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.ex-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── CTA Section ── */
.home-cta {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
    background: var(--bg-elegant);
    border-top: 1px solid rgba(13, 148, 136, 0.12);
}
.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(13, 148, 136, 0.12) 0%, transparent 65%);
    pointer-events: none;
}
.home-cta .container { position: relative; z-index: 1; }

.cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}
.cta-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

.custom-bg-gradient {
    background: linear-gradient(135deg, #2e7ab12e 0%, rgba(245, 230, 11, 0.17) 100%)!important;
}