/* assets/css/member.css */

.member-layout {
    min-height: 100vh;
    background: var(--black);
}

/* Header */
.member-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand h1 {
    font-size: 24px;
    font-weight: 700;
}

.header-brand a {
    color: var(--white);
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--card);
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    color: var(--gray);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

/* Main Content */
.member-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 700;
}

/* Live Alert */
.live-alert {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.live-info {
    flex: 1;
}

.live-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.live-info p {
    color: var(--gray);
}

/* Stats Grid */
.member-main .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.member-main .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.member-main .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.member-main .stat-label {
    color: var(--gray);
    font-size: 13px;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--white);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 16px;
}

.post-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.post-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 12px;
    color: var(--dark-gray);
}

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.notification-item.unread {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.02);
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    margin-bottom: 4px;
}

.notification-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 4px;
}

.small {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav a:not(.btn) {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .live-alert {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .member-main .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .notification-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}