:root {
    --primary-dark: #003366;
    --primary-medium: #336699;
    --accent-green: #4CAF50;
    --accent-yellow: #FFEB3B;
    --neutral-light: #F8FAFC;
    --white: #FFFFFF;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --text-light: #9E9E9E;
    --border-color: #e2e8f0;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --transition: all 0.2s ease;
    --bg-pattern: radial-gradient(circle at 25% 25%, rgba(76, 175, 80, 0.03) 0%, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Main Container */
.main-wrapper {
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Posts Container */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Post Card */
.post {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid #f0f1f3;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--primary-medium));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.post:hover::before {
    transform: scaleX(1);
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #e8eaed;
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-details {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.author-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
}

.author-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.author-link:hover::after {
    width: 100%;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 13px;
    color: var(--text-light);
}

.post-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.visibility-indicator {
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visibility-public {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-green);
}

.visibility-college {
    background: rgba(255, 152, 0, 0.1);
    color: var(--accent-green);
}

/* Post Content */
.post-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--accent-green);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 15px;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--neutral-light);
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--accent-green);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f5f6f8;
}

.post-stats {
    display: flex;
    gap: 1.25rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 13px;
}

.stat-icon {
    font-size: 12px;
}

.read-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.read-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
    transform: translateX(2px);
}

.read-arrow {
    font-size: 11px;
    transition: var(--transition);
}

.read-link:hover .read-arrow {
    transform: translateX(3px);
}

/* Animations */
.post {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.post:nth-child(1) { animation-delay: 0.1s; }
.post:nth-child(2) { animation-delay: 0.2s; }
.post:nth-child(3) { animation-delay: 0.3s; }
.post:nth-child(4) { animation-delay: 0.4s; }
.post:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .post {
        padding: 1.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: var(--radius-sm);
    }

    .post-header {
        margin-bottom: 1.25rem;
    }

    .author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .post-title {
        font-size: 1.25rem;
    }

    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .post-stats {
        justify-content: center;
    }

    .read-link {
        justify-content: center;
    }

    .posts-container {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        padding: 1.5rem 0.75rem;
    }

    .post {
        padding: 1.25rem;
    }
}

/* ... (keep all existing styles) ... */

/* Simplified Header (without author) */
.post-header-simple {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f5f6f8;
}

/* Status Badge */
.status-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
/* Published - Deep Blue */
.status-published {
    background: var(--accent-green);
    color: #ffffff;
}

/* Draft - Bright Yellow */
.status-draft {
    background: var(--accent-yellow);
    color: hsl(0, 79%, 5%);
}


/* Draft Posts - Slightly Muted */
.post:has(.status-draft) {
    opacity: 0.92;
}

.post:has(.status-draft) .post-title a {
    color: var(--text-secondary);
}

.post:has(.status-draft):hover .post-title a {
    color: var(--primary-dark);
}

/* Mobile adjustments for status badge */
@media (max-width: 768px) {
    .status-badge {
        font-size: 10px;
        padding: 0.25rem 0.6rem;
    }
    
    .status-badge i {
        font-size: 10px;
    }
}


/* ========================================
   COMPACT POST CARD - Modern Design
   ======================================== */

.post-compact {
    padding: 1.25rem;
    border-left: 3px solid transparent;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-compact:not(:last-child) {
    border-bottom: 1px solid #f0f2f5;
}

.post-compact:hover {
    border-left-color: var(--accent-green);
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.02) 0%, transparent 100%);
    transform: translateX(3px);
}

.post-compact-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Title with icon */
.post-compact-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.post-compact-title::before {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.post-compact-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
}

.post-compact-title a:hover {
    color: var(--accent-green);
}

/* Excerpt with fade */
.post-compact-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 1.5rem;
}

/* Footer */
.post-compact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-left: 1.5rem;
}

.post-compact-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-compact-time {
    font-size: 0.8rem;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: #f3f4f6;
    border-radius: 4px;
}

.post-compact-time i {
    font-size: 0.75rem;
}

/* Stats with badges */
.post-compact-stats {
    display: flex;
    gap: 1rem;
}

.stat-compact {
    font-size: 0.8rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.stat-compact:hover {
    color: var(--accent-green);
}

.stat-compact i {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Status badge */
.post-compact .status-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
    .post-compact {
        padding: 1rem;
    }
    
    .post-compact-title {
        font-size: 0.95rem;
    }
    
    .post-compact-excerpt {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
    
    .post-compact-footer {
        padding-left: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-compact-stats {
        gap: 0.75rem;
    }
}
