/* Home page (/) — layout, hero, search, value strip, featured cards */

.page-home {
    text-align: center;
    padding-bottom: 2rem;
}

.page-home .hero-search-section,
.page-home .featured-players-section {
    margin-bottom: 2rem;
}

.page-home .hero-search-section h1 {
    margin-bottom: 0.5rem;
    letter-spacing: var(--heading-letter-spacing);
}

.page-home .hero-search-section .lead {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
    .page-home .hero-search-section .lead {
        font-size: var(--font-size-xl);
    }
}

.page-home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.page-home .hero-actions .btn-outline-secondary {
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.page-home .hero-actions .btn-outline-secondary:hover {
    background: var(--surface-muted);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

/* Search */
.page-home .search-container {
    max-width: 36rem;
    margin: 0 auto;
}

.page-home .search-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-xl);
    transition: box-shadow 0.25s ease;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
}

.page-home .search-wrapper:focus-within {
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 74, 110, 0.25);
}

.page-home .search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
    font-size: 1.1rem;
}

.page-home .modern-search {
    height: 3.375rem;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl) !important;
    padding-left: 3rem;
    border: none;
    font-size: var(--font-size-lg);
    box-shadow: none;
    outline: none;
    transition: background-color 0.2s ease;
    flex: 1;
    background: transparent;
}

.page-home .modern-search:focus {
    box-shadow: none;
    background-color: var(--surface-muted);
}

.page-home .search-button {
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    padding: 0 1.5rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    height: 3.375rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-home .search-button:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
}

.page-home .search-button i {
    margin-right: 0.5rem;
}

@media (max-width: 576px) {
    .page-home .hero-search-section {
        padding: 0 0.5rem;
    }

    .page-home .hero-search-section h1 {
        font-size: var(--font-size-2xl);
    }

    .page-home .hero-search-section .lead {
        font-size: var(--font-size-base);
        margin-bottom: 1rem;
    }

    .page-home .search-container {
        max-width: 100%;
    }

    .page-home .search-wrapper {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .page-home .modern-search {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        height: 3rem;
        font-size: var(--font-size-base);
        padding-left: 2.75rem;
        width: 100%;
    }

    .page-home .search-icon {
        left: 1rem;
        top: 1.5rem;
        transform: translateY(-50%);
    }

    .page-home .search-button {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        height: 2.875rem;
        font-size: var(--font-size-base);
        width: 100%;
    }
}

/* Value strip */
.page-home .value-strip {
    background: var(--surface-elevated);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.page-home .value-strip-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-home .value-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1 1 10rem;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
}

.page-home .value-item i {
    font-size: 1.25rem;
    color: var(--brand-accent);
    margin-bottom: 0.15rem;
}

.page-home .value-label {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.page-home .value-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-height-normal);
}

.page-home .value-divider {
    width: 1px;
    align-self: stretch;
    min-height: 2.5rem;
    background-color: var(--border-subtle);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .page-home .value-strip-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-home .value-item {
        flex-direction: row;
        align-items: center;
        flex: none;
        width: 100%;
        text-align: left;
    }

    .page-home .value-item i {
        margin-bottom: 0;
    }

    .page-home .value-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .page-home .value-strip {
        padding: 0.875rem 1rem;
    }
}

/* Featured players */
.page-home .featured-players-section h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
}

.page-home .featured-players-section > p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.page-home .featured-profiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-home .profile-box-wrapper {
    position: relative;
}

.page-home .profile-box {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 15.625rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background-color: var(--surface-elevated);
    display: block;
    box-shadow: var(--shadow-sm);
}

.page-home .profile-box.live {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.15);
}

.page-home .profile-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    color: inherit;
}

.page-home .live-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #dc3545;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    z-index: 10;
    letter-spacing: 0.04em;
}

.page-home .live-badge-link {
    text-decoration: none;
}

.page-home .profile-picture {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
}

.page-home .profile-title {
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.page-home .profile-username {
    color: var(--text-primary);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
}

.page-home .profile-meta-description {
    color: var(--text-muted);
    margin-top: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: var(--font-size-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.5em;
    line-height: var(--line-height-normal);
    text-align: left;
}
