:root {
    --primary-dark: #003366;
    --primary-medium: #336699;
    --accent-green: #4CAF50;
    --accent-yellow: #FFEB3B;
    --accent-orange: #FF9800;
    --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;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    background: #fafbfc;
    background-image: var(--bg-pattern);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
}

.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-link  {
    margin: 0;
    transition: all 0.3s ease;
}

/* Main Container */
.main-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    min-height: 100vh;
}

/* Search Bar */
.search-container {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    background: var(--white);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e8eaed;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.search-box:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    padding: 0.25rem 0;
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Active Filter Tags */
.active-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.active-tag {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.active-tag:hover {
    background: var(--accent-green);
    color: var(--white);
    text-decoration: none;
}

.tag-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    opacity: 0.7;
}

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

.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 8px 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-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.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-orange);
}

/* 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);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #f0f1f3;
    box-shadow: var(--shadow-subtle);
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.page-link:hover {
    background: var(--neutral-light);
    color: var(--text-primary);
    text-decoration: none;
}

.page-link.current {
    background: var(--accent-green);
    color: var(--white);
    border-color: var(--accent-green);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid #f0f1f3;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-message {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 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;
    }

    .search-box {
        padding: 0.625rem 1.25rem;
    }

    .post {
        padding: 1.25rem;
    }

    .pagination {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .page-link {
        padding: 0.4rem 0.75rem;
        font-size: 12px;
    }
}

/* Smooth 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);
    }
}