/* === FEED PAGE === */

.feed-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    position: relative;
    z-index: 1;
}

/* Feed tabs */
.feed-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    width: fit-content;
}

.feed-tab {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-tab.active {
    background: linear-gradient(135deg, var(--primary), #0090cc);
    color: #fff;
    box-shadow: 0 2px 12px var(--primary-glow);
}

.feed-tab:hover:not(.active) {
    color: var(--text-primary);
}

/* Post cards */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-info {
    flex: 1;
}

.post-author-name {
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-author-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.post-author-name a:hover {
    color: var(--primary);
}

.post-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.post-menu {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-menu:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* Post text */
.post-text {
    padding: 0 20px 14px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Post media */
.post-media {
    position: relative;
    overflow: hidden;
    max-height: 500px;
}

.post-media img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.post-media-lock {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.post-media-lock .lock-btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), #e91e63);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-media-lock .lock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.post-media-lock .lock-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Post actions */
.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.post-action:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.post-action.liked {
    color: var(--accent);
}

.post-action.liked i {
    animation: heartPop 0.3s ease;
}

.post-action i {
    font-size: 0.9rem;
}

.post-action-spacer {
    flex: 1;
}

.post-action.tip-btn:hover {
    color: var(--gold);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Post comment preview */
.post-comment-preview {
    padding: 0 20px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-comment-preview strong {
    color: var(--text-secondary);
}

/* Feed load more */
.feed-load-more {
    text-align: center;
    padding: 10px 0 40px;
}

/* === SIDEBAR === */
.feed-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

/* Suggested creators */
.suggested-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggested-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggested-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.suggested-info {
    flex: 1;
    min-width: 0;
}

.suggested-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggested-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.suggested-name a:hover {
    color: var(--primary);
}

.suggested-handle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.suggested-follow {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #0090cc);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.suggested-follow:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px var(--primary-glow);
}

/* Trending tags */
.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trend-tag {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trend-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Reuse sidebar-card from creator.css */
.feed-sidebar .sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.feed-sidebar .sidebar-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* === NOTIFICATIONS DROPDOWN === */
.notif-wrap {
    position: relative;
}

.notif-bell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notif-bell:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-badge.hidden {
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: rgba(18, 18, 28, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.2s ease;
}

.notif-dropdown.hidden {
    display: none;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.notif-header h4 {
    font-size: 0.9rem;
    font-weight: 800;
}

.notif-mark-read {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.notif-mark-read:hover {
    opacity: 0.7;
}

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    transition: background 0.2s;
    cursor: pointer;
}

.notif-item:hover {
    background: var(--bg-glass);
}

.notif-item.unread {
    background: rgba(0, 180, 255, 0.04);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.notif-icon.post {
    background: rgba(0, 180, 255, 0.12);
    color: var(--primary);
}

.notif-icon.like {
    background: rgba(255, 61, 127, 0.12);
    color: var(--accent);
}

.notif-icon.msg {
    background: rgba(0, 200, 83, 0.12);
    color: #00c853;
}

.notif-icon.follow {
    background: rgba(255, 193, 7, 0.12);
    color: var(--gold);
}

.notif-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notif-text strong {
    color: var(--text-primary);
}

.notif-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 8px;
}

.notif-dot.read {
    opacity: 0;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .feed-layout {
        grid-template-columns: 1fr;
        padding: 80px 20px 40px;
    }

    .feed-sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .feed-tabs {
        width: 100%;
    }

    .feed-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .notif-dropdown {
        width: 300px;
        right: -40px;
    }
}
