/*
 * tnt-home.css
 * TNT | TechNoviceTools | Home page (index.html) styles
 * Requires: tnt-base-styles.css (loaded first)
 *
 * Covers: hero config, featured-destination cards, all-sections grid,
 *         live demos, tech-stack badges, DOM-Jumble class, responsive tweaks.
 */


/* ═══════════════════════════════════════════════════════════════════
   HERO — home page
   Full-viewport, fiery background image.
═══════════════════════════════════════════════════════════════════ */

/* Background: images/aiGenFirecracker2025-06-10.jpg
   Dark overlay keeps text readable regardless of image contrast. */
#hero {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(10,14,26,0.80) 0%, rgba(168,16,32,0.65) 100%),
        url('../images/aiGenFirecracker2025-06-10.jpg') center / cover no-repeat;
    position: relative;
    padding: 5rem 1rem 6rem;
}

.hero-content {
    max-width: 820px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.75rem;
}

/* CTA button row */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.btn-hero-primary {
    background: var(--tnt-red);
    color: #fff;
    border: none;
    font-family: var(--boogaloo);
    font-size: 1.2rem;
    padding: 0.65rem 2.2rem;
    border-radius: 50px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    background: var(--tnt-red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216,24,39,0.45);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    font-family: var(--boogaloo);
    font-size: 1.2rem;
    padding: 0.65rem 2.2rem;
    border-radius: 50px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--tnt-amber);
    color: var(--tnt-amber);
    transform: translateY(-2px);
}

/* Animated chevron at the bottom of the hero */
.scroll-hint {
    position: absolute;
    bottom: calc(25% - 100px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.45);
    font-size: 1.5rem;
    animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-10px); }
}


/* ═══════════════════════════════════════════════════════════════════
   SITE INTRO  (#siteIntro)
   Light warm background — same tone as explore.html intro.
   Sits between the hero and the destination cards, giving visitors
   a quick orientation before they start exploring.
═══════════════════════════════════════════════════════════════════ */
#siteIntro {
    background: #f4f5f7;
    padding: 5rem 0;
}

#siteIntro .section-title { color: var(--tnt-dark); }

#siteIntro p {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.72;
}

/* Stat callout box — mirrors the legacy-callout on explore.html */
.home-stat-callout {
    background: var(--tnt-dark);
    border: 2px solid var(--tnt-amber);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.home-stat-callout-icon {
    font-size: 2.4rem;
    color: var(--tnt-amber);
    line-height: 1;
}

.home-stat-callout h3 {
    font-family: var(--boogaloo);
    font-size: 1.55rem;
    color: #fff;
    margin: 0;
}

.home-stat-callout p {
    color: rgba(255,255,255,0.68);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.home-stat-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.home-stat {
    text-align: center;
}

.home-stat-num {
    font-family: var(--boogaloo);
    font-size: 2rem;
    color: var(--tnt-amber);
    line-height: 1;
    display: block;
}

.home-stat-label {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}


/* ═══════════════════════════════════════════════════════════════════
   FEATURED DESTINATIONS  (#hotLinks)
═══════════════════════════════════════════════════════════════════ */
#hotLinks {
    background: var(--tnt-dark);
    padding: 5rem 0;
    color: #fff;
}

#hotLinks .section-title  { color: #fff; }
#hotLinks .section-label  { color: var(--tnt-amber); }

.feature-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    min-height: 260px;
    background: var(--tnt-mid);
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.55);
    color: #fff;
    text-decoration: none; /* card hover lift is enough — no underline needed */
}

/* Background image layer — kept subtle so text is always readable */
.feature-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    transition: opacity 0.25s;
}

.feature-card:hover .feature-card-bg { opacity: 0.42; }

/* Gradient overlay + content sit on top of the bg layer */
.feature-card-body {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10,14,26,0.92) 0%, transparent 100%);
}

.feature-card-icon {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.feature-card-title {
    font-family: var(--boogaloo);
    font-size: 1.55rem;
    margin-bottom: 0.3rem;
}

.feature-card-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
}

/* "Hot!" / "Popular" badge pinned to top-right of card */
.fc-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--tnt-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    z-index: 3;
}

.fc-badge.amber { background: var(--tnt-amber); color: var(--tnt-dark); }


/* ═══════════════════════════════════════════════════════════════════
   ALL SECTIONS NAV GRID  (#allPages)
═══════════════════════════════════════════════════════════════════ */
#allPages {
    background: #f4f5f7;
    padding: 5rem 0;
}

.page-card {
    background: #fff;
    border: 1.5px solid #e2e4e8;
    border-radius: 14px;
    padding: 1.75rem 1rem 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--tnt-dark);
    display: block;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.page-card:hover {
    border-color: var(--tnt-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(216,24,39,0.13);
    color: var(--tnt-dark);
    text-decoration: none; /* card hover is enough — no underline needed */
}

.page-card i {
    font-size: 2.1rem;
    margin-bottom: 0.65rem;
    display: block;
}

.page-card .pc-title {
    font-family: var(--boogaloo);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.page-card .pc-desc {
    font-size: 0.76rem;
    color: #666;
    line-height: 1.45;
}


/* ═══════════════════════════════════════════════════════════════════
   LIVE DEMOS  (#liveDemos)
═══════════════════════════════════════════════════════════════════ */
#liveDemos {
    background: var(--tnt-mid);
    padding: 5rem 0;
    color: #fff;
}

#liveDemos .section-title { color: #fff; }
#liveDemos .section-label { color: var(--tnt-amber); }

.demo-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    user-select: none;
}

.demo-card:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* Icon / image displayed in the demo card */
.demo-icon-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.demo-icon-wrap img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.demo-icon-fallback { font-size: 3rem; line-height: 1; }

.demo-title {
    font-family: var(--boogaloo);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.demo-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.52);
}


/* ═══════════════════════════════════════════════════════════════════
   TECH STACK BADGES  (#techStack)
   Two-column layout: description left, badges right.
═══════════════════════════════════════════════════════════════════ */
#techStack {
    background: #fff;
    padding: 4rem 0;
}

/* Description copy on the left */
#techStack .stack-desc {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.72;
}

#techStack .stack-desc p + p { margin-top: 0.75rem; }

/* Badge cloud on the right — wraps naturally */
.tech-badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-content: flex-start;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f1f3;
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tnt-dark);
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.tech-badge:hover {
    background: #e2e3e6;
    transform: translateY(-1px);
    color: var(--tnt-dark);
}

.tech-badge i { font-size: 1.05rem; }


/* ═══════════════════════════════════════════════════════════════════
   DOM JUMBLE  — outline applied by domTargeting.js
═══════════════════════════════════════════════════════════════════ */
.emphasize {
    outline: 2px dashed var(--tnt-amber);
    outline-offset: 2px;
    border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .feature-card,
    .feature-card-body { min-height: 200px; }
}

/* Ensure large feature cards have consistent height on desktop */
@media (min-width: 768px) {
    .feature-card-large,
    .feature-card-large .feature-card-body { min-height: 320px; }
}
