/*
Theme Name: Telegram Bot Blog
Description: قالب ساده و مدرن برای وبلاگ ربات تلگرام
Version: 1.0
Author: Your Name
Text Domain: telegram-blog
*/

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

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    color: #2c3e50;
    direction: rtl;
    text-align: right;
}

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

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 132, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    color: #0084ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title:before {
    content: "🤖";
    font-size: 32px;
}

.site-description {
    color: #64748b;
    font-size: 14px;
    margin-top: 5px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: #0084ff;
    color: white;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 120px);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.post-date {
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
}

.post-category {
    background: linear-gradient(45deg, #0084ff, #00a8ff);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

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

.post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0084ff;
}

.post-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.read-more {
    background: linear-gradient(45deg, #0084ff, #00a8ff);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.4);
}

.comments-count {
    color: #64748b;
    font-size: 13px;
}

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

.pagination a,
.pagination span {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #0084ff;
    color: white;
    transform: translateY(-2px);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.no-posts h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 10px;
}

.no-posts p {
    color: #64748b;
}

/* Comments Styles */
.comments-area {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 132, 255, 0.1);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title:before {
    content: "💬";
    font-size: 28px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    background: rgba(0, 132, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-right: 4px solid #0084ff;
    transition: all 0.3s ease;
}

.comment:hover {
    background: rgba(0, 132, 255, 0.08);
    transform: translateX(-5px);
}

.comment-body {
    position: relative;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid rgba(0, 132, 255, 0.2);
}

.comment-author .fn {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.comment-author .says {
    color: #64748b;
    font-size: 14px;
    font-weight: normal;
}

.comment-metadata {
    color: #64748b;
    font-size: 13px;
    margin-right: auto;
}

.comment-metadata time {
    background: rgba(100, 116, 139, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.edit-link a {
    color: #0084ff;
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    font-size: 12px;
}

.comment-content {
    color: #374151;
    line-height: 1.7;
    margin: 15px 0;
}

.comment-content p {
    margin-bottom: 12px;
}

.comment-awaiting-moderation {
    display: block;
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    padding: 10px 15px;
    border-radius: 10px;
    border-right: 3px solid #ffc107;
    font-style: normal;
    font-weight: 500;
    margin: 15px 0;
}

.reply {
    margin-top: 15px;
}

.comment-reply-link {
    background: linear-gradient(45deg, #0084ff, #00a8ff);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-reply-link:before {
    content: "↩️";
}

.comment-reply-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.4);
}

/* Nested Comments */
.children {
    margin-top: 20px;
    margin-right: 40px;
    border-right: 2px solid rgba(0, 132, 255, 0.1);
    padding-right: 20px;
}

.children .comment {
    background: rgba(0, 132, 255, 0.03);
    border-right: 3px solid rgba(0, 132, 255, 0.3);
}

/* Comment Form */
.comment-form {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(0, 132, 255, 0.1);
}

.comment-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form h3:before {
    content: "✍️";
    font-size: 24px;
}

.comment-notes {
    background: rgba(0, 132, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
    border-right: 3px solid #0084ff;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 132, 255, 0.2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0084ff;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
    transform: translateY(-2px);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 20px;
}

.form-submit input {
    background: linear-gradient(45deg, #0084ff, #00a8ff);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: inherit;
}

.form-submit input:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 132, 255, 0.4);
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comment-navigation a {
    background: rgba(0, 132, 255, 0.1);
    color: #0084ff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    background: #0084ff;
    color: white;
    transform: translateY(-2px);
}

.no-comments {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 30px;
    background: rgba(0, 132, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(0, 132, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .comments-area {
        padding: 25px 20px;
    }
    
    .comment {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-metadata {
        margin-right: 0;
        margin-top: 5px;
    }
    
    .children {
        margin-right: 20px;
        padding-right: 15px;
    }
    
    .comment-form {
        padding: 20px;
    }
    
    .comment-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .read-more {
        text-align: center;
    }
}