/* downloads.css - стили для страницы загрузок */

.downloads-hero {
    min-height: auto;
    padding: 100px 0 40px;
    text-align: center;
}

.downloads-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--dry-red);
}

.hero-title {
    margin-bottom: 16px;
}

.hero-title .title-dry {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dry-red);
}

.hero-title .title-mine {
    font-size: 3rem;
    font-weight: 800;
    color: var(--mine-orange);
}

.hero-version {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 8px;
    letter-spacing: 1px;
}

.hero-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.5;
}

/* Категории */
.categories {
    padding: 20px 0 40px;
}

.categories-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid var(--border);
    max-width: 90%;
    margin: 0 auto;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab i {
    font-size: 0.9rem;
}

.category-tab .tab-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 0.65rem;
}

.category-tab:hover {
    color: var(--text);
    background: rgba(220, 38, 38, 0.1);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--dry-red), var(--mine-orange));
    color: white;
}

.downloads-grid-section {
    padding: 20px 0 60px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
}

/* Карточки */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--dry-red);
    box-shadow: var(--glow-red);
}

.download-card-header {
    height: 130px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(249, 115, 22, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.download-card-header.skin-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.skin-preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: #2d2d44;
}

.download-card-header i {
    font-size: 3rem;
    color: var(--dry-red);
    opacity: 0.6;
}

.download-card-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--mine-orange);
}

.download-card-body {
    padding: 16px;
}

.download-card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-card-body p {
    color: var(--text-dim);
    font-size: 0.7rem;
    margin-bottom: 12px;
    word-break: break-all;
}

.download-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-download-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    background: linear-gradient(135deg, var(--dry-red), var(--dry-red-dark));
    color: white;
    text-decoration: none;
}

.btn-download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-red);
}

/* Пустая категория */
.empty-category {
    text-align: center;
    padding: 50px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.empty-category i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-category p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Инструкция */
.install-guide {
    padding: 40px 0 60px;
}

.guide-block {
    background: linear-gradient(135deg, var(--bg-card), rgba(24, 24, 27, 0.8));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.guide-block h2 {
    font-size: 1.3rem;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 12px 20px;
    min-width: 180px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--dry-red), var(--mine-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step-content {
    text-align: left;
}

.step-content h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.step-content p {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-title .title-dry,
    .hero-title .title-mine {
        font-size: 2rem;
    }
    
    .categories-tabs {
        border-radius: 20px;
        flex-wrap: wrap;
    }
    
    .category-tab {
        padding: 8px 14px;
        font-size: 0.7rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-steps {
        flex-direction: column;
        align-items: stretch;
    }
    
    .guide-step {
        justify-content: center;
    }
    
    .step-content {
        text-align: center;
    }
}