/* ══════════════════════════════════════════════════
   Home Page — home.css
   New sections that extend style.css
══════════════════════════════════════════════════ */


/* ── Stats Strip ────────────────────────────────── */
.home-stats-strip {
    padding: 0;
    background: #fff;
    border: none !important;
    box-shadow: none !important;
}
.home-stats-row {
    display: flex;
    align-items: stretch;
}
.home-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px 24px;
    position: relative;
    cursor: default;
    transition: background 0.2s;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.home-stat:hover {
    background: #fafafa;
}
.home-stat + .home-stat::before {
    display: none;
}
.home-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fffbee;
    border-radius: 10px;
    margin-bottom: 14px;
    color: #FFBA12;
    flex-shrink: 0;
}
.home-stat-icon svg {
    width: 22px;
    height: 22px;
}
.home-stat-num {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: #0B0D0F;
    line-height: 1;
    letter-spacing: -1.5px;
}
.home-stat-lbl {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-top: 7px;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .home-stats-row {
        flex-wrap: wrap;
    }
    .home-stat {
        flex: 1 1 50%;
        padding: 28px 16px 24px;
    }
    .home-stat + .home-stat::before {
        display: none;
    }
    .home-stat:nth-child(2)::after,
    .home-stat:nth-child(4)::after {
        display: none;
    }
    
    .home-stat-num {
        font-size: 32px;
    }
}
@media (max-width: 400px) {
    .home-stat {
        flex: 1 1 100%;
    }
}


/* ── Featured Templates ────────────────────────── */
.home-tpl-browse-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    transition: color 0.18s, border-color 0.18s;
}
.home-tpl-browse-link:hover {
    color: #0B0D0F;
    border-color: #0B0D0F;
    text-decoration: none;
}

.home-tpl-section {
    padding: 70px 0 80px;
    background: #fff;
}
.home-tpl-hd {
    text-align: center;
    margin-bottom: 40px;
}
.home-tpl-hd h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0B0D0F;
    line-height: 1.15;
    letter-spacing: -.3px;
    margin: 10px 0 12px;
}
.home-tpl-sub {
    font-size: 15px;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.65;
}

/* 3-column grid using tpl-card from templates.css */
.home-tpl-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.col-home-tpl {
    width: 33.333%;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .col-home-tpl { width: 50%; }
    .home-tpl-hd h2 { font-size: 28px; }
}
@media (max-width: 576px) {
    .col-home-tpl { width: 100%; }
    .home-tpl-section { padding: 50px 0 60px; }
}

/* ── Themes Showcase ───────────────────────────── */
.home-themes-section {
    background: #0B0D0F;
    padding: 100px 0 110px;
    margin-top: 150px;
    position: relative;
    overflow: hidden;
}
.home-themes-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(255,186,18,.04) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 20%, rgba(129,140,248,.04) 0%, transparent 55%);
    pointer-events: none;
}

.home-themes-hd {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
.home-themes-hd .upper-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #FFBA12;
    margin-bottom: 16px;
    display: block;
}
.home-themes-hd h2 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.3px;
    margin: 0 0 16px;
}
.home-themes-sub {
    font-size: 16px;
    color: rgba(255,255,255,.45);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Strip of 5 theme cards */
.home-themes-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* Individual theme card */
.home-tc {
    border-radius: 16px;
    overflow: hidden;
    transition: transform .22s, box-shadow .22s;
    cursor: default;
}
.home-tc:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,.55);
}

/* Theme backgrounds */
.home-tc--blanc    { background: #f4f4f4; }
.home-tc--obsidian { background: radial-gradient(ellipse at top, #1a1040 0%, #0a0a0a 70%); }
.home-tc--neo      { background: #f5f0e8; }
.home-tc--terra    { background: linear-gradient(155deg, #f5ebe0 0%, #e8d4bc 100%); }
.home-tc--espresso { background: radial-gradient(ellipse at top, #2c1a10 0%, #0f0906 70%); }

/* Preview area (top of card) */
.htc-preview {
    padding: 20px 14px 0;
    display: flex;
    justify-content: center;
}

/* The mini form card sitting inside the theme preview */
.htc-card {
    width: 100%;
    border-radius: 8px;
    padding: 14px 12px 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.14);
}
.htc-card-ttl {
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.htc-lbl {
    font-size: 7.5px;
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
}
.htc-inp {
    height: 16px;
    border: 1.5px solid;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%;
    display: block;
    background: transparent;
}
.htc-stars {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}
.htc-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    border-radius: 5px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Neo special treatment — sharp edges, bold borders */
.home-tc--neo .htc-card {
    border-radius: 0;
    border: 2px solid #111;
    box-shadow: 5px 5px 0 #111;
    background: #fff !important;
}
.home-tc--neo .htc-inp { border-radius: 0; border-color: #111 !important; border-width: 2px; }
.home-tc--neo .htc-btn { border-radius: 0; }

/* Card footer: theme name + descriptor */
.htc-foot {
    padding: 14px 14px 18px;
    text-align: center;
}
.htc-foot strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}
.htc-foot span {
    display: block;
    font-size: 10px;
    font-weight: 500;
}
.htc-font-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    opacity: .55;
}

/* Footer text colors — light themes get dark text */
.home-tc--blanc .htc-foot strong,
.home-tc--neo .htc-foot strong,
.home-tc--terra .htc-foot strong    { color: rgba(0,0,0,.75); }
.home-tc--obsidian .htc-foot strong,
.home-tc--espresso .htc-foot strong { color: rgba(255,255,255,.9); }

.home-tc--blanc .htc-foot span,
.home-tc--neo .htc-foot span,
.home-tc--terra .htc-foot span      { color: rgba(0,0,0,.4); }
.home-tc--obsidian .htc-foot span,
.home-tc--espresso .htc-foot span   { color: rgba(255,255,255,.35); }

.home-tc--blanc .htc-font-tag    { background: rgba(0,0,0,.07); color: rgba(0,0,0,.5); }
.home-tc--obsidian .htc-font-tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.home-tc--neo .htc-font-tag      { background: rgba(0,0,0,.07); color: rgba(0,0,0,.5); }
.home-tc--terra .htc-font-tag    { background: rgba(0,0,0,.07); color: rgba(0,0,0,.4); }
.home-tc--espresso .htc-font-tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }

/* CTA link inside dark section */
.home-themes-section .link-primary-bold {
    color: #FFBA12;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: color .15s;
}
.home-themes-section .link-primary-bold:hover { color: #e6a800; text-decoration: none; }

/* Responsive */
@media (max-width: 1100px) {
    .home-themes-hd h2 { font-size: 30px; }
}
@media (max-width: 991px) {
    .home-themes-strip { grid-template-columns: repeat(3, 1fr); }
    .home-themes-section { padding: 70px 0 80px; margin-top: 80px; }
}
@media (max-width: 640px) {
    .home-themes-strip {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .home-tc {
        min-width: 158px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .home-themes-hd h2 { font-size: 26px; }
}
