/*
Theme Name: Mein Minimal Blog - Neumorphism UI
Theme URI: 
Author: 
Author URI: 
Description: Ein ultraschnelles, minimales Blog-Theme mit Neumorphism Design
Version: 1.0
License: GPL v2 or later
Text Domain: mein-blog
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e0e5ec;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #e0e5ec;
    padding: 2rem;
    border-radius: 48px;
    box-shadow: 
        12px 12px 24px rgba(166, 173, 186, 0.4),
        -12px -12px 24px rgba(255, 255, 255, 0.6);
}

/* ================= HEADER ================= */
.site-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: none;
    border-radius: 32px;
    background: #e0e5ec;
    padding: 1.5rem;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.3),
        inset -3px -3px 7px rgba(255, 255, 255, 0.7),
        8px 8px 16px rgba(166, 173, 186, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.5);
}

.site-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.site-title a {
    text-decoration: none;
    background: linear-gradient(135deg, #2c3e50, #1a2a3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

.site-title a:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    background-clip: text;
}

.site-description {
    text-align: center;
    color: #5a6e7e;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* ================= NAVIGATION ================= */
.main-nav {
    margin-top: 1.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0.8rem 1.5rem;
    background: #e0e5ec;
    border-radius: 60px;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.2),
        inset -2px -2px 5px rgba(255, 255, 255, 0.6),
        5px 5px 10px rgba(166, 173, 186, 0.15),
        -5px -5px 10px rgba(255, 255, 255, 0.4);
}

.main-nav a {
    text-decoration: none;
    color: #4a5b6e;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #3b82f6;
    box-shadow: 
        inset 1px 1px 3px rgba(166, 173, 186, 0.3),
        inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

/* ================= ARTICLES ================= */
article {
    margin-bottom: 2.5rem;
    background: #e0e5ec;
    border-radius: 32px;
    padding: 1.8rem;
    box-shadow: 
        8px 8px 16px rgba(166, 173, 186, 0.25),
        -8px -8px 16px rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
}

article:hover {
    box-shadow: 
        4px 4px 8px rgba(166, 173, 186, 0.25),
        -4px -4px 8px rgba(255, 255, 255, 0.6),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(166, 173, 186, 0.1);
}

.entry-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.entry-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: #3b82f6;
}

.entry-meta {
    font-size: 0.8rem;
    color: #6c7e90;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    background: #e0e5ec;
    box-shadow: 
        inset 1px 1px 3px rgba(166, 173, 186, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.entry-content {
    font-size: 1rem;
    color: #3a4c5e;
}

.entry-content p {
    margin-bottom: 1.25em;
}

.entry-content a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid rgba(59,130,246,0.3);
}

.more-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    background: #e0e5ec;
    box-shadow: 
        3px 3px 6px rgba(166, 173, 186, 0.2),
        -3px -3px 6px rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.more-link:hover {
    box-shadow: 
        inset 2px 2px 4px rgba(166, 173, 186, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.5);
}

/* ================= SIDEBAR ================= */
.sidebar {
    margin-top: 2.5rem;
    padding-top: 1rem;
}

.widget {
    background: #e0e5ec;
    padding: 1.5rem;
    border-radius: 32px;
    margin-bottom: 1.8rem;
    box-shadow: 
        8px 8px 16px rgba(166, 173, 186, 0.25),
        -8px -8px 16px rgba(255, 255, 255, 0.6);
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b82f6;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #e0e5ec;
    box-shadow: 
        inset 1px 1px 3px rgba(166, 173, 186, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.7rem;
}

.widget a {
    text-decoration: none;
    color: #4a5b6e;
    transition: all 0.2s;
    display: block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.widget a:hover {
    color: #3b82f6;
    background: #e0e5ec;
    box-shadow: 
        inset 1px 1px 3px rgba(166, 173, 186, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

/* ================= BUTTONS & INPUTS ================= */
button,
input[type="submit"],
input[type="button"],
.button,
.comment-reply-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    color: #3b82f6;
    background: #e0e5ec;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        5px 5px 10px rgba(166, 173, 186, 0.3),
        -5px -5px 10px rgba(255, 255, 255, 0.6);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    color: #2563eb;
    box-shadow: 
        3px 3px 6px rgba(166, 173, 186, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.6),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(166, 173, 186, 0.1);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: scale(0.98);
    box-shadow: 
        inset 3px 3px 6px rgba(166, 173, 186, 0.4),
        inset -3px -3px 6px rgba(255, 255, 255, 0.5);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 60px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #e0e5ec;
    color: #2c3e50;
    box-shadow: 
        inset 4px 4px 8px rgba(166, 173, 186, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 
        inset 5px 5px 10px rgba(166, 173, 186, 0.4),
        inset -5px -5px 10px rgba(255, 255, 255, 0.7);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.search-submit {
    width: 100%;
}

/* ================= PAGINATION & FOOTER ================= */
.pagination {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    border-radius: 60px;
    background: #e0e5ec;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.4);
}

.pagination a {
    color: #3b82f6;
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    background: #e0e5ec;
    border-radius: 32px;
    box-shadow: 
        5px 5px 12px rgba(166, 173, 186, 0.2),
        -5px -5px 12px rgba(255, 255, 255, 0.5);
}

.archive-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 1rem;
    text-align: center;
    background: #e0e5ec;
    border-radius: 60px;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.4);
}

.site-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6c7e90;
    background: #e0e5ec;
    border-radius: 32px;
    padding: 1.2rem;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.3);
}

/* ================= COMMENTS SECTION - NEUMORPHISM ================= */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: none;
    background: #e0e5ec;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 
        8px 8px 16px rgba(166, 173, 186, 0.25),
        -8px -8px 16px rgba(255, 255, 255, 0.6);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    padding: 0.8rem 1.2rem;
    background: #e0e5ec;
    border-radius: 60px;
    display: inline-block;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.4),
        5px 5px 10px rgba(166, 173, 186, 0.15);
}

/* لیست کامنت‌ها */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
    list-style: none;
}

