/* ============================================================
   RIFTLY - ПОЛНЫЙ ДИЗАЙН
   Версия 3.0 - TikTok стиль, темы, лайки
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg, #2a1f1a);
    color: var(--body-text, #f0e8e0);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== ПЕРЕМЕННЫЕ ДЛЯ ТЕМ ===== */
:root {
    --header-height: 64px;
    --header-bg: #2a1f1a;
    --header-text: #f0e8e0;
    --bg-primary: #2a1f1a;
    --bg-secondary: #1f1612;
    --bg-card: #3d2b1f;
    --bg-card-hover: #4a3528;
    --bg-input: #3d2b1f;
    --text-primary: #f0e8e0;
    --text-secondary: #c0b0a0;
    --text-muted: #9a8a7a;
    --border-color: rgba(122, 74, 42, 0.25);
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
    --accent: #7a4a2a;
    --accent-hover: #8a5a3a;
    --nav-bg: rgba(18, 12, 10, 0.92);
    --body-bg: #2a1f1a;
    --body-text: #f0e8e0;
    --loading-bg: #1a0f0a;
    --loading-text: #f0e8e0;
    --like-color: #ff004f;
}

/* ============================================================
   ЭКРАН ЗАГРУЗКИ
   ============================================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loading-bg, #1a0f0a);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease, background 0.3s ease;
}

    .loading-screen.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 100px;
    height: 100px;
    animation: logoPulse 1.5s ease-in-out infinite;
    stroke: var(--accent, #7a4a2a);
    transition: stroke 0.3s ease;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(168, 125, 106, 0.2);
    border-top-color: var(--accent, #7a4a2a);
    border-radius: 50%;
    margin: 25px auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--loading-text, #f0e8e0);
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

/* ============================================================
   ФОНОВЫЕ ЭФФЕКТЫ
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 0% 50%, rgba(20, 14, 10, 0.50) 0%, transparent 35%), radial-gradient(ellipse at 100% 50%, rgba(20, 14, 10, 0.50) 0%, transparent 35%), radial-gradient(ellipse at 50% 100%, rgba(20, 14, 10, 0.30) 0%, transparent 25%), radial-gradient(ellipse at 50% 0%, rgba(20, 14, 10, 0.20) 0%, transparent 25%);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(122, 74, 42, 0.04) 60px, rgba(122, 74, 42, 0.04) 61px), repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(122, 74, 42, 0.04) 60px, rgba(122, 74, 42, 0.04) 61px);
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(12px, 12px);
    }
}

/* ============================================================
   СКРОЛЛБАР
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary, #2a1f1a);
}

::-webkit-scrollbar-thumb {
    background: var(--accent, #7a4a2a);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent-hover, #8d5a3a);
    }

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
nav {
    background: var(--nav-bg, rgba(18, 12, 10, 0.92));
    backdrop-filter: blur(20px);
    padding: 0 20px;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px !important;
    min-height: 64px !important;
    display: flex;
    align-items: center;
    width: 100%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px !important;
    min-height: 64px !important;
    gap: 10px;
    padding: 0 10px;
}

/* ===== ЛОГОТИП ===== */
nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--header-text, #f0e8e0);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    nav .logo:hover {
        transform: scale(1.02);
    }

    nav .logo .logo-icon svg {
        width: 36px;
        height: 36px;
        fill: none;
        stroke: var(--header-text, #f0e8e0);
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    nav .logo .logo-text {
        font-size: 24px;
        font-weight: 700;
        color: var(--header-text, #f0e8e0);
    }

/* ===== КНОПКИ НАВИГАЦИИ ===== */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary, #c0b0a0);
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    height: 40px;
}

    .nav-btn:hover {
        background: rgba(122, 74, 42, 0.15);
        border-color: var(--border-color);
        color: var(--text-primary, #ffffff);
        transform: translateY(-2px);
    }

    .nav-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        stroke: currentColor;
    }

.nav-btn-text {
    font-size: 13px;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

.admin-link {
    background: rgba(122, 74, 42, 0.2) !important;
    color: var(--header-text, #f0e8e0) !important;
    border-color: var(--border-color) !important;
}

    .admin-link:hover {
        background: var(--accent, #7a4a2a) !important;
        border-color: var(--accent-hover, #8d5a3a) !important;
    }

.stats-link {
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary, #c0b0a0) !important;
}

    .stats-link:hover {
        border-color: var(--accent, #7a4a2a) !important;
        color: var(--text-primary, #ffffff) !important;
    }

/* ===== ПРАВАЯ ЧАСТЬ ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМ ===== */
.theme-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #c0b0a0);
    padding: 0;
    font-size: 16px;
}

    .theme-btn:hover {
        background: rgba(122, 74, 42, 0.15);
        border-color: var(--accent, #7a4a2a);
        transform: scale(1.08);
    }

    .theme-btn.active {
        background: rgba(122, 74, 42, 0.3);
        border-color: var(--accent, #7a4a2a);
        color: var(--text-primary, #f0e8e0);
    }

/* ===== КОЛОКОЛЬЧИК ===== */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
}

    .notification-bell a {
        display: flex;
        align-items: center;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.2s ease;
        color: var(--header-text, #f0e8e0);
        text-decoration: none;
    }

        .notification-bell a:hover {
            background: rgba(122, 74, 42, 0.15);
        }

    .notification-bell svg {
        width: 22px;
        height: 22px;
        stroke: var(--text-secondary, #c0b0a0);
        fill: none;
    }

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #c0392b;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--header-text, #f0e8e0);
    cursor: pointer;
    transition: all 0.2s;
}

    .mobile-menu-btn:hover {
        background: rgba(122, 74, 42, 0.15);
    }

    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
    }

/* ===== ПОИСК ===== */
.search-wrapper {
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
}

#search-input {
    padding: 7px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary, #f0e8e0);
    width: 170px;
    transition: all 0.3s ease;
    font-size: 13px;
    height: 38px;
}

    #search-input:focus {
        background: rgba(255, 255, 255, 0.07);
        width: 220px;
        outline: none;
        border-color: var(--accent, #7a4a2a);
        box-shadow: 0 0 20px rgba(122, 74, 42, 0.08);
    }

    #search-input::placeholder {
        color: var(--text-muted, #9a8a7a);
    }

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #1f1612);
    border-radius: 12px;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 6px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

    #search-results div {
        padding: 10px 16px;
        border-bottom: 1px solid var(--border-color);
    }

        #search-results div:last-child {
            border-bottom: none;
        }

    #search-results a {
        color: var(--text-secondary, #c0b0a0);
        text-decoration: none;
        display: block;
        font-weight: 500;
    }

        #search-results a:hover {
            color: var(--text-primary, #ffffff);
        }

    #search-results div:hover {
        background: rgba(122, 74, 42, 0.12);
    }

/* ===== МЕНЮ ИНДЕКСАЦИИ ===== */
.index-menu {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 500;
}

.index-menu-toggle {
    background: var(--bg-card, rgba(61, 43, 31, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--text-primary, #f0e8e0);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

    .index-menu-toggle:hover {
        background: rgba(122, 74, 42, 0.3);
        transform: translateY(-2px);
    }

    .index-menu-toggle svg {
        width: 20px;
        height: 20px;
    }

.index-menu-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg-card, rgba(61, 43, 31, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 6px;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
}

    .index-menu-content.active {
        display: flex;
    }

.index-btn {
    background: rgba(122, 74, 42, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary, #f0e8e0);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

    .index-btn:hover {
        background: rgba(122, 74, 42, 0.25);
        border-color: var(--accent, #7a4a2a);
        transform: translateX(-2px);
    }

/* ===== КРАСНАЯ ТОЧКА ===== */
.red-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== УВЕДОМЛЕНИЕ АДМИНА ===== */
.admin-notification {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
    flex-wrap: wrap;
}

    .admin-notification .red-dot {
        width: 12px;
        height: 12px;
        background: #ff0000;
        border-radius: 50%;
        display: inline-block;
        animation: blink 1s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* ===== КНОПКА GOOGLE ===== */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-decoration: none;
}

    .google-btn:hover {
        background: #f5f5f5;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .google-btn svg {
        width: 20px;
        height: 20px;
    }

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border-color);
    }

    .divider span {
        padding: 0 15px;
        color: var(--text-muted, #9a8a7a);
        font-size: 14px;
    }

/* ============================================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================================ */
main {
    padding: 32px 28px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== НОВЫЙ ДИЗАЙН "ВСЕ ПОСТЫ" ===== */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 10px;
    gap: 0;
}

.feed-divider-left {
    flex: 1;
    height: 1px;
    max-width: 200px;
    background: linear-gradient(90deg, transparent, var(--border-color));
}

.feed-divider-right {
    flex: 1;
    height: 1px;
    max-width: 200px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.feed-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}

    .feed-title-wrapper h2 {
        font-size: 16px;
        font-weight: 400;
        font-style: italic;
        color: var(--text-secondary, #c0b0a0);
        letter-spacing: 2px;
        font-family: 'Inter', sans-serif;
        margin: 0;
        text-transform: lowercase;
    }

/* ===== ЛЕНТА ===== */
.feed-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.feed-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== КАРТОЧКИ ЛЕНТЫ ===== */
.feed-card {
    background: var(--bg-card, rgba(61, 43, 31, 0.3));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .feed-card:hover {
        transform: translateY(-3px);
        border-color: var(--accent, rgba(122, 74, 42, 0.3));
        box-shadow: var(--shadow);
        background: var(--bg-card-hover, rgba(61, 43, 31, 0.5));
    }

.feed-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.feed-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feed-card:hover .feed-card-image {
    transform: scale(1.05);
}

.feed-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.feed-card-content {
    padding: 18px 20px;
}

.feed-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.feed-author-info {
    display: flex;
    flex-direction: column;
}

.feed-author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #f0e8e0);
}

.feed-time {
    font-size: 12px;
    color: var(--text-muted, #9a8a7a);
}

.feed-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

    .feed-card-title a {
        color: var(--text-primary, #ffffff);
        text-decoration: none;
        transition: color 0.2s;
    }

        .feed-card-title a:hover {
            color: var(--accent-hover, #d4a080);
        }

.feed-card-text {
    color: var(--text-secondary, #c0b0a0);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.feed-stats {
    display: flex;
    gap: 16px;
}

.feed-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted, #9a8a7a);
}

    .feed-stat svg {
        opacity: 0.5;
    }

.feed-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(122, 74, 42, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-secondary, #d0c0b0);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

    .feed-read-more:hover {
        background: rgba(122, 74, 42, 0.25);
        color: var(--text-primary, #ffffff);
    }

/* ============================================================
   ЛАЙК ПОВЕРХ ТЕКСТА (В ПРАВОМ НИЖНЕМ УГЛУ)
   ============================================================ */
.question-body-wrapper {
    position: relative;
    margin: 14px 0;
}

.question-body {
    padding: 15px;
    background: rgba(61, 43, 31, 0.25);
    border-radius: 8px;
    line-height: 1.8;
    font-size: 16px;
    white-space: pre-wrap;
    border-left: 3px solid var(--accent, #7a4a2a);
    min-height: 80px;
}

.like-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 5;
}

.like-btn-tiktok {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.2s ease;
    color: var(--text-secondary, #c0b0a0);
}

    .like-btn-tiktok:hover {
        transform: scale(1.05);
        background: rgba(0, 0, 0, 0.6);
    }

    .like-btn-tiktok:active {
        transform: scale(0.85);
    }

.like-icon-tiktok {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    fill: none;
    transition: all 0.3s ease;
}

    .like-icon-tiktok .like-heart {
        fill: none;
        transition: all 0.3s ease;
    }

.like-btn-tiktok.liked .like-icon-tiktok {
    stroke: var(--like-color, #ff004f);
}

    .like-btn-tiktok.liked .like-icon-tiktok .like-heart {
        fill: var(--like-color, #ff004f);
        stroke: var(--like-color, #ff004f);
    }

.like-btn-tiktok.liked .like-count-tiktok {
    color: var(--like-color, #ff004f);
}

.like-count-tiktok {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

/* ============================================================
   УВЕДОМЛЕНИЯ ПЛАНИРОВЩИКА
   ============================================================ */
.admin-scheduled-notification {
    background: rgba(61, 43, 31, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-primary, #f0e8e0);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(0.8);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.scheduled-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

    .scheduled-item:hover {
        background: rgba(255,255,255,0.06);
    }

.scheduled-time {
    color: #e74c3c;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.scheduled-title {
    color: var(--text-primary, #f0e8e0);
    font-weight: 500;
}

.scheduled-author {
    color: var(--text-secondary, #c0b0a0);
    font-size: 13px;
}

.scheduled-date {
    color: var(--text-muted, #9a8a7a);
    font-size: 12px;
    margin-left: auto;
}

/* ============================================================
   ЗАГОЛОВКИ
   ============================================================ */
.page-header {
    margin-bottom: 26px;
}

    .page-header h1 {
        font-size: 28px;
        font-weight: 800;
        color: var(--text-primary, #ffffff);
        margin-bottom: 2px;
    }

        .page-header h1::before {
            content: '';
            display: inline-block;
            width: 5px;
            height: 28px;
            background: var(--accent, #7a4a2a);
            border-radius: 4px;
            margin-right: 14px;
            vertical-align: middle;
        }

    .page-header h2 {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-primary, #ffffff);
        margin-bottom: 2px;
    }

        .page-header h2::before {
            content: '◆ ';
            color: var(--accent, #7a4a2a);
            font-size: 16px;
        }

.subtitle {
    color: var(--text-secondary, #c0b0a0);
    font-size: 15px;
    margin-top: -4px;
}

/* ============================================================
   КАРТОЧКИ ПОСТОВ
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.post-card {
    background: var(--bg-card, rgba(61, 43, 31, 0.40));
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .post-card:hover {
        transform: translateY(-4px);
        border-color: var(--accent, rgba(122, 74, 42, 0.35));
        box-shadow: var(--shadow);
    }

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

    .post-card-title a {
        color: var(--text-primary, #ffffff);
        text-decoration: none;
        transition: color 0.2s;
    }

        .post-card-title a:hover {
            color: var(--accent-hover, #d4a080);
        }

.post-card-body {
    color: var(--text-secondary, #c0b0a0);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    background: rgba(61, 43, 31, 0.2);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 2px solid var(--accent, rgba(122, 74, 42, 0.3));
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary, #c0b0a0);
}

.post-card-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary, #c0b0a0);
}

/* ============================================================
   СПИСОК ПОСТОВ
   ============================================================ */
.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    background: var(--bg-card, rgba(61, 43, 31, 0.40));
    backdrop-filter: blur(5px);
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
}

    .post-item:hover {
        transform: translateY(-3px);
        border-color: var(--accent, rgba(122, 74, 42, 0.30));
        background: var(--bg-card-hover, rgba(61, 43, 31, 0.55));
        box-shadow: var(--shadow);
    }

.post-main {
    flex: 1;
    min-width: 180px;
}

.post-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
}

    .post-title:hover {
        color: var(--accent-hover, #d4a080);
    }

.post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary, #c0b0a0);
    margin-top: 4px;
    flex-wrap: wrap;
}

.post-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
   АВАТАРЫ
   ============================================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent, #7a4a2a);
}

/* ============================================================
   БЭЙДЖИ
   ============================================================ */
.badge {
    padding: 2px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.badge-warning {
    background: rgba(254, 243, 199, 0.12);
    color: #f0d080;
}

.badge-success {
    background: rgba(209, 250, 229, 0.08);
    color: #7dcea0;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: rgba(122, 74, 42, 0.20);
    color: var(--text-secondary, #d0c0b0);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    gap: 8px;
}

    .btn-primary:hover {
        background: var(--accent, #7a4a2a);
        color: var(--text-primary, #ffffff);
        border-color: var(--accent-hover, #8d5a3a);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(122, 74, 42, 0.20);
    }

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-edit {
    padding: 6px 14px;
    background: rgba(122, 74, 42, 0.20);
    color: var(--text-secondary, #d0c0b0);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
}

    .btn-edit:hover {
        background: var(--accent, #7a4a2a);
        color: var(--text-primary, #ffffff);
    }

    .btn-edit svg {
        width: 14px;
        height: 14px;
    }

.btn-delete {
    padding: 6px 14px;
    background: rgba(192, 57, 43, 0.08);
    color: #e74c3c;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    cursor: pointer;
    min-height: 34px;
}

    .btn-delete:hover {
        background: rgba(192, 57, 43, 0.20);
    }

    .btn-delete svg {
        width: 14px;
        height: 14px;
    }

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-height: 30px;
}

.btn-danger {
    background: #c0392b;
    color: white;
}

    .btn-danger:hover {
        background: #922b21;
    }

.btn-info {
    background: #2c3e50;
    color: white;
}

    .btn-info:hover {
        background: #1a2a36;
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 43, 31, 0.3);
    color: var(--text-secondary, #c0b0a0);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    min-height: 44px;
    gap: 8px;
}

    .btn-secondary:hover {
        background: rgba(122, 74, 42, 0.15);
        color: var(--text-primary, #ffffff);
    }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    width: 100%;
    padding: 40px 32px;
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

    .auth-logo svg {
        width: 60px;
        height: 60px;
    }

.auth-card h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 25px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary, #c0b0a0);
    font-size: 14px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-secondary, #c0b0a0);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        font-size: 14px;
        background: var(--bg-input, rgba(255, 255, 255, 0.04));
        color: var(--text-primary, #f0e8e0);
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--accent, #7a4a2a);
            outline: none;
            box-shadow: 0 0 0 3px rgba(122, 74, 42, 0.08);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted, #9a8a7a);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

.auth-card .hint {
    text-align: center;
    color: var(--text-muted, #9a8a7a);
    font-size: 12px;
    margin-top: 16px;
}

.auth-card .auth-link {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted, #9a8a7a);
    font-size: 14px;
}

    .auth-card .auth-link a {
        color: var(--accent-hover, #d4a080);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-card .auth-link a:hover {
            text-decoration: underline;
        }

/* ============================================================
   СТРАНИЦА СОЗДАНИЯ ПОСТА
   ============================================================ */
.ask-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 28px 32px;
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

    .ask-container h2 {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-primary, #ffffff);
        margin-bottom: 4px;
    }

    .ask-container .subtitle {
        color: var(--text-secondary, #c0b0a0);
        font-size: 14px;
        margin-bottom: 20px;
    }

    .ask-container .form-group {
        margin-bottom: 18px;
    }

        .ask-container .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary, #c0b0a0);
            margin-bottom: 6px;
        }

    .ask-container input[type="text"],
    .ask-container textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        font-size: 15px;
        background: var(--bg-input, rgba(255, 255, 255, 0.04));
        color: var(--text-primary, #f0e8e0);
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
        box-sizing: border-box;
    }

        .ask-container input[type="text"]:focus,
        .ask-container textarea:focus {
            border-color: var(--accent, #7a4a2a);
            outline: none;
            box-shadow: 0 0 0 3px rgba(122, 74, 42, 0.06);
        }

    .ask-container textarea {
        resize: vertical;
        min-height: 150px;
        line-height: 1.6;
    }

    .ask-container .file-upload {
        margin: 14px 0;
    }

        .ask-container .file-upload label {
            display: block;
            font-weight: 500;
            margin-bottom: 4px;
            color: var(--text-secondary, #c0b0a0);
        }

        .ask-container .file-upload input[type="file"] {
            padding: 10px;
            border: 1px dashed var(--border-color);
            border-radius: 8px;
            width: 100%;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-primary, #f0e8e0);
        }

    .ask-container .hint {
        text-align: center;
        color: var(--text-muted, #9a8a7a);
        font-size: 12px;
        margin-top: 12px;
    }

/* ============================================================
   СТРАНИЦА ВОПРОСА
   ============================================================ */
.question-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 24px 28px;
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.question-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

    .question-header h1 {
        font-size: 24px;
        color: var(--text-primary, #ffffff);
        margin-bottom: 8px;
    }

.question-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-secondary, #c0b0a0);
    font-size: 13px;
}

.question-body {
    padding: 15px;
    background: rgba(61, 43, 31, 0.25);
    border-radius: 8px;
    line-height: 1.8;
    font-size: 16px;
    white-space: pre-wrap;
    margin: 14px 0;
    border-left: 3px solid var(--accent, #7a4a2a);
}

.answers-title {
    margin: 28px 0 14px;
    font-size: 19px;
    color: var(--text-primary, #ffffff);
}

.answer-item {
    background: rgba(61, 43, 31, 0.25);
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 10px;
    border-left: 3px solid var(--accent, #7a4a2a);
}

    .answer-item:hover {
        background: rgba(61, 43, 31, 0.35);
    }

.answer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-secondary, #c0b0a0);
    font-size: 12px;
}

.answer-body {
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--text-primary, #e0d8d0);
    margin-top: 4px;
    background: rgba(61, 43, 31, 0.15);
    padding: 8px 14px;
    border-radius: 6px;
}

.answer-form {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(61, 43, 31, 0.20);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

    .answer-form h4 {
        font-size: 16px;
        color: var(--text-primary, #ffffff);
        margin-bottom: 10px;
    }

    .answer-form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 14px;
        resize: vertical;
        min-height: 100px;
        background: rgba(255, 255, 255, 0.02);
        color: var(--text-primary, #f0e8e0);
        font-family: 'Inter', sans-serif;
    }

        .answer-form textarea:focus {
            border-color: var(--accent, #7a4a2a);
            outline: none;
        }

.login-prompt {
    text-align: center;
    padding: 18px;
    background: rgba(61, 43, 31, 0.20);
    border-radius: 8px;
    margin-bottom: 20px;
}

    .login-prompt a {
        color: var(--accent-hover, #d4a080);
        text-decoration: none;
        font-weight: 500;
    }

        .login-prompt a:hover {
            text-decoration: underline;
        }

.post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

    .post-images img {
        max-width: 150px;
        max-height: 150px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

/* ============================================================
   ЛАЙКИ ДЛЯ КОММЕНТАРИЕВ
   ============================================================ */
.comment-like {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-muted, #9a8a7a);
}

    .comment-like-btn:hover {
        background: rgba(122, 74, 42, 0.08);
        transform: scale(1.05);
    }

    .comment-like-btn:active {
        transform: scale(0.85);
    }

.comment-like-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted, #9a8a7a);
    fill: none;
    transition: all 0.3s ease;
}

    .comment-like-icon .comment-heart {
        fill: none;
        transition: all 0.3s ease;
    }

.comment-like-btn.liked .comment-like-icon {
    stroke: var(--like-color, #ff004f);
}

    .comment-like-btn.liked .comment-like-icon .comment-heart {
        fill: var(--like-color, #ff004f);
        stroke: var(--like-color, #ff004f);
    }

.comment-like-btn.liked .comment-like-count {
    color: var(--like-color, #ff004f);
}

.comment-like-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #9a8a7a);
    transition: color 0.3s ease;
}

/* ============================================================
   УВЕДОМЛЕНИЯ
   ============================================================ */
.notification-item {
    background: rgba(61, 43, 31, 0.25);
    padding: 12px 18px;
    margin-bottom: 6px;
    border-radius: 8px;
    border-left: 3px solid var(--accent, #7a4a2a);
}

    .notification-item:hover {
        background: rgba(61, 43, 31, 0.35);
    }

    .notification-item a {
        text-decoration: none;
        color: var(--text-primary, #e0d8d0);
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }

.notification-time {
    color: var(--text-secondary, #c0b0a0);
    font-size: 12px;
}

.notification-message {
    background: rgba(61, 43, 31, 0.10);
    padding: 4px 12px;
    border-radius: 4px;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 18px;
    border-radius: 8px;
    background: rgba(61, 43, 31, 0.40);
    border-left: 3px solid var(--accent, #7a4a2a);
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary, #f0e8e0);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   ПРОФИЛЬ
   ============================================================ */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    display: flex;
    gap: 40px;
    padding: 30px;
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

    .profile-info h2 {
        font-size: 24px;
        color: var(--text-primary, #ffffff);
        margin-bottom: 12px;
    }

    .profile-info p {
        margin: 6px 0;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 6px;
        color: var(--text-primary, #e0d8d0);
    }

.avatar-upload {
    margin: 18px 0;
}

    .avatar-upload label {
        display: block;
        font-weight: 500;
        margin-bottom: 4px;
        color: var(--text-secondary, #c0b0a0);
    }

    .avatar-upload input {
        padding: 8px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        width: 100%;
        background: rgba(255, 255, 255, 0.02);
        color: var(--text-primary, #f0e8e0);
    }

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
}

.stat-card {
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

    .stat-card h3 {
        font-size: 12px;
        color: var(--text-secondary, #c0b0a0);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .stat-card p {
        font-size: 28px;
        font-weight: 800;
        color: var(--text-primary, #ffffff);
        margin-top: 2px;
    }

.chart-container {
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 14px 0;
}

.chart-row {
    display: flex;
    align-items: center;
    margin: 3px 0;
    gap: 10px;
}

.chart-label {
    width: 150px;
    font-size: 11px;
    color: var(--text-secondary, #c0b0a0);
    flex-shrink: 0;
}

.chart-bar {
    background: linear-gradient(90deg, rgba(122, 74, 42, 0.30), var(--accent, #7a4a2a));
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: width 0.8s ease;
    min-width: 24px;
}

    .chart-bar span {
        margin-left: 8px;
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
    }

.stat-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .stat-table th,
    .stat-table td {
        padding: 10px 14px;
        border: 1px solid var(--border-color);
        text-align: left;
    }

    .stat-table th {
        background: rgba(61, 43, 31, 0.20);
        font-weight: 600;
        color: var(--text-primary, #ffffff);
    }

    .stat-table a {
        color: var(--accent-hover, #d4a080);
        text-decoration: none;
    }

        .stat-table a:hover {
            text-decoration: underline;
        }

    .stat-table tr:hover {
        background: rgba(61, 43, 31, 0.15);
    }

/* ============================================================
   АДМИН
   ============================================================ */
.admin-list {
    list-style: none;
    padding: 0;
}

    .admin-list li {
        background: var(--bg-card, rgba(61, 43, 31, 0.25));
        padding: 10px 16px;
        margin-bottom: 6px;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

/* ============================================================
   ОШИБКИ И УСПЕХ
   ============================================================ */
.error-container {
    max-width: 480px;
    margin: 80px auto;
    padding: 36px 32px;
    background: var(--bg-card, rgba(61, 43, 31, 0.40));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    text-align: center;
    border-top: 4px solid var(--accent, #7a4a2a);
}

.error-icon {
    font-size: 60px;
    margin-bottom: 12px;
}

.error-title {
    font-size: 24px;
    font-weight: 800;
    color: #e74c3c;
    margin-bottom: 6px;
}

.error-details {
    color: var(--text-secondary, #c0b0a0);
    font-size: 15px;
    margin-bottom: 24px;
}

.success-container {
    max-width: 480px;
    margin: 80px auto;
    padding: 36px 32px;
    background: var(--bg-card, rgba(61, 43, 31, 0.35));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    text-align: center;
    border-top: 4px solid var(--accent, #7a4a2a);
}

.success-icon {
    font-size: 60px;
    margin-bottom: 12px;
}

.success-container h1 {
    font-size: 24px;
    color: var(--text-primary, #ffffff);
    margin-bottom: 4px;
}

.success-container p {
    color: var(--text-secondary, #c0b0a0);
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: rgba(61, 43, 31, 0.25);
    border-radius: 12px;
}

    .empty-state p {
        font-size: 16px;
        color: var(--text-secondary, #c0b0a0);
        margin-bottom: 16px;
    }

/* ============================================================
   INPUT FILE
   ============================================================ */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: rgba(122, 74, 42, 0.15);
    color: var(--text-secondary, #d0c0b0);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

    input[type="file"]::-webkit-file-upload-button,
    input[type="file"]::file-selector-button {
        padding: 8px 20px;
        background: rgba(122, 74, 42, 0.25);
        color: var(--text-secondary, #d0c0b0);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.3s ease;
        margin-right: 12px;
        font-family: 'Inter', sans-serif;
    }

        input[type="file"]::-webkit-file-upload-button:hover,
        input[type="file"]::file-selector-button:hover {
            background: var(--accent, #7a4a2a);
            color: #ffffff;
            border-color: var(--accent-hover, #8d5a3a);
            transform: translateY(-1px);
        }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: nowrap;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .nav-btn-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
    }

    .nav-container {
        justify-content: space-between;
        flex-wrap: nowrap;
        height: auto;
        min-height: 64px;
        padding: 0 15px;
    }

    nav {
        height: auto !important;
        min-height: 64px !important;
        padding: 8px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg, rgba(18, 12, 10, 0.98));
        backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--border-color);
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        z-index: 999;
        box-shadow: var(--shadow);
        animation: slideDown 0.2s ease;
    }

        .nav-links.active {
            display: flex;
        }

    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 10px;
        height: auto;
    }

    .nav-btn-text {
        font-size: 15px;
    }

    .nav-right {
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
        justify-content: flex-start;
    }

        .nav-right .nav-btn {
            flex: 1;
            justify-content: center;
            padding: 10px;
            min-width: auto;
        }

    .search-wrapper {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
    }

    #search-input {
        width: 100%;
        padding: 10px 16px;
        font-size: 15px;
        height: 42px;
    }

        #search-input:focus {
            width: 100%;
        }

    .notification-bell {
        display: flex;
        align-items: center;
    }

        .notification-bell a {
            padding: 10px;
        }

    .theme-switcher {
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
    }

    .nav-links .nav-btn svg {
        width: 20px;
        height: 20px;
    }

    main {
        padding: 14px;
    }

    .feed-title-wrapper h2 {
        font-size: 22px;
    }

    .feed-card-content {
        padding: 14px 16px;
    }

    .feed-card-title {
        font-size: 16px;
    }

    .auth-container {
        margin: 20px auto;
        padding: 0 14px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .ask-container, .question-container {
        padding: 20px;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-label {
        width: 100px;
        font-size: 10px;
    }

    .index-menu {
        bottom: 15px;
        right: 15px;
    }

    .index-menu-toggle {
        padding: 10px 14px;
        font-size: 12px;
    }

    .admin-notification {
        margin: 10px 15px;
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 6px 0;
        min-height: 56px !important;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon svg {
        width: 28px;
        height: 28px;
    }

    .nav-container {
        padding: 0 10px;
        min-height: 56px;
    }

    .feed-title-wrapper h2 {
        font-size: 18px;
    }

    .feed-divider-left, .feed-divider-right {
        max-width: 80px;
    }

    .feed-card-content {
        padding: 12px;
    }

    .feed-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .feed-read-more {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .feed-stats {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .post-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .loading-logo {
        width: 80px;
        height: 80px;
    }

    .loading-text {
        font-size: 16px;
    }

    .auth-card {
        padding: 20px 16px;
    }

        .auth-card h2 {
            font-size: 22px;
        }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 40px;
    }

    .google-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .admin-notification {
        margin: 10px 10px;
        padding: 8px 12px;
        font-size: 13px;
    }

        .admin-notification button {
            font-size: 12px;
            padding: 4px 10px;
        }
}
/* Нижнее меню */
.bottom-nav {
    padding: 8px 0 6px;
}

.bottom-nav-item {
    font-size: 11px;
    gap: 2px;
}

    .bottom-nav-item svg {
        width: 26px;
        height: 26px;
        stroke: var(--text-secondary);
        transition: stroke 0.2s;
    }

    .bottom-nav-item:hover svg {
        stroke: var(--text-primary);
    }

    .bottom-nav-item.active svg {
        stroke: var(--accent-hover);
    }
/* Карточка приветствия */
#welcome-card h1 {
    font-size: 28px;
}

#welcome-card .google-btn {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

    #welcome-card .google-btn:hover {
        background: #f5f5f5;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
/* Профиль */
.profile-enhanced .profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.profile-enhanced .stats-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.profile-enhanced .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 15px;
}

.profile-enhanced .post-card-mini {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

    .profile-enhanced .post-card-mini:hover {
        transform: scale(1.02);
    }

    .profile-enhanced .post-card-mini a {
        text-decoration: none;
        color: var(--text-primary);
    }

    .profile-enhanced .post-card-mini p {
        padding: 8px 10px;
        font-size: 14px;
        margin: 0;
    }
/* Модальные окна */
#storage-modal, #settings-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.storage-item {
    background: var(--bg-secondary);
}
/* Карта */
.map-container {
    max-width: 900px;
    margin: 0 auto;
}

.map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

    .map-controls input {
        flex: 1;
    }

/* Стили для рекомендаций */
.recommendations-header {
    margin-bottom: 20px;
}

.search-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.2s;
}

    .filter-btn:hover {
        background: var(--accent);
        color: white;
    }

#filters-panel {
    animation: slideDown 0.3s ease;
}

.filter-group {
    margin-bottom: 12px;
}

    .filter-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 4px;
        color: var(--text-secondary);
    }

.hashtag-suggestion:hover {
    background: var(--accent) !important;
    color: white;
}

.feed-category, .feed-city {
    background: rgba(122,74,42,0.15);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Профиль */
.profile-display-name {
    margin-bottom: 10px;
}

    .profile-display-name h1 {
        font-size: 32px;
        letter-spacing: 0.5px;
    }

.profile-card-container {
    transition: background 0.3s;
}

.profile-tabs {
    margin-top: 10px;
}

.tab-btn.active {
    border-bottom: 3px solid var(--accent);
    color: var(--text-primary);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.storage-item {
    background: var(--bg-secondary);
}

/* Нижнее меню (иконки) */
.bottom-nav-item svg {
    stroke: var(--text-secondary);
    transition: stroke 0.2s;
}

.bottom-nav-item:hover svg {
    stroke: var(--text-primary);
}

.bottom-nav-item.active svg {
    stroke: var(--accent-hover);
}
/* Стили для точек-индикаторов */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid var(--border-color);
    transition: background 0.3s;
}

    .dot.active {
        background: var(--accent);
        border-color: var(--accent);
    }

.profile-tab-content {
    background: var(--bg-card);
    border-radius: 0 0 16px 16px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-top: none;
}
/* Точки-индикаторы */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
    cursor: pointer;
}

    .dot.active {
        background: var(--accent);
        border-color: var(--accent);
    }

/* Блок под карточкой профиля */
.profile-tab-content {
    background: var(--bg-card);
    border-radius: 0 0 16px 16px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-top: none;
}

/* Модальные окна с отступом сверху */
#settings-modal, #subscriptions-modal {
    padding-top: 80px;
}
/* Стили для фильтров */
.filter-group {
    margin-bottom: 12px;
}

    .filter-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 4px;
        color: var(--text-secondary);
    }

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.2s;
}

    .filter-btn:hover {
        background: var(--accent);
        color: white;
    }

#filters-panel {
    animation: slideDown 0.3s ease;
}

.hashtag-suggestion:hover {
    background: var(--accent) !important;
    color: white;
}

.feed-category, .feed-city {
    background: rgba(122,74,42,0.15);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-right: 4px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.feed-avatar {
    cursor: pointer;
    transition: transform 0.2s;
}

    .feed-avatar:hover {
        transform: scale(1.1);
    }

.avatar-large {
    cursor: pointer;
    transition: transform 0.2s;
}

    .avatar-large:hover {
        transform: scale(1.05);
    }