/**
 * Стили Serverolite — hero, орбиты, консоль-демо, карточки, модалка, CTA.
 * Тема: theme.css. Базовые: base.css.
 */

/* ——— Hero Serverolite ——— */
.hero-serverolite {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(var(--vt-theme-rgb), 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(var(--vt-accent-rgb), 0.08) 0%, transparent 40%),
                var(--vt-darker);
    position: relative;
    overflow: hidden;
}

.hero-serverolite::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23059669' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-serverolite .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: vt-fadeInUp 1s ease-out;
}

.hero-badge-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
}

.hero-serverolite .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(var(--vt-accent-rgb), 0.2);
    border: 1px solid rgba(var(--vt-accent-rgb), 0.4);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.hero-serverolite .hero-badge span {
    color: var(--vt-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-serverolite .hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-serverolite .hero-title .gradient-text {
    background: linear-gradient(135deg, var(--vt-accent), var(--vt-theme));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-serverolite .hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--vt-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-serverolite .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Орбиты — тема */
.hero-serverolite .orbit-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    opacity: 0.2;
}

.hero-serverolite .orbit {
    position: absolute;
    border: 1px dashed rgba(var(--vt-theme-rgb), 0.3);
    border-radius: 50%;
}

.hero-serverolite .orbit-1 { top: 0; left: 0; width: 500px; height: 500px; animation: vt-orbit-rotate 20s linear infinite; }
.hero-serverolite .orbit-2 { top: 80px; left: 80px; width: 340px; height: 340px; border-color: rgba(var(--vt-accent-rgb), 0.2); animation: vt-orbit-reverse 25s linear infinite; }

.hero-serverolite .satellite {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--vt-theme-light);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(var(--vt-theme-rgb), 0.5);
    animation: vt-float 6s ease-in-out infinite;
}

.hero-serverolite .satellite:nth-child(1) { top: 10%; left: 10%; }
.hero-serverolite .satellite:nth-child(2) { top: 15%; right: 10%; animation-delay: 1s; background: var(--vt-accent); }
.hero-serverolite .satellite:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; background: var(--vt-theme); }

/* Карточки возможностей — тема */
#features .feature-icon svg {
    color: var(--vt-theme);
    stroke: currentColor;
    fill: none;
}

/* Консоль демо */
.console-demo {
    max-width: 900px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.console-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-buttons { display: flex; gap: 8px; }

.console-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.console-btn-close { background: #ff5f57; }
.console-btn-minimize { background: #ffbd2e; }
.console-btn-maximize { background: #28ca42; }

.console-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.console-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d4;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: #1e1e1e;
}

.console-body div {
    font-family: 'Courier New', monospace;
    white-space: pre;
    letter-spacing: 0;
}

.console-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInLine 0.3s ease forwards;
}

.console-line.logo-container { margin-bottom: 0; }

.console-line.logo-container > div {
    margin: 0;
    line-height: 1;
    padding: 0;
    display: block;
}

@keyframes fadeInLine {
    to { opacity: 1; }
}

.console-prompt { color: var(--vt-theme); font-weight: 600; }
.console-command { color: #d4d4d4; }
.console-info { color: #569cd6; }
.console-success { color: var(--vt-theme); }
.console-warning { color: #ffbd2e; }
.console-error { color: #f48771; }

.console-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #d4d4d4;
    animation: blink 1s infinite;
    margin-left: 2px;
    margin-top: 4px;
    vertical-align: top;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Секция скачивания */
.download-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 60px;
    margin: 60px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-card h3 { color: var(--vt-theme); }
.download-card:hover { border-color: var(--vt-theme); box-shadow: 0 12px 32px rgba(var(--vt-theme-rgb), 0.25); }
.download-card button.btn { border: none; cursor: pointer; }
.download-card button.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.instruction-card:hover { border-color: rgba(var(--vt-theme-rgb), 0.4); }

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--vt-dark);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: vt-fadeInUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--vt-accent-rgb), 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vt-accent);
    font-size: 24px;
}

.modal-title { font-size: 24px; font-weight: 700; color: white; }

.modal-content {
    color: var(--vt-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-content strong {
    color: var(--vt-theme);
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--vt-theme);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.modal-content ol { margin-left: 20px; margin-top: 10px; }
.modal-content li { margin-bottom: 15px; }

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-modal {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-modal-primary {
    background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-light));
    color: white;
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--vt-accent-rgb), 0.3);
}

.btn-modal-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-modal-secondary:hover { background: rgba(255, 255, 255, 0.15); }

/* CTA — тема */
.cta-section {
    background: linear-gradient(135deg, rgba(var(--vt-theme-rgb), 0.1), rgba(var(--vt-theme-rgb), 0.06));
    border-radius: 30px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 100px auto;
    border: 1px solid rgba(var(--vt-theme-rgb), 0.2);
}

.cta-title { font-size: 48px; font-weight: 700; margin-bottom: 20px; color: white; }
.cta-subtitle { font-size: 18px; color: var(--vt-gray); max-width: 600px; margin: 0 auto 40px; }

@media (max-width: 768px) {
    .hero-serverolite .hero-title { font-size: 40px; }
    .hero-serverolite .hero-subtitle { font-size: 17px; }
    .cta-section { padding: 40px 20px; }
    .cta-title { font-size: 36px; }
    .block-title-calendar .block-title-calendar__heading { font-size: 36px; }
}
