/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2c3e50;
    background-color: #f8f9fa;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #3498db;
    border-radius: 1px;
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Page Title Section */
.page-title {
    text-align: center;
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: -2rem -20px 3rem;
    border-radius: 0 0 24px 24px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.post-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.25rem;
}

.post-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.post-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.view-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.view-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.95rem;
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #5dade2;
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-link {
        padding: 0.4rem 0.8rem;
    }
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .page-title {
        margin: -2rem -40px 3rem;
        padding: 4rem 0 5rem;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .page-subtitle {
        font-size: 1.3rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .post-image {
        height: 180px;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .main-title {
        font-size: 4rem;
    }
    
    .page-subtitle {
        font-size: 1.4rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .post-description {
        font-size: 0.9rem;
    }
    
    .post-image {
        height: 200px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .page-title {
        padding: 5rem 0 6rem;
    }
    
    .main-title {
        font-size: 4.5rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
.view-btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .post-card {
        border: 2px solid #000;
    }
    
    .view-btn {
        background: #000;
        color: #fff;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .post-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .view-btn {
        display: none;
    }
}

