/* === ЗМІННІ КОЛЬОРІВ (Flux MarketPlace Theme) === */
:root {
    --bg-main: #0b0c10;       /* Дуже темний фон (як на скрині маркетплейсу) */
    --bg-card: #15161b;       /* Колір масивних карток */
    --bg-hover: #1e1f26;      /* Колір при наведенні */
    --text-main: #ffffff;     /* Основний білий текст */
    --text-muted: #8a8d93;    /* Сірий текст для часу/тегів */
    --flux-purple: #6a00ff;   /* Твій фірмовий яскраво-фіолетовий */
    --flux-cyan: #06b6d4;     /* Блакитний для галочок/іконок */
    --border-subtle: rgba(255, 255, 255, 0.05); /* Ледь помітні розділювачі */
}

/* === БАЗОВІ НАЛАШТУВАННЯ === */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif, system-ui;
    margin: 0;
    padding: 0;
}

.main-content {
    min-height: 100vh;
    padding: 100px 20px 40px; /* Відступ зверху для шапки */
}

/* === МАКЕТ СТРІЧКИ (3 Колонки) === */
.feed-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px; /* Ліве меню, Стрічка, Правий сайдбар */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; /* Щоб колонки не розтягувалися по висоті */
}

/* === ЛІВА КОЛОНКА (Навігація) === */
.sidebar-left {
    position: sticky;
    top: 100px;
}

.social-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.social-nav a:hover {
    background-color: var(--bg-hover);
    color: var(--flux-purple); /* Твій фірмовий колір */
}

.social-nav a.active {
    background-color: var(--bg-card);
    color: var(--flux-cyan);
    border: 1px solid var(--border-subtle);
}

.social-nav a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.marketplace-link {
    margin-top: 15px;
    border: 1px solid var(--border-subtle);
}

.marketplace-link:hover {
    border-color: var(--flux-purple);
    background-color: rgba(106, 0, 255, 0.1);
}

/* === КАРТКИ (Загальний стиль) === */
.social-card {
    background-color: var(--bg-card);
    border-radius: 16px; /* Заокруглення як на скрині */
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Аватарки */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* === СТВОРЕННЯ ПОСТА === */
.create-post-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.create-post-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

#postInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    resize: none;
    min-height: 60px;
    outline: none;
    font-family: inherit;
    padding-top: 12px;
}

#postInput::placeholder {
    color: var(--text-muted);
}

.create-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 15px;
}

.action-icons button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 15px;
    transition: 0.2s;
}

.action-icons button:hover {
    color: var(--flux-cyan);
}

.btn-publish {
    background-color: var(--flux-purple);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 0, 255, 0.4);
}

.btn-publish:hover {
    background-color: #832bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 0, 255, 0.6);
}

/* === РОЗДІЛЮВАЧ === */
.feed-divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.feed-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-subtle);
    z-index: 1;
}

.feed-divider span {
    position: relative;
    background-color: var(--bg-main);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* === ПОСТИ В СТРІЧЦІ === */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-info strong {
    font-size: 1.05rem;
    color: var(--text-main);
}

.verified-badge {
    color: var(--flux-cyan);
    font-size: 0.9rem;
    margin-left: 4px;
}

.post-time {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.post-options {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.post-options:hover {
    color: var(--text-main);
}

.post-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* Прикріплений товар */
.post-attached-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-hover);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle);
}

.item-icon {
    width: 40px;
    height: 40px;
    background: rgba(106, 0, 255, 0.1);
    color: var(--flux-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.item-price {
    color: var(--flux-cyan);
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-buy-small {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-buy-small:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

/* Кнопки Лайк/Комент */
.post-footer {
    display: flex;
    gap: 25px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 15px;
}

.interaction-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.interaction-btn:hover {
    color: var(--flux-purple);
}

.interaction-btn span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* === ПРАВА КОЛОНКА (Сайдбар) === */
.feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Теги */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hashtag {
    background: var(--bg-hover);
    color: var(--flux-cyan);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.hashtag:hover {
    background: rgba(6, 182, 212, 0.15);
}

/* Топ продавці */
.top-seller-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.top-seller-item:last-child {
    margin-bottom: 0;
}

.seller-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seller-info strong {
    font-size: 0.95rem;
}

.seller-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-follow {
    background: transparent;
    border: 1px solid var(--flux-purple);
    color: var(--flux-purple);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-follow:hover {
    background: var(--flux-purple);
    color: white;
}

/* === АДАПТИВНІСТЬ === */
@media (max-width: 1024px) {
    .feed-layout {
        grid-template-columns: 240px 1fr; /* Ховаємо правий блок на планшетах */
    }
    .feed-sidebar { 
        display: none; 
    }
}

@media (max-width: 768px) {
    .feed-layout {
        grid-template-columns: 1fr; /* Залишаємо тільки стрічку на телефонах */
    }
    .sidebar-left { 
        display: none; /* Згодом додамо нижнє меню для телефонів */ 
    }
}