@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0066FF;
    --secondary: #7300FF;
    --accent: #DD00FF;
    --dark-bg: #0f0f1a;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: white;
}

.gradient-text {
    background: linear-gradient(to right bottom, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

.card-glow {
    box-shadow: 0 0 20px rgba(221, 0, 255, 0.2);
}

.pulse-slow {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-link {
    position: relative;
    overflow: hidden;
}

.download-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-link:hover::before {
    left: 100%;
}

.download-link::after {
    content: "Download file (secure)";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 26, 0.9);
    opacity: 0;
    transition: opacity 0.3s;
}

.download-link:hover::after {
    opacity: 1;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dlc-list {
    max-height: 200px;
    overflow-y: auto;
}

.dlc-list::-webkit-scrollbar {
    width: 6px;
}

.dlc-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.dlc-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.compatibility-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.compatible {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.incompatible {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.partial {
    background-color: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 400px;
}

.toast {
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast-icon {
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.toast-content {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.toast-close:hover {
    color: white;
}

.download-info {
    background: rgba(30, 30, 46, 0.7);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.download-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.download-info-item {
    display: flex;
    flex-direction: column;
}

.download-info-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.download-info-value {
    font-weight: 500;
    color: white;
}

/* Update Schedule Styles */
.schedule-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
}

.schedule-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 60px;
}

.schedule-icon {
    position: absolute;
    left: 18px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.schedule-content {
    background: rgba(30, 30, 46, 0.7);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.schedule-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.schedule-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.schedule-deps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dep-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.current-version {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.upcoming-version {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Download state animations */
@keyframes cooking {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.download-btn-cooking {
    animation: cooking 2s ease-in-out infinite;
    background: linear-gradient(135deg, #FF6B00, #FF8C00, #FFA500) !important;
}

.download-btn-downloading {
    background: linear-gradient(135deg, #00CC66, #00DD77, #00EE88) !important;
}

/* Disabled state for form during download */
select:disabled, button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Кастомный стилизованный abbr */
.abbreviated {
    position: relative;
    cursor: help;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    color: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 255, 0.1) 100%);
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
}

.abbreviated:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
    background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 255, 0.2) 100%);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

/* Анимированная подсказка */
.abbreviated[data-tooltip] {
    position: relative;
}

.abbreviated[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
    animation: tooltipFadeIn 0.3s ease;
}

.abbreviated[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
    margin-bottom: -7px;
    z-index: 1001;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Градиентная версия */
.abbreviated-gradient {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 255, 0.1) 100%);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
    transition: all 0.3s ease;
}

.abbreviated-gradient:hover {
    background: linear-gradient(135deg, transparent 0%, rgba(221, 0, 255, 0.15) 100%);
    box-shadow: 0 0 20px rgba(221, 0, 255, 0.3);
}

/* Версия с пульсацией */
.abbreviated-pulse {
    animation: abbrPulse 4s infinite;
}

@keyframes abbrPulse {
    0%, 100% {
        border-bottom-color: var(--primary);
        box-shadow: 0 0 5px rgba(0, 102, 255, 0.3);
    }
    50% {
        border-bottom-color: var(--accent);
        box-shadow: 0 0 15px rgba(221, 0, 255, 0.5);
    }
}

/* Abbr с иконкой информации */
.abbreviated-icon {
    position: relative;
    cursor: help;
    text-decoration: none;
    color: inherit;
    padding: 0.1rem 0.3rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.abbreviated-icon::before {
    content: 'ⓘ';
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.abbreviated-icon:hover::before {
    opacity: 1;
}

.abbreviated-icon:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(221, 0, 255, 0.1));
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

/* Подсказка для версии с иконкой */
.abbreviated-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    max-width: 300px;
    width: max-content;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.75rem;
    text-align: left;
    line-height: 1.4;
}

.abbreviated-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(30, 30, 46, 0.95);
    margin-bottom: -7px;
    z-index: 1001;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 1rem;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.7) 0%, rgba(15, 15, 26, 0.3) 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(15, 15, 26, 0.9));
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
}

.slide-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    max-width: 600px;
}

.slide-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.meta-item i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 46, 0.8);
    border: none;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection colors */
::selection {
    background: rgba(115, 0, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(115, 0, 255, 0.3);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 26, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

/* Responsive improvements */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .carousel-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .meta-item {
        font-size: 0.75rem;
    }
}

/* Loading animations */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #1a1a2e 8%, #2a2a3e 18%, #1a1a2e 33%);
    background-size: 800px 104px;
}