/*
assets/css/style.css - دارک مود مینیمال
بدون رنگ تند، فقط سایه‌های خنثی
*/
@font-face {
  font-family: 'samim';
  src: url('fonts/Samim.woff2') format('woff2'),
         url('fonts/Samim.woff') format('woff'),
         url('fonts/Samim.ttf') format('truetype');
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --border-light: #2a2a2a;
    --border-hover: #404040;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.6);
    --shadow-hover: 0 12px 24px rgba(0,0,0,0.8);
    --placeholder-bg: #1f1f1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* هدر جدید - مینیمال و تاریک */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(20, 20, 20, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.site-title {
    text-align: right;
}

.site-title h1 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.site-title p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* هدر قدیمی رو حذف می‌کنیم ولی برای سازگاری */
.top-header {
    display: none;
}

/* گرید اصلی */
.places-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
	
}

/* کارت‌ها - مینیمال و تخت */
.place-card {
    display: block;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    height: 100%;
}

.place-card:hover {
    border-color: var(--border-hover);
    background: #1e1e1e;
    transform: translateY(-2px);
}

.img-wrap {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
    background: var(--placeholder-bg);
}

.img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.place-card:hover .img-wrap img {
    opacity: 0.9;
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* حالت خالی */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* پلیس هولدر عکس */
.img-wrap img[src*="placeholder"] {
    object-fit: contain;
    padding: 24px;
    background: var(--placeholder-bg);
    opacity: 0.7;
}

/* فوتر - اختیاری */
.site-footer {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* لودینگ اسکلتون */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.img-wrap.loading {
    background: #232323;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .places-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .site-title {
        text-align: left;
        width: 100%;
    }
    
    .logo-area {
        width: 100%;
        justify-content: space-between;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .places-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .places-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* اسکرول بار دارک */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* انتخاب متن */
::selection {
    background: #3a3a3a;
    color: #ffffff;
}
*{
	font-family: samim;
}