/* Homepage: a compact intro band (headline + tagline + search/Create + a slim how-it-works
   and stats strip) followed by the top-rated board grid — composed to sit above the fold as
   one unit rather than a full-viewport hero with sections tacked on below. Built on the dark
   glass theme in styles.css. Rendered/populated by home.js. */

.home-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
}

/* --- Intro band --- */
.home-intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.home-title {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    /* reuse the white -> secondary gradient the old hero heading used */
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
}

.home-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin-top: 0.75rem;
}
.home-search {
    flex: 1 1 auto;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}
.home-search .search-input { flex: 1 1 auto; min-width: 0; }

/* Secondary action: muted lead-in text + an obvious accent link, so it reads as clickable
   without competing with the primary Search button. */
.home-create-line {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}
.home-create-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s;
}
.home-create-link:hover { opacity: 0.8; }

/* --- Top-rated board showcase --- */
.home-showcase { margin-top: 4rem; }
.home-section-title { font-size: 1.5rem; margin: 0 0 1.5rem; }

/* Community stats, centered below the showcase. */
.home-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3.5rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
}
.home-stat-inline strong { color: var(--accent-color); font-weight: 700; }

.home-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.home-board-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary, #fff);
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.home-board-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}
.home-board-name { margin: 0; font-size: 1.05rem; }
.home-board-sub { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.home-pedal-strip { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: 0.25rem 0; }
.home-pedal-thumb {
    width: 40px;
    height: 40px;
    background-color: transparent; /* let the card show through so pedals sit flush, no box */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.home-pedal-more { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); align-self: center; }

.home-board-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.25rem;
}
.home-board-owner { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.home-board-rating { font-size: 0.9rem; font-weight: 600; color: var(--accent-color); white-space: nowrap; margin-left: auto; }

@media (max-width: 768px) {
    .home-title { font-size: 2rem; }
    .home-stats { gap: 1.25rem; }
}
