/* ============================================================
   VinSnap — Community Feed Page
   Single-column feed, dark theme
   ============================================================ */

.community-feed-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem;
}

/* ── Header ──────────────────────────────────────────────── */

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.feed-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--dash-social-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ── Posts List ──────────────────────────────────────────── */

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Loading — Car Animation ─────────────────────────────── */

.feed-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 60vh;
    padding: 2rem;
    box-sizing: border-box;
}

.feed-car-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.feed-car-svg {
    width: 140px;
    height: 48px;
    animation: feed-car-bounce 1s ease-in-out infinite;
}

.feed-wheel {
    animation: feed-wheel-spin 0.5s linear infinite;
}

.feed-car-road {
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(34, 211, 166, 0.1176) 20%,
        rgba(34, 211, 166, 0.1764) 50%,
        rgba(34, 211, 166, 0.1176) 80%,
        transparent 100%
    );
    border-radius: 1px;
    animation: feed-road-pulse 1.5s ease-in-out infinite;
}

.feed-car-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(167, 139, 250, 0.8);
    letter-spacing: 0.05em;
    margin: 0;
}

@keyframes feed-car-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes feed-wheel-spin {
    to { transform: rotate(360deg); }
}

@keyframes feed-road-pulse {
    0%, 100% { opacity: 0.5; width: 140px; }
    50% { opacity: 1; width: 200px; }
}

/* ── Empty State ─────────────────────────────────────────── */

.feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.feed-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feed-empty h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feed-empty p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feed-empty .btn-primary {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #22D3A6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .community-feed-page {
        padding: 0.5rem;
        margin-bottom: 80px; /* clearance for mobile nav */
    }
}
