/* Homepage-specific styles */

/* Reset main.css body centering */
body {
    display: block;
    padding: 0;
    background: #0a0a0f;
}
body::before { display: none; }

/* Hero background image */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('/skeletonarmy.png') center top / cover no-repeat;
    z-index: -1;
    opacity: 0.45;
    transition: opacity 0.1s;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #0a0a0f);
}

.nav-logo-img {
    height: 60px;
    width: auto;
}

/* Hero */
.homepage-hero {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.homepage-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a9eff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.homepage-hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Search box in hero */
.homepage-search-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.homepage-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #1e1e2e;
    border: 1px solid #3a3a4a;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.homepage-search-input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
}

.homepage-search-input::placeholder {
    color: #666;
}

.homepage-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1e1e2e;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Game browser container */
.homepage-games {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nav auth buttons */
.nav-right .btn-login {
    text-decoration: none;
}

/* Footer */
.homepage-footer {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a24;
}

.homepage-footer a {
    color: #4a9eff;
    text-decoration: none;
}

.homepage-footer a:hover {
    text-decoration: underline;
}

/* Loading state */
.homepage-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 300px;
}

.homepage-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #3a3a4a;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.homepage-loading .loading-text {
    margin-top: 1.5rem;
    color: #aaa;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .homepage-hero h1 { font-size: 1.8rem; }
    .homepage-hero { padding: 2rem 1.5rem 1.5rem; }
    .homepage-games { padding: 0 1rem 2rem; }
}
