/* ═══════════════════════════════════════════════════════════
   StreamG — главная страница
   ═══════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: 110px 40px 40px 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ─── HERO ─── */
.hero {
    text-align: center;
    padding: 40px 0 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--nv-green);
    text-shadow: 0 0 40px rgba(118, 185, 0, 0.6);
}

.hero p {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── Панель управления ─── */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

/* ─── Поиск ─── */
.search-wrap {
    flex: 1;
    max-width: 420px;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--nv-green); }
.search-input::placeholder { color: #444; }

/* ─── Сетка игр ─── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 24px;
    justify-content: center;
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    width: 280px;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--nv-green);
    box-shadow: 0 0 30px rgba(118, 185, 0, 0.4);
    transform: translateY(-4px);
}

.game-cover {
    flex: 1;
    background-color: #0f1408;
    background-image: linear-gradient(135deg, #1a2410 0%, #0f1408 100%);
    background-size: cover;
    background-position: center;
}

.game-bar {
    background: rgba(0, 0, 0, 0.95);
    height: 90px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.game-name {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Сетка ПК ─── */
.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 380px);
    gap: 24px;
    justify-content: center;
}

.host-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s;
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.host-card:hover {
    border-color: var(--nv-green);
    box-shadow: 0 0 30px rgba(118, 185, 0, 0.4);
    transform: translateY(-4px);
}

.host-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.host-gpu {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.host-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nv-green);
    background: rgba(118, 185, 0, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.host-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nv-green);
    box-shadow: 0 0 8px var(--nv-green);
    animation: pulse 2s infinite;
}

.host-games {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.host-game-tag {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.host-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.host-price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--nv-green);
}

.host-price-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ─── Пусто ─── */
.empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-secondary);
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ─── Футер ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-size: 13px;
}

/* ─── Адаптив ─── */
@media (max-width: 768px) {
    .main { padding: 100px 20px 30px 20px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .controls { flex-direction: column; align-items: stretch; }
    .search-wrap { max-width: none; }
    .games-grid, .hosts-grid { grid-template-columns: 1fr; }
    .game-card, .host-card { width: 100%; }
    .footer { flex-direction: column; gap: 8px; text-align: center; }
}