﻿/* ============================================
   FASTPANEL vs cPanel — Основные стили
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0A0A0A;
    color: #F5F5F5;
    font-family: 'Inter', system-ui, sans-serif;
}

::selection {
    background: #7C5CFF44;
}

/* ============================================
   HERO ЭФФЕКТЫ
   ============================================ */

.hero-halo {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.15) 0%, rgba(124, 92, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-halo-green {
    position: absolute;
    top: -100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(0, 210, 106, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   ТИПОГРАФИКА
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #F5F5F5 0%, #7C5CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ТЕРМИНАЛ / КОД
   ============================================ */

.terminal {
    background: #0D0D0D;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #111;
    border-bottom: 1px solid #1A1A1A;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
}

/* ============================================
   РАЗДЕЛИТЕЛИ
   ============================================ */

.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #7C5CFF, transparent);
    opacity: 0.3;
}

/* ============================================
   КАРТОЧКИ
   ============================================ */

.card-hover {
    transition: all 0.3s ease;
    position: relative;
}

.card-hover:hover {
    border-color: #333;
    transform: translateY(-2px);
}

/* Вся карточка кликабельна: ссылка-оверлей поверх всего */
.card-link-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* Элементы, которые должны остаться поверх оверлея (например, вложенные ссылки) */
.card-hover .card-link-raise {
    position: relative;
    z-index: 2;
}

/* Внутренний layout карточки: прибиваем мета-строку к низу и выравниваем описание */
.card-hover .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-hover .card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-hover .card-meta {
    margin-top: auto;
}

/* ============================================
   СЛАЙДЕР (калькулятор)
   ============================================ */

.slider-track {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #222;
    outline: none;
}

.slider-track::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #7C5CFF;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
    transition: box-shadow 0.2s;
}

.slider-track::-webkit-slider-thumb:hover {
    box-shadow: 0 0 30px rgba(124, 92, 255, 0.6);
}

.slider-track::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #7C5CFF;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
}

/* ============================================
   FAQ АККОРДЕОН
   ============================================ */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 400px;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: countUp 0.4s ease-out;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */

.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   ТАБЛИЦА СРАВНЕНИЯ
   ============================================ */

.table-row-hover:hover {
    background: #111111;
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #7C5CFF, #6B4DE6);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(124, 92, 255, 0.4);
    transform: translateY(-1px);
}

/* ============================================
   МОКАП ДАШБОРДА
   ============================================ */

.mockup-glow {
    box-shadow: 0 0 80px rgba(124, 92, 255, 0.1), 0 0 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   БЛОК УСТАНОВКИ — ТАБЫ ОС
   ============================================ */

.os-tab {
    transition: all 0.2s ease;
    cursor: pointer;
}

.os-tab.active {
    background: #7C5CFF;
    color: #fff;
    border-color: #7C5CFF;
}

.os-panel {
    display: none;
}

.os-panel.active {
    display: block;
}

/* ============================================
   COPY BUTTON
   ============================================ */

.copy-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.copy-btn:hover {
    color: #F5F5F5;
}

.copy-btn.copied {
    color: #00D26A;
}

/* ============================================
   КАРТОЧКИ СТАТЕЙ — изображения
   ============================================ */

.card-img {
    transition: transform 0.4s ease;
}

.card-hover:hover .card-img {
    transform: scale(1.04);
}

/* ============================================
   АНИМАЦИЯ ЗАГОЛОВКА (главная)
   ============================================ */

#heroLink {
    display: inline-block;
    transition: opacity 0.35s ease;
    text-decoration: none;
    cursor: pointer;
}

#heroLink:hover {
    text-decoration: underline;
    text-decoration-color: rgba(124, 92, 255, 0.4);
    text-underline-offset: 4px;
}

/* ============================================
   ФИЛЬТР СТАТЕЙ
   ============================================ */

.filter-tab {
    color: #666666;
    background: transparent;
    border: 1px solid #222222;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover:not(.active) {
    border-color: #333333;
    color: #F5F5F5;
}

.filter-tab.active {
    background: #7C5CFF;
    border-color: #7C5CFF;
    color: #F5F5F5;
}

/* ============================================
   КАРТОЧКИ «СКОРО»
   ============================================ */

.card-coming-soon {
    opacity: 0.55;
    pointer-events: none;
}