/*
Theme Name: Naxto App Theme Pro - Bazaar Style
Theme URI: https://naxto.ir
Description: قالب وردپرس حرفه‌ای و راست‌چین شبیه به مارکت کافه بازار برای دانلود اپلیکیشن
Version: 2.0.0
Author: Ahoura Roshanfekr
Author URI: https://naxto.ir
Text Domain: naxto-bazaar
*/

:root {
    --bazaar-green: #007a37;
    --bazaar-green-hover: #005f2b;
    --bazaar-bg: #f9f9f9;
    --bazaar-card: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --font-family: "Vazirmatn", "Tahoma", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-family);
    background-color: var(--bazaar-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* هدر اصلی سایت */
.site-header {
    background-color: var(--bazaar-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.site-logo a {
    font-size: 20px;
    font-weight: bold;
    color: var(--bazaar-green);
}

/* کارت اصلی اپلیکیشن */
.app-detail-card {
    background-color: var(--bazaar-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* بخش هدر اپلیکیشن (آیکون، عنوان، دکمه دانلود) */
.app-header-block {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.app-icon-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.app-title-info {
    flex-grow: 1;
}

.app-title-info h1 {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.app-developer {
    font-size: 14px;
    color: var(--bazaar-green);
    font-weight: 500;
    margin-bottom: 12px;
}

.app-category {
    display: inline-block;
    background-color: #f1f8f3;
    color: var(--bazaar-green);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

.app-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bazaar-download-btn {
    background-color: var(--bazaar-green);
    color: #fff;
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 122, 55, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bazaar-download-btn:hover {
    background-color: var(--bazaar-green-hover);
}

.bazaar-download-btn:active {
    transform: scale(0.98);
}

/* جدول مشخصات چهار ستونه بازار */
.app-meta-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.stat-item {
    border-left: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-left: none;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
}

/* اسلایدر اسکرین شات ها */
.app-screenshots-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-right: 4px solid var(--bazaar-green);
    padding-right: 10px;
}

.screenshots-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--bazaar-green) #eee;
}

.screenshots-slider::-webkit-scrollbar {
    height: 6px;
}

.screenshots-slider::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.screenshots-slider img {
    height: 320px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* بخش تغییرات نسخه جدید */
.app-changelog-box {
    background-color: #f7f9f8;
    border-right: 4px solid var(--bazaar-green);
    padding: 15px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 24px;
}

.changelog-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.changelog-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* توضیحات اپلیکیشن */
.app-description-section {
    line-height: 1.8;
    color: #424242;
}

.app-description-content {
    font-size: 14px;
}

/* فوتر */
.site-footer {
    background-color: var(--bazaar-card);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 40px;
}

/* موبایل فرندلی */
@media (max-width: 768px) {
    .app-header-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .app-action-wrapper {
        align-items: center;
        width: 100%;
    }
    .bazaar-download-btn {
        width: 100%;
        justify-content: center;
    }
    .app-meta-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-item {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
    .stat-item:nth-child(even) {
        border-left: none;
    }
    .stat-item:nth-child(3), .stat-item:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
        padding-top: 10px;
    }
}
