/* Blog Styles - Responsive Design */

:root {
    --primary-green: #d6e6bb;
    --primary-light: #c0d99f;
    --accent-dark: #8fb03d;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: rgba(214, 230, 187, 0.2);
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(214, 230, 187, 0.4);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(none);
    background: transparent !important;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-dark);
}

.nav-menu a.highlight {
    color: var(--accent-dark);
    font-weight: 600;
}

.nav-menu a.highlight:hover {
    opacity: 0.8;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light)) !important;
    padding: 10px 20px !important;
    border-radius: 8px;
    color: var(--text-primary) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(214, 230, 187, 0.25);
    transition: var(--transition);
}

.btn-nav:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-green)) !important;
    box-shadow: 0 6px 16px rgba(214, 230, 187, 0.35) !important;
}

.nav-social {
    display: flex;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(214, 230, 187, 0.1);
    color: var(--accent-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(214, 230, 187, 0.25);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.social-link.discord:hover {
    background: linear-gradient(135deg, #7289da, #5865f2);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f5e3 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.blog-search {
    background: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(214, 230, 187, 0.1);
}

.search-btn {
    padding: 12px 32px;
    background: var(--accent-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #7a9530;
    transform: translateY(-2px);
}

/* Categories Filter */
.categories-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.category-tag {
    padding: 6px 14px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.category-tag:hover,
.category-tag.active {
    background: var(--primary-green);
    color: var(--text-primary);
    border-color: var(--primary-green);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 40px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(214, 230, 187, 0.2);
}

.post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #d6e6bb 0%, #c0d99f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    overflow: hidden;
}

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

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image.no-image {
    font-size: 64px;
}

.post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    width: fit-content;
    padding: 5px 13px;
    background: #f0f5e8;
    color: var(--accent-dark);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: var(--transition);
}

.post-category:hover {
    background: var(--primary-green);
}

.post-title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 700;
}

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

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

.post-excerpt {
    color: #444;
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.7;
    flex: 1;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.post-author,
.post-date,
.post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-read-more {
    display: inline-block;
    padding: 12px 24px;
    background: #7a9530;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.btn-read-more:hover {
    background: #8fb03d;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-read-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.btn-page {
    padding: 10px 14px;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 13px;
}

.btn-page:hover,
.btn-page.active {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

/* Single Blog Post */
.blog-post {
    margin: 60px 0;
}

.post-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f5e3 100%);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    font-size: 42px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.post-featured-image {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.post-category-link {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.post-category-link:hover {
    text-decoration: underline;
}

.post-body {
    padding: 60px 0;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.post-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.post-share {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 14px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Comments Section */
.comments-section {
    background: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.comments-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    max-width: 800px;
}

.comment-form {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    max-width: 800px;
    margin-bottom: 40px;
}

.comment-form h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(214, 230, 187, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.btn-submit {
    padding: 12px 32px;
    background: var(--accent-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #7a9530;
}

.success-message {
    background: #4caf50;
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.comments-list {
    max-width: 800px;
}

.comment-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-green);
}

.comment-author {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.comment-author strong {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
    padding: 20px;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-content a {
    color: var(--primary-green);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        display: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-social {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
        padding-left: 0;
        margin-left: 0;
        margin-top: 16px;
    }

    .hamburger {
        display: flex;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-hero p {
        font-size: 16px;
    }

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

    .search-form {
        flex-direction: column;
    }

    .post-header h1 {
        font-size: 28px;
    }

    .post-meta {
        font-size: 12px;
        gap: 12px;
    }

    .post-content {
        font-size: 15px;
    }

    .comment-form {
        padding: 20px;
    }

    .sidebar {
        flex-direction: column;
    }

    .sidebar a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .blog-hero h1 {
        font-size: 24px;
    }

    .post-header h1 {
        font-size: 20px;
    }

    .nav-container {
        height: 60px;
        padding: 0 16px;
    }

    .nav-logo {
        font-size: 16px;
    }

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