.comment-list .comment .comment {
    margin-left: 3rem;
    margin-top: 1rem;
}

/* کارت هر کامنت */
.comment-card {
    background: #e0e5ec;
    border-radius: 28px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 
        6px 6px 12px rgba(166, 173, 186, 0.25),
        -6px -6px 12px rgba(255, 255, 255, 0.6);
}

.comment-card:hover {
    box-shadow: 
        4px 4px 8px rgba(166, 173, 186, 0.2),
        -4px -4px 8px rgba(255, 255, 255, 0.5),
        inset 1px 1px 2px rgba(255, 255, 255, 0.3),
        inset -1px -1px 2px rgba(166, 173, 186, 0.1);
}

/* متای کامنت */
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: none;
    background: #e0e5ec;
    border-radius: 20px;
    padding: 0.8rem 1rem;
    box-shadow: 
        inset 1px 1px 3px rgba(166, 173, 186, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 
        3px 3px 6px rgba(166, 173, 186, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.6);
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
}

.author-name a {
    text-decoration: none;
    color: #3b82f6;
}

.author-name a:hover {
    text-decoration: underline;
}

.comment-date {
    font-size: 0.7rem;
    color: #7a8c9e;
    display: block;
    margin-top: 0.2rem;
}

.comment-reply a {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    background: #e0e5ec;
    border-radius: 40px;
    transition: all 0.2s;
    box-shadow: 
        3px 3px 6px rgba(166, 173, 186, 0.2),
        -3px -3px 6px rgba(255, 255, 255, 0.5);
}

.comment-reply a:hover {
    box-shadow: 
        inset 2px 2px 4px rgba(166, 173, 186, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.5);
    color: #2563eb;
}

/* محتوای کامنت */
.comment-content {
    color: #3a4c5e;
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0.5rem 0.5rem 0 0.5rem;
}

.comment-content p {
    margin-bottom: 0.8rem;
}

/* فرم کامنت نئومورفیسم */
.comment-form.neumorphism-form {
    margin-top: 2rem;
    padding: 1.8rem;
    background: #e0e5ec;
    border-radius: 32px;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.4),
        8px 8px 16px rgba(166, 173, 186, 0.2);
}

.comment-form .form-group {
    margin-bottom: 1.2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5b6e;
    padding-left: 0.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 60px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #e0e5ec;
    color: #2c3e50;
    box-shadow: 
        inset 4px 4px 8px rgba(166, 173, 186, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.comment-form textarea {
    border-radius: 28px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    box-shadow: 
        inset 5px 5px 10px rgba(166, 173, 186, 0.4),
        inset -5px -5px 10px rgba(255, 255, 255, 0.7);
}

/* دکمه ارسال کامنت */
.submit-btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border: none;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: #3b82f6;
    background: #e0e5ec;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        5px 5px 10px rgba(166, 173, 186, 0.3),
        -5px -5px 10px rgba(255, 255, 255, 0.6);
}

.submit-btn:hover {
    color: #2563eb;
    box-shadow: 
        3px 3px 6px rgba(166, 173, 186, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.6),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(166, 173, 186, 0.1);
}

.submit-btn:active {
    transform: scale(0.97);
    box-shadow: 
        inset 3px 3px 6px rgba(166, 173, 186, 0.4),
        inset -3px -3px 6px rgba(255, 255, 255, 0.5);
}

/* صفحه‌بندی کامنت‌ها */
.comment-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e0e5ec;
    border-radius: 60px;
    box-shadow: 
        inset 2px 2px 5px rgba(166, 173, 186, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.4);
}

.comment-pagination a {
    color: #3b82f6;
    text-decoration: none;
    padding: 0.3rem 1rem;
    border-radius: 40px;
}

.comment-pagination a:hover {
    background: #e0e5ec;
    box-shadow: 
        inset 1px 1px 3px rgba(166, 173, 186, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.no-comments {
    text-align: center;
    padding: 1rem;
    color: #7a8c9e;
    font-style: italic;
}

/* کامنت pending (در انتظار تایید) */
.comment .comment-awaiting-moderation {
    font-size: 0.7rem;
    color: #f59e0b;
    margin-top: 0.3rem;
    padding: 0.2rem 0.6rem;
    display: inline-block;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: inset 1px 1px 2px rgba(166, 173, 186, 0.2);
}

/* کامنت‌های عمیق‌تر (nested) */
.comment-list .children {
    list-style: none;
    padding-left: 1rem;
}

@media (max-width: 680px) {
    .comment-list .comment .comment {
        margin-left: 1rem;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comments-area {
        padding: 1.2rem;
    }
    
    .comment-card {
        padding: 1rem;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 680px) {
    body { padding: 1rem; }
    .container { padding: 1.2rem; border-radius: 32px; }
    .site-title { font-size: 1.6rem; }
    .entry-title { font-size: 1.4rem; }
    article { padding: 1.2rem; }
    .main-nav ul { gap: 1rem; padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 1rem; }
    .entry-meta { font-size: 0.7rem; gap: 0.8rem; }
}