/* ============================================
   Slay Station — Home Page (Redesigned)
   Modern, immersive landing with great UX
   ============================================ */
html.home-page, html.home-page body { height: 100vh; overflow: hidden; }

.home-layout {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    height: 100vh; padding-top: var(--nav-height);
}

/* ─── HERO HEADER ─────────────────────────── */
.home-header {
    text-align: center;
    padding: 10px 20px 4px;
    flex-shrink: 0;
    position: relative;
}
.home-header h1 {
    font-family: var(--font-main);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.home-header .tagline {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 6px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

/* ─── STATS BAR ───────────────────────────── */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-item .stat-num {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.76rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-color);
}

/* ─── QUICK ACTIONS ───────────────────────── */
.quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.quick-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-main);
    white-space: nowrap;
    border: 1px solid transparent;
}
.quick-action.primary {
    background: var(--gradient-1);
    color: #000;
    box-shadow: 0 2px 12px rgba(249,115,22,0.2);
}
.quick-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(249,115,22,0.3);
}
.quick-action.secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border-color);
    backdrop-filter: blur(8px);
}
.quick-action.secondary:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transform: translateY(-1px);
}
.quick-action .badge-new {
    font-size: 0.58rem;
    background: rgba(0,0,0,0.12);
    padding: 1px 5px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ─── CATEGORY CHIPS ──────────────────────── */
.cat-bar {
    flex-shrink: 0;
    padding: 4px 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    margin-right: 4px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-body);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    user-select: none;
}
.cat-chip:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(245,197,24,0.1);
}
.cat-chip.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(249,115,22,0.25);
    transform: translateY(-1px);
}
.cat-chip .chip-count {
    font-size: 0.58rem;
    background: rgba(0,0,0,0.08);
    padding: 1px 5px;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.cat-chip.active .chip-count {
    background: rgba(0,0,0,0.15);
}

/* ─── TOOLS GRID AREA ─────────────────────── */
.tools-area {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.tools-area::-webkit-scrollbar { width: 4px; }
.tools-area::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── TOOL CARD ───────────────────────────── */
.tool-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border, var(--border-color));
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.25s;
}
.tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 28px rgba(249,115,22,0.12);
}
.tool-card:hover::before {
    opacity: 1;
}
.tool-card .tool-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 6px;
    transition: transform 0.25s;
}
.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(-3deg);
}
.tool-card .tool-info {
    flex: 1;
    min-width: 0;
}
.tool-card .tool-info h3 {
    font-family: var(--font-main);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tool-card:hover .tool-info h3 {
    color: var(--accent-yellow);
}
.tool-card .tool-info p {
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.2;
    display: none;
}
.tool-card .tool-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s;
}
.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ─── FEATURED TOOLS ROW ──────────────────── */
.featured-row {
    max-width: 1200px;
    margin: 0 auto 6px;
}
.featured-row .section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-family: var(--font-main);
}
.featured-row .section-label .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.featured-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    min-width: 170px;
}
.featured-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-yellow);
    box-shadow: 0 6px 20px rgba(249,115,22,0.1);
}
.featured-card .feat-icon {
    font-size: 1.1rem;
}
.featured-card .feat-info h4 {
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
}
.featured-card .feat-info p {
    font-size: 0.58rem;
    color: var(--text-muted);
}
.featured-card .feat-badge {
    margin-left: auto;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.feat-badge.hot {
    background: rgba(239,68,68,0.1);
    color: var(--accent-red);
}
.feat-badge.new {
    background: rgba(34,197,94,0.1);
    color: var(--accent-green);
}
.feat-badge.trending {
    background: rgba(245,197,24,0.12);
    color: var(--accent-yellow);
}

/* ─── CATEGORY SECTION HEADER ─────────────── */
.cat-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.cat-section-header .cat-icon {
    font-size: 0.9rem;
}
.cat-section-header h2 {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
}
.cat-section-header .cat-count {
    margin-left: auto;
    font-size: 0.55rem;
    padding: 1px 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── VIEW ALL LINK ───────────────────────── */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-orange);
    cursor: pointer;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.2s;
    font-family: var(--font-main);
}
.view-all-link:hover {
    border-color: var(--accent-orange);
    background: rgba(249,115,22,0.06);
    transform: translateX(2px);
}

/* ─── NO RESULTS ──────────────────────────── */
.no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.no-results .no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}
.no-results h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-family: var(--font-main);
}
.no-results p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── FOOTER BAR ──────────────────────────── */
.home-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 5px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.6rem;
    color: var(--text-muted);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
}
.home-footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.2s;
}
.home-footer a:hover {
    color: var(--accent-yellow);
}
.home-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 2px;
}
.home-footer .footer-brand .logo-icon svg {
    width: 16px;
    height: 16px;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    html.home-page, html.home-page body { height: auto; overflow: auto; }
    .home-layout { height: auto; min-height: 100vh; }
    .home-header { padding: 8px 12px 4px; }
    .home-header h1 { font-size: 1.1rem; }
    .home-header .tagline { font-size: 0.68rem; margin-bottom: 4px; }
    .stats-bar { gap: 10px; margin-bottom: 4px; }
    .stat-item { font-size: 0.6rem; }
    .stat-item .stat-num { font-size: 0.68rem; }
    .quick-actions { gap: 4px; }
    .quick-action { padding: 3px 8px; font-size: 0.62rem; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .tool-card { padding: 7px 8px; gap: 6px; }
    .tool-card .tool-info p { display: none; }
    .tool-card .tool-arrow { display: none; }
    .tool-card .tool-icon { width: 28px; height: 28px; font-size: 1rem; }
    .tool-card .tool-info h3 { font-size: 0.68rem; }
    .cat-bar { padding: 3px 12px; }
    .cat-chip { padding: 3px 8px; font-size: 0.62rem; }
    .featured-card { min-width: 150px; padding: 5px 10px; }
    .featured-card .feat-info h4 { font-size: 0.65rem; }
    .cat-section-header { margin: 6px 0 3px; }
}

@media (max-width: 380px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .home-header h1 { font-size: 1rem; }
    .stats-bar { gap: 6px; }
    .stat-dot { display: none; }
}

@media (max-height: 700px) {
    .home-header { padding: 6px 20px 2px; }
    .home-header h1 { font-size: 1.1rem; }
    .home-header .tagline { margin-bottom: 4px; }
    .stats-bar { margin-bottom: 4px; }
    .tool-card { padding: 6px 8px; }
    .tool-card .tool-info p { display: none; }
    .featured-row { margin-bottom: 4px; }
}

@media (min-width: 1400px) {
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .home-header h1 { font-size: 1.5rem; }
}
