/* style.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 42px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #1a1a1a;
}

.tab-btn.active {
    color: #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
}

/* Topic Filter Navigation */
.topic-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-content {
    max-width: 650px;
    margin: 40px auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    padding: 28px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.read-more:hover {
    transform: translateX(4px);
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.social-links a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 32px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .about-content p {
        font-size: 16px;
    }

    .topic-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}

