/*!
Theme Name: keybook-stars
Theme URI: https://example.com/keybook-stars
Author: Your Name
Author URI: https://example.com
Description: یک پوسته وردپرس برای نمایش کتاب‌های کشاورزی و ستاره‌شناسی
Version: 1.0.0
Text Domain: keybook-stars
*/

/* استایل‌های سفارشی برای پوسته keybook-stars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container {
    scroll-behavior: smooth;
}

/* بهبود نمایش فونت فارسی */
body {
    font-feature-settings: "ss01";
    font-family: 'Vazirmatn', sans-serif;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* استایل‌های اضافی برای سازگاری با وردپرس */
.aligncenter {
    display: block;
    margin: 1rem auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    margin-top: 0.5rem;
}

.sticky {
    position: relative;
}

.bypostauthor {
    font-size: inherit;
}

.gallery-caption {
    font-size: inherit;
}

/* استایل‌های کامنت‌ها */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-body {
    position: relative;
}

.comment-meta {
    display: block;
    margin-top: 0.25rem;
}

.comment-content {
    line-height: 1.6;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #0d9488;
    border-color: transparent;
}

.comment-awaiting-moderation {
    display: block;
    padding: 0.5rem;
    background-color: #fef3c7;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .comment-author.vcard {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-author img {
        margin-bottom: 0.5rem;
    }
}

.h-52 {
	    height: 15rem ;
}

/* Mobile Bottom Navigation Styles */
.fixed nav {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.fixed nav a {
    transition: all 0.3s ease;
    position: relative;
}

.fixed nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #0d9488;
    transition: width 0.3s ease;
}

.fixed nav a.text-teal-500::after {
    width: 20px;
}

/* Mobile Menu Overlay Animation */
#mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay:not(.hidden) {
    animation: fadeIn 0.3s ease;
}

#mobile-menu-overlay .absolute {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(100%); 
        opacity: 0;
    }
    to { 
        transform: translateY(0); 
        opacity: 1;
    }
}

/* Prevent body scroll when menu is open */
body.overflow-hidden {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px; /* فضای کافی برای منوی پایین */
    }
    
    .fixed nav {
        padding-bottom: env(safe-area-inset-bottom); /* پشتیبانی از notch */
    }
}

/* بهبود ظاهر برای دستگاه‌های مختلف */
@media (max-width: 360px) {
    .fixed nav a {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .fixed nav .text-xs {
        font-size: 0.65rem;
    }
}

