/* استایل‌های اصلی قالب */

/* هدر */
.site-header.scrolled {
    background: rgba(108, 99, 255, 0.95);
    backdrop-filter: blur(10px);
}

.site-header.loaded {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* محتوای اصلی */
.site-main {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ویدجت‌ها */
.widget {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* فرم جستجو */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
}

.search-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--secondary-color);
}

/* فهرست دسته‌بندی‌ها */
.widget_categories ul {
    list-style: none;
}

.widget_categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories a:hover {
    color: var(--primary-color);
}

/* ابر برچسب‌ها */
.tagcloud a {
    display: inline-block;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* دیدگاه‌ها */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.comment-body {
    background: var(--light-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.comment-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--dark-color);
}

.comment-metadata {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-text {
    line-height: 1.6;
    color: var(--dark-color);
}

.comment-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.comment-actions a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-actions a:hover {
    color: var(--secondary-color);
}

/* فرم دیدگاه */
.comment-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: white;
}

/* منوی موبایل */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--gradient-primary);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 2rem;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}