/* ========== БАЗОВЫЕ ПЕРЕМЕННЫЕ И СБРОС ========== */
:root {
    --primary-color: rgba(139, 0, 0, 0.9);
    --secondary-color: rgba(200, 0, 0, 0.7);
    --accent-color: #8B0000;
    --accent-light: rgba(139, 0, 0, 0.2);
    --background: #1a0000;
    --glass-bg: rgba(40, 0, 0, 0.7);
    --glass-border: rgba(139, 0, 0, 0.3);
    --shadow: 0 8px 32px rgba(139, 0, 0, 0.3);
    --shadow-light: 0 4px 20px rgba(139, 0, 0, 0.2);
    --text-color: #ffcccc;
    --text-secondary: #ff6666;
    --card-text: #ffaaaa;
    --card-title: #ff0000;
    --border-radius-large: 30px;
    --border-radius-medium: 20px;
    --border-radius-small: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 60px;
    transition: background 0.3s, color 0.3s;
    position: relative;
}

/* ========== ТЕМА BLOOD (единственная) ========== */
.theme-blood {
    --primary-color: rgba(139, 0, 0, 0.9);
    --secondary-color: rgba(200, 0, 0, 0.7);
    --accent-color: #8B0000;
    --accent-light: rgba(139, 0, 0, 0.2);
    --background: #1a0000;
    --glass-bg: rgba(40, 0, 0, 0.7);
    --glass-border: rgba(139, 0, 0, 0.3);
    --shadow: 0 8px 32px rgba(139, 0, 0, 0.3);
    --shadow-light: 0 4px 20px rgba(139, 0, 0, 0.2);
    --text-color: #ffcccc;
    --text-secondary: #ff6666;
    --card-text: #ffaaaa;
    --card-title: #ff0000;
}

/* Эффект стекающей жижи */
.theme-blood::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(180, 0, 0, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(200, 0, 0, 0.4) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(150, 0, 0, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(220, 0, 0, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 10% 60%, rgba(160, 0, 0, 0.35) 0%, transparent 25%);
    background-size: 300% 300%;
    animation: slimeFlow 25s ease-in-out infinite alternate;
    z-index: -1;
    filter: blur(8px);
}

@keyframes slimeFlow {
    0% { background-position: 0% 0%; }
    25% { background-position: 50% 30%; }
    50% { background-position: 100% 70%; }
    75% { background-position: 30% 100%; }
    100% { background-position: 80% 20%; }
}

/* ========== НАВИГАЦИОННАЯ ПАНЕЛЬ ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--accent-color);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--accent-light);
}

.nav-brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

/* ========== ПЕРЕКЛЮЧАТЕЛЬ ТЕМ (декоративный) ========== */
.theme-switcher {
    position: relative;
    margin-left: auto;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    opacity: 1;
}

.theme-toggle:hover {
    background-color: var(--accent-light);
    transform: scale(1.1);
}

/* ========== БОКОВОЕ МЕНЮ ========== */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    backdrop-filter: blur(30px) saturate(200%);
    background-color: rgba(40, 0, 0, 0.85);
    border-right: 1px solid rgba(139, 0, 0, 0.3);
    box-shadow: var(--shadow);
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-radius: 0 var(--border-radius-large) var(--border-radius-large) 0;
}

