/*
Theme Name: - جدید -قالب ساده نقشه
Theme URI: 
Author: شما
Author URI: 
Description: یه قالب خیلی ساده فقط برای نمایش مکان‌ها
Version: 1.0.0
License: GPL v2 or later
Text Domain: simple-map-theme
*/

/* استایل‌های پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

/* فونت وزیر */


.container {
    max-width: 45rem;
    margin: 0 auto;
    padding: 0px;
}

/* هدر - فقط برای صفحات داخلی */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px 0;
    margin-bottom: 10px;
}

.site-title a {
    color: #9B0A8C;
    text-decoration: none;
    font-size: 18px;
}

/* محتوای اصلی */
.site-content{}
.pom-category-container {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

/* صفحه اصلی - بدون هیچ حاشیه‌ای */
.home .site-content {
    background: transparent;
    padding: 0;
    min-height: auto;
	margin-top: 50px;
}

/* فوتر - فقط برای صفحات داخلی */
.site-footer {
    background: #fff;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
    margin-top: 20px;
}

/* صفحه اصلی - فوتر رو هم مخفی کن */
.home .site-footer {
   
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .container {
        padding: 0px;
    }
}


/* تنظیمات هدر اصلی */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5px;
    max-width: 1200px;
    margin: 0 auto;
}
.header-right, .header-left {
    flex: 1;
    display: flex;
    align-items: center;
}
.header-right { justify-content: center; }
.header-left { justify-content: center; gap: 15px; }
.header-center { flex: 2; text-align: center; }

.header-icon, .menu-btn {
    background: none; border: none; cursor: pointer; color: #333;
    display: flex; align-items: center; justify-content: center;
}
/* --- استایل های منوی همبرگری و آکاردئون --- */
.hamburger-btn {
    background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px;
}
.hamburger-btn span {
    width: 25px; height: 3px; background: #333; transition: 0.3s;
}

/* پنل منوی کناری */
.side-menu {
    position: fixed; top: 0; right: -300px; /* خارج از صفحه به صورت پیش فرض */
    width: 280px; height: 100vh; background: #fff; box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 9999; overflow-y: auto; padding: 20px;
}
.side-menu.active { right: 0; } /* کلاس باز شدن منو */

/* تاریک شدن پس زمینه */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.4s;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.menu-close-btn {
    font-size: 30px; cursor: pointer; text-align: left; margin-bottom: 20px; color: #666;
}

/* استایل آکاردئون منوی وردپرس */
.pom-accordion-menu { list-style: none; padding: 0; margin: 0; }
.pom-accordion-menu li { position: relative; border-bottom: 1px solid #eee; }
.pom-accordion-menu a { display: block; padding: 12px 15px; color: #333; text-decoration: none; }

/* استایل زیرمنوها */
.pom-accordion-menu .sub-menu {
    display: none; /* مخفی بودن زیرمنو به صورت پیش فرض */
    list-style: none; padding-right: 15px; background: #f9f9f9;
}

/* دکمه + برای باز کردن زیرمنو */
.toggle-submenu {
    position: absolute; left: 10px; top: 10px; width: 30px; height: 30px;
    background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: bold; transition: 0.3s;
}
.toggle-submenu.open { transform: rotate(45deg); /* تبدیل + به ضربدر */ background: #ddd; }


/* ==================== فوتر جدید ==================== */

.pom-site-footer {
    background: linear-gradient(135deg, var(--pom-primary-dark, #0a1157) 0%, var(--pom-primary, #0e187b) 100%);
    color: #fff;
    margin-top: 60px;
}

.pom-footer-widgets {
    padding: 40px 0 30px;
    padding-bottom: 0;
}

.pom-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pom-footer-col {
    animation: fadeInUp 0.5s ease-out;
}

/* لوگو */
.pom-footer-logo {
    margin-bottom: 15px;
}

.pom-footer-site-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* درباره ما */
.pom-footer-about {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    text-align: justify;
    margin-bottom: 20px;
}

/* عنوان ستون‌ها */
.pom-footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    display: inline-block;
    position: relative;
}

.pom-footer-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40%;
    height: 2px;
    background: var(--pom-primary-light, #ff9800);
}

/* شبکه‌های اجتماعی */
.pom-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.pom-social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.pom-social-link:hover {
    background: var(--pom-primary-light, #ff9800);
    transform: translateY(-3px);
    color: #fff;
}

/* لیست لینک‌ها */
.pom-footer-links,
.pom-footer-cats,
.pom-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: right; 
}

.pom-footer-links li,
.pom-footer-cats li {
    margin-bottom: 12px;
}

.pom-footer-links li a,
.pom-footer-cats li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pom-footer-links li a i,
.pom-footer-cats li a i {
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.pom-footer-links li a:hover,
.pom-footer-cats li a:hover {
    color: var(--pom-primary-light, #ff9800);
    padding-right: 5px;
}

.pom-footer-links li a:hover i,
.pom-footer-cats li a:hover i {
    opacity: 1;
    transform: translateX(-4px);
}

.pom-cat-count {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-right: 5px;
}

/* اطلاعات تماس */
.pom-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.pom-footer-contact li i {
    font-size: 16px;
    margin-top: 2px;
    color: var(--pom-menu-bg);
}

/* کپی رایت */
.pom-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.pom-footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pom-copyright , .pom-webdesign {
    font-size: 12px;
    color: rgba(255,255,255,0.6) !important;
    margin: 0;
}

.pom-copyright strong {
    color: #fff;
    font-weight: 500;
}
.pom-webdesign strong{
	color: #ff9800;
	font-weight: 400;
}
.pom-webdesign a{
	text-decoration: none;
}
.pom-footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: start;
    margin-top: 14px;
}

.pom-footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.pom-footer-bottom-links a:hover {
    color: var(--pom-primary-light, #ff9800);
}

.pom-footer-bottom-links .sep {
    color: rgba(255,255,255,0.3);
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.pom-footer-bottom .pom-container{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
/* ریسپانسیو */
@media (max-width: 992px) {
    .pom-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .pom-footer-widgets {
        padding: 20px 0 20px;
		padding-bottom: 0;
    }
    
    .pom-footer-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
		margin-top: 30px;
        margin-bottom: 10px;
    }
    
    .pom-footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pom-footer-bottom-links {
        justify-content: center;
    }
    
    .pom-footer-title {
        font-size: 16px;
    }
    
    .pom-footer-about {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
	.pom-site-footer .container{
		padding: 0 20px;;
	}
    .pom-footer-widgets {
        padding: 30px 0 15px;
    }
    .pom-footer-logo {
		text-align: center;
	}
    .pom-footer-social {
        justify-content: center;
    }
    
    .pom-footer-about {
        text-align: justify;
    }
    
    .pom-footer-title {
        display: block;
        text-align: right;
    }
    
    .pom-footer-title:after {
        right: 30%;
        width: 40%;
    }
    
    .pom-footer-links li a,
    .pom-footer-cats li a {
        justify-content: right;
    }
    
    .pom-footer-contact li {
        justify-content: right;
    }
	.pom-footer-col-mobile {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-left: 40px;
	}
	.pom-footer-links {
		align-items: right !important; 
	}
}

