/* ===== StalCraft X — главная страница: визуал 2026 ===== */

/* Hero: полноэкранный, 3D-объекты и анимации */
.hero-home {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-home .hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0a0a0c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.hero-home .hero-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,8,0.7) 0%, rgba(5,5,8,0.88) 60%, rgba(5,5,8,0.96) 100%);
    pointer-events: none;
}
.hero-home .hero-deco {
    z-index: 1;
}
.hero-home .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-red-light);
    margin-bottom: 1rem;
    padding: 6px 14px;
    border: 1px solid rgba(224, 36, 36, 0.4);
    border-radius: 999px;
    opacity: 0;
}

.hero-home .hero-title {
    font-size: clamp(2.75rem, 9vw, 5rem);
    font-family: 'Orbitron', 'Bebas Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 220, 220, 0.95) 50%, rgba(224, 36, 36, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 50px rgba(224, 36, 36, 0.4));
    margin-bottom: 1rem;
}

.hero-home .hero-subtitle {
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.hero-home .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Крутящаяся иконка радиации (3D-вращение) */
.hero-radiation--spin {
    position: absolute;
    width: 180px;
    height: 180px;
    left: 50%;
    top: 50%;
    margin-left: -90px;
    margin-top: -90px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: radiationSpin 25s linear infinite;
}

@keyframes radiationSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Плавающие кубы (3D-объекты) */
.hero-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(224, 36, 36, 0.25);
    pointer-events: none;
    z-index: 0;
    animation: cubeFloat 8s ease-in-out infinite;
}

.hero-cube--1 {
    left: 15%;
    top: 25%;
    animation-delay: 0s;
    animation-name: cubeFloat1;
}

.hero-cube--2 {
    right: 12%;
    bottom: 30%;
    animation-delay: -3s;
    animation-name: cubeFloat2;
}

@keyframes cubeFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.7; }
}

@keyframes cubeFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.35; }
    50% { transform: translateY(25px) rotate(-180deg) scale(1.1); opacity: 0.6; }
}

/* Орбы: пульсация и лёгкое движение */
.hero-home .hero-orb--1 {
    width: 320px;
    height: 320px;
    left: -80px;
    top: 20%;
    animation: glowPulse 6s ease-in-out infinite, float 10s ease-in-out infinite;
}

.hero-home .hero-orb--2 {
    width: 240px;
    height: 240px;
    right: -60px;
    bottom: 15%;
    animation: glowPulse 8s ease-in-out infinite 1s, float 12s ease-in-out infinite 0.5s;
}

.hero-home .hero-orb--3 {
    width: 160px;
    height: 160px;
    left: 50%;
    bottom: 10%;
    margin-left: -80px;
    animation: glowPulse 5s ease-in-out infinite 0.3s, float 7s ease-in-out infinite;
}

/* Сканлайн */
.hero-home .hero-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(224, 36, 36, 0.6), transparent);
    box-shadow: 0 0 20px rgba(224, 36, 36, 0.5);
    z-index: 1;
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { top: 0; opacity: 0.8; }
    100% { top: 100%; opacity: 0.8; }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Лента активности */
.home-activity .section-title { margin-bottom: 0.25rem; }
.activity-feed {
    border: 1px solid rgba(224, 36, 36, 0.25) !important;
    overflow: hidden;
}
.activity-item {
    transition: background 0.2s ease;
}
.activity-item:hover {
    background: rgba(224, 36, 36, 0.04);
}
.activity-item:last-child { border-bottom: none !important; }

/* Новости на главной */
.home-news {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.home-news-card {
    overflow: hidden;
    padding: 0;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(224, 36, 36, 0.25);
}

.home-news-card:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(224, 36, 36, 0.4);
}

.home-news-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

.home-news-body {
    padding: 1.25rem;
}

.home-news-date {
    font-size: 0.8rem;
    color: var(--color-red-light);
    letter-spacing: 0.05em;
}

.home-news-title {
    font-size: 1.1rem;
    margin: 0.35rem 0 0.5rem;
    line-height: 1.3;
}

.home-news-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.home-news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* Страница списка новостей */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-list-card {
    overflow: hidden;
    padding: 0;
}

.news-list-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.news-list-body {
    padding: 1.25rem;
}

.news-list-body time {
    font-size: 0.85rem;
    color: var(--color-red-light);
}

.news-list-body h2 {
    font-size: 1.15rem;
    margin: 0.35rem 0 0.5rem;
}

.news-list-body h2 a {
    color: inherit;
    text-decoration: none;
}

.news-list-body h2 a:hover {
    color: var(--color-red-light);
}

.news-detail-image {
    height: 280px;
    background-size: cover;
    background-position: center;
}

.news-detail-body {
    padding: 2rem;
}

.news-detail-content {
    line-height: 1.7;
}

/* Статистика: полоска карточек */
.home-stats {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .home-stats-grid { grid-template-columns: 1fr; }
}

.home-stat-card {
    padding: 1.75rem 1.5rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(224, 36, 36, 0.2);
    border-radius: 16px;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
    position: relative;
}

.home-stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 36, 36, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 24px rgba(224, 36, 36, 0.08);
}

.home-stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.home-stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.home-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Секция "Как это работает" */
.home-how {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Заголовки секций на главной: центрирование */
.home-activity .section-title,
.home-news .section-title,
.home-stats .section-title,
.home-how .section-title,
.features .section-title {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Orbitron', 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 0.08em;
}
.home-activity .section-title::after,
.home-news .section-title::after,
.home-how .section-title::after,
.features .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .home-steps { grid-template-columns: 1fr; }
}

.home-step {
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(224, 36, 36, 0.25);
}

.home-step:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 36, 36, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.home-step-num {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(224, 36, 36, 0.35);
    line-height: 1;
    margin-bottom: 1rem;
}

.home-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.home-step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Features: иконки с лёгкой анимацией */
.feature-icon--float {
    animation: iconFloat 4s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon--float { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon--float { animation-delay: 1s; }
.feature-card:nth-child(4) .feature-icon--float { animation-delay: 1.5s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Сетка фич: 4 колонки на десктопе */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(224, 36, 36, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(224, 36, 36, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* CTA блок Premium */
.home-cta {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.home-cta-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    position: relative;
    border: 1px solid rgba(224, 36, 36, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.home-cta-card:hover {
    border-color: rgba(224, 36, 36, 0.5);
    box-shadow: 0 0 40px rgba(224, 36, 36, 0.1);
}

.home-cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.home-cta-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Блок «Для блогеров и медиа» в конце главной */
.home-media {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.home-media-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    border: 1px solid rgba(224, 36, 36, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.home-media-card:hover {
    border-color: rgba(224, 36, 36, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.home-media-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.home-media-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}
