body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #e6f0ff 0%, #e8e5ff 25%, #e0e7ff 50%, #e8e5ff 75%, #e6f0ff 100%);
    color: #898d94;
    line-height: 1.6;
    height: 100%;
}

html {
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100%;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #64748b 0%, #8928ff 25%, #a855f7 50%, #8928ff 75%, #64748b 100%);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 25px 50px rgba(137, 40, 255, 0.3), 0 0 30px rgba(137, 40, 255, 0.1);
}

.blog-title {
    font-size: 3rem;
    font-weight: bold;
    color: #fcfbff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #aeafaf;
    margin: 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

.content-area {
    background: rgba(255, 255, 255, 0.411);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.411);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 12px;
}

.category-link {
    display: block;
    padding: 12px 15px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link:hover, .category-link.active {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(-5px);
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.recent-post-link:hover {
    color: #a855f7;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #8928ff;
    margin-top: 5px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 12px 15px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.newsletter-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #a855f7, #8928ff);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.post-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #8928ff;
}

.post-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: #a855f7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #8928ff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-btn:hover, .page-btn.active {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-color: #a855f7;
}

.filter-info {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    color: #a855f7;
    text-align: center;
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .content-area, .sidebar-section {
        padding: 20px;
    }
}

.btn-gold {
background: linear-gradient(135deg, #64748b 0%, #8928ff 50%, #64748b 100%);
background-size: 200% 200%;
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}

.btn-gold::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}

.btn-gold:hover::before {
left: 100%;
}

.btn-gold:hover {
transform: translateY(-3px) scale(1.05);
box-shadow: 0 15px 30px rgba(137, 40, 255, 0.4);
background-position: 100% 0;
}

.nav-link {
position: relative;
transition: all 0.3s ease;
padding: 8px 16px;
border-radius: 8px;
}

.nav-link:hover {
color: #8928ff;
background: rgba(137, 40, 255, 0.1);
transform: translateY(-2px);
}

.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 3px;
bottom: 0;
right: 50%;
background: linear-gradient(90deg, #a855f7, #8928ff);
transition: all 0.3s ease;
border-radius: 2px;
}

.nav-link:hover::after {
width: 100%;
right: 0;
}

.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* ==== صفحه تک پست ==== */
.post-detail {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}
.post-detail-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 15px;
    line-height: 1.5;
}
.post-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #8928ff;
    flex-wrap: wrap;
}
.post-detail-cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
}
.post-detail-content {
    color: #475569;
    line-height: 2;
    font-size: 1.05rem;
}
.post-detail-content p { margin-bottom: 1.2em; }
.post-detail-content img { max-width: 100%; border-radius: 10px; }
.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #8928ff;
    text-decoration: none;
    font-weight: bold;
}

/* ==== نظرات ==== */
.comments-section {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}
.comments-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 20px;
}
.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}
.comment-item:last-child { border-bottom: none; }
.comment-author {
    font-weight: bold;
    color: #64748b;
    margin-left: 10px;
}
.comment-date {
    font-size: 0.8rem;
    color: #94a3b8;
}
.comment-text {
    margin-top: 8px;
    color: #64748b;
    line-height: 1.8;
}
.comment-form {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-form input,
.comment-form textarea {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-family: inherit;
    outline: none;
}
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-submit-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #a855f7, #8928ff);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}
.comment-submit-btn:hover { opacity: 0.9; }
.comment-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.comment-status-msg {
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
}
.comment-status-msg.ok { background: rgba(16,185,129,0.1); color: #059669; }
.comment-status-msg.err { background: rgba(239,68,68,0.1); color: #dc2626; }