.side-menu.active {
    left: 0;
    animation: slideInBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInBounce {
    0% { left: -320px; }
    70% { left: 20px; }
    100% { left: 0; }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.menu-header h3 {
    font-weight: 600;
    color: #ff0000;
    font-size: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 20px;
    color: #ff6666;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.close-menu:hover {
    background-color: rgba(139, 0, 0, 0.2);
}

.menu-content {
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffaaaa;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s;
}

.side-menu.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}

.side-menu.active .menu-item:nth-child(1) { transition-delay: 0.1s; }
.side-menu.active .menu-item:nth-child(2) { transition-delay: 0.2s; }
.side-menu.active .menu-item:nth-child(3) { transition-delay: 0.3s; }
.side-menu.active .menu-item:nth-child(4) { transition-delay: 0.4s; }

.menu-item:hover {
    background-color: rgba(139, 0, 0, 0.2);
    text-decoration: none;
}

.menu-item.active {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.menu-item i {
    margin-right: 16px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-item span {
    font-weight: 500;
    font-size: 17px;
}

.menu-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    color: #ff6666;
    font-size: 14px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 24px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.main-title {
    font-size: 5.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8B0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(3px);
}

/* ========== АНИМАЦИИ ПОЯВЛЕНИЯ ========== */
.animate-title {
    animation: titleBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.3s;
}

.animate-subtitle {
    animation: subtitleBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s;
}

@keyframes titleBounce {
    0% { opacity: 0; transform: translateY(30px); filter: blur(5px); }
    70% { opacity: 0.8; transform: translateY(-5px); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes subtitleBounce {
    0% { opacity: 0; transform: translateY(20px); filter: blur(3px); }
    70% { opacity: 0.8; transform: translateY(-3px); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.animate-card {
    opacity: 0;
    transform: translateY(40px);
}

.animate-card:nth-child(1) {
    animation: cardBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.9s;
}

.animate-card:nth-child(2) {
    animation: cardBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.1s;
}

.animate-card:nth-child(3) {
    animation: cardBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.3s;
}

@keyframes cardBounce {
    0% { opacity: 0; transform: translateY(40px); }
    70% { opacity: 0.9; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========== КАРТОЧКИ ========== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: 32px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--card-text);
    display: block;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.6), transparent);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background-color: rgba(60, 0, 0, 0.8);
    text-decoration: none;
    color: var(--card-text);
}

.card-link:hover {
    cursor: pointer;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-medium);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(100, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 32px;
    color: var(--accent-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--card-title);
}

.card-username {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 15px;
    opacity: 0.9;
}

.card-description {
    color: var(--card-text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.card-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.card-badge.coming-soon {
    background-color: rgba(139, 0, 0, 0.15);
    color: #ff8888;
}

/* ========== СТРАНИЦА TOOLS (ХОРРОР) ========== */
.not-soon-container {
    text-align: center;
    margin: 80px 0;
    animation: fadeInBlood 2s ease;
}
.not-soon {
    font-size: 8rem;
    font-weight: 900;
    color: #8B0000;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #8B0000;
    letter-spacing: 10px;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: drip 3s infinite;
}
.not-soon-description {
    font-size: 1.8rem;
    color: #ff6666;
    text-shadow: 0 0 10px #8B0000;
}
@keyframes drip {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(5px); opacity: 0.9; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInBlood {
    from { opacity: 0; text-shadow: 0 0 0 #8B0000; }
    to { opacity: 1; text-shadow: 0 0 20px #ff0000; }
}
@media (max-width: 768px) {
    .not-soon { font-size: 4rem; }
    .not-soon-description { font-size: 1.2rem; }
}

/* ========== INFO ICON ========== */
.info-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B0000;
    font-size: 18px;
    cursor: help;
    opacity: 0.3;
    transition: opacity 0.3s;
    z-index: 1000;
}
.info-icon:hover {
    opacity: 1;
}
.info-icon .tooltip {
    visibility: hidden;
    width: 220px;
    background-color: rgba(0,0,0,0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 14px;
    border: 1px solid #8B0000;
    box-shadow: 0 0 10px rgba(139,0,0,0.5);
}
.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ========== ЭФФЕКТ КАПЛИ КРОВИ ========== */
.blood-drop {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #8B0000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: drop 0.6s ease-out forwards;
    box-shadow: 0 0 8px #ff0000;
}
@keyframes drop {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ (ДЕТАЛЬНЫЕ СТРАНИЦЫ, КНОПКИ, ФУТЕР) ========== */

/* Список приложений (не используется, но оставлен на случай) */
.apps-section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--card-title);
    padding-left: 10px;
    border-left: 4px solid var(--accent-color);
}
.app-list {
    list-style: none;
    padding: 0;
}
.app-list-item {
    backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    margin-bottom: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--card-text);
}
.app-list-item:hover {
    transform: translateX(10px);
    background-color: rgba(80, 0, 0, 0.4);
    box-shadow: var(--shadow-light);
    text-decoration: none;
    color: var(--card-text);
}
.app-icon-small {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-medium);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(100, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-icon-small img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.app-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--card-title);
}
.app-info p {
    color: var(--card-text);
    font-size: 15px;
    margin: 0;
}
.app-version {
    font-size: 13px;
    color: var(--accent-color);
    margin-top: 4px;
    display: inline-block;
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 20px;
}

/* Детальная страница приложения */
.app-detail {
    backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: 40px;
    margin-top: 30px;
}
.app-detail-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.app-detail-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-large);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(100, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-detail-icon i {
    font-size: 60px;
    color: var(--accent-color);
}
.app-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-large);
}
.app-detail-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--card-title);
}
.app-detail-title .version {
    font-size: 1.1rem;
    color: var(--accent-color);
    background: var(--accent-light);
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
}
.download-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 20px 0 30px;
}
.download-button:hover {
    background: #5a0000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}
.info-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(40, 0, 0, 0.5);
    border-radius: var(--border-radius-medium);
    backdrop-filter: blur(10px);
}
.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--card-title);
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-section ul {
    list-style: none;
    padding-left: 0;
}
.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-section li i {
    color: var(--accent-color);
    width: 24px;
}
.virus-total-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2d0000;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    margin: 15px 0;
    transition: all 0.3s ease;
}
.virus-total-link:hover {
    background: #1a0000;
    transform: translateY(-2px);
    color: white;
}
.badge-beta {
    background: #8B0000;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 15px;
}
.badge-release {
    background: #8B0000;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 15px;
}
.changes-list {
    background: rgba(139, 0, 0, 0.1);
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    margin-top: 10px;
}
.changes-list li {
    border-bottom: none;
    padding: 5px 0;
}

/* Кнопка назад */
.back-link {
    text-align: center;
    margin-top: 60px;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.back-button:hover {
    background-color: rgba(80, 0, 0, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--accent-color);
}

/* Футер */
.footer {
    text-align: center;
    margin-top: 80px;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 24px;
    }

    .app-list-item {
        padding: 15px;
        gap: 15px;
    }
    .app-icon-small {
        width: 50px;
        height: 50px;
    }
    .app-icon-small img {
        width: 30px;
        height: 30px;
    }
    .app-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .side-menu {
        width: 280px;
    }
}