/* ==========================================
   ModProject — Полная тема
   Цвета: чёрный, красный, белый
   ========================================== */

/* === Переменные === */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-input: #1a1a1a;
    --bg-input-focus: #222222;

    --red-primary: #dc2626;
    --red-hover: #ef4444;
    --red-dark: #991b1b;
    --red-glow: rgba(220, 38, 38, 0.3);
    --red-subtle: rgba(220, 38, 38, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;
    --border-red: rgba(220, 38, 38, 0.3);

    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --danger: #dc2626;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-red: 0 4px 20px rgba(220, 38, 38, 0.2);

    --transition: all 0.2s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--red-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--red-hover);
}

img {
    max-width: 100%;
}

/* === Container === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Навигация === */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(17, 17, 17, 0.95);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    color: var(--red-primary);
    font-size: 1.6rem;
}

.accent {
    color: var(--red-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--red-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown-right {
    left: auto;
    right: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: block;
    padding: 8px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--red-subtle);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    background: var(--red-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Flash Messages === */
.flash-message {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.flash-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); }
.flash-error { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.3); }
.flash-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.flash-info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); }

.flash-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
}

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--red-hover);
    color: white;
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: var(--red-subtle);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === Main Content === */
.main-content {
    min-height: calc(100vh - 64px - 300px);
}

/* === Hero Section === */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 24px;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 16px 24px 16px 48px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: var(--transition);
    font-family: inherit;
}

.hero-search input:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 4px var(--red-glow);
}

.hero-search input::placeholder {
    color: var(--text-muted);
}

.hero-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--red-primary);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === Sections === */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === Cards === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mod-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mod-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mod-card-header {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.mod-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--red-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.mod-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-card-info {
    flex: 1;
    min-width: 0;
}

.mod-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-card-title a {
    color: var(--text-primary);
}

.mod-card-title a:hover {
    color: var(--red-primary);
}

.mod-card-author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mod-card-author a {
    color: var(--text-secondary);
}

.mod-card-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.mod-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tag {
    padding: 3px 10px;
    background: var(--red-subtle);
    color: var(--red-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.mod-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.mod-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mod-card-category {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* === Страница мода === */
.mod-page {
    padding: 32px 0;
}

.mod-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.mod-page-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.mod-page-icon {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    background: var(--red-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.mod-page-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.mod-page-author {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mod-page-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 0;
}

.tab {
    padding: 12px 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    text-decoration: none;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--red-primary);
    border-bottom-color: var(--red-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Description */
.mod-description {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.mod-description h1, .mod-description h2, .mod-description h3 {
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.mod-description p {
    margin-bottom: 16px;
}

.mod-description code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.mod-description pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 16px 0;
}

.mod-description ul, .mod-description ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.mod-description li {
    margin-bottom: 4px;
}

/* Sidebar */
.mod-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.sidebar-stat-label {
    color: var(--text-muted);
}

.sidebar-stat-value {
    font-weight: 600;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    padding: 6px 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-links a:hover {
    color: var(--red-primary);
}

/* Versions */
.version-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.version-item:hover {
    border-color: var(--border-hover);
}

.version-info {
    flex: 1;
}

.version-number {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.version-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.release-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.release-badge.release { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.release-badge.beta { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.release-badge.alpha { background: rgba(220, 38, 38, 0.15); color: var(--danger); }

/* Comments */
.comment {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Формы === */
.form-container {
    max-width: 480px;
    margin: 48px auto;
    padding: 0 20px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--red-primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--red-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-wide {
    max-width: 800px;
}

/* File upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.file-upload:hover {
    border-color: var(--red-primary);
    background: var(--red-subtle);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.file-upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-upload-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--red-primary);
}

/* === Поиск и фильтры === */
.search-page {
    padding: 32px 0;
}

.search-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.search-bar input {
    flex: 1;
}

.filters-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 80px;
    align-self: start;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-option:hover {
    color: var(--text-primary);
}

.filter-option input {
    accent-color: var(--red-primary);
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sort-bar-left {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sort-select {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* === Профиль === */
.profile-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.03) 0%, transparent 100%);
}

.profile-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.profile-stat {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-stat strong {
    color: var(--text-primary);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a {
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.pagination .active {
    background: var(--red-primary);
    color: white;
    border: 1px solid var(--red-primary);
}

.pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--red-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === Утилиты === */
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* === Responsive === */
@media (max-width: 1024px) {
    .mod-page-layout {
        grid-template-columns: 1fr;
    }

    .search-layout {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .mod-page-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-card {
        padding: 24px;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .navbar-content {
        padding: 0 12px;
    }
}

/* === Скроллбар === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === Анимации === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* === Category chips === */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.category-chip {
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.category-chip:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: var(--red-subtle);
}

/* === Mod list view === */
.mod-list-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: var(--transition);
}

.mod-list-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Featured banner */
.featured-banner {
    background: linear-gradient(135deg, var(--red-dark), #1a0a0a);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.featured-content h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.featured-content p {
    color: var(--text-secondary);
    max-width: 500px;
}