/*
Theme Name: آموزِش
Theme URI: 
Author: Your Name
Author URI: 
Description: قالب آموزشی سبک برای آموزش نخ و میخ
Version: 1.0
License: GPL v2 or later
Text Domain: amoozesh
*/

/* تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: #6c5ce7;
}

a:hover {
    color: #a29bfe;
}

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

/* هدر */
.site-header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
}

.site-title a {
    color: #fff;
}

.site-title a:hover {
    color: #fdcb6e;
}

.site-description {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

/* منو */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav ul li a {
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    background: rgba(255,255,255,0.2);
}

/* محتوای اصلی */
.main-content {
    padding: 40px 0;
    min-height: 500px;
}

/* بخش Hero */
.hero {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    padding: 60px 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    color: #2d3436;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 20px;
}

.btn-primary {
    display: inline-block;
    background: #6c5ce7;
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #5a4bd1;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

/* گرید مطالب */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-card .post-title a {
    color: #2d3436;
}

.post-card .post-excerpt {
    color: #636e72;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-card .post-meta {
    color: #b2bec3;
    font-size: 13px;
}

/* صفحه دانلود */
.download-section {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.download-section .app-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 60px;
    color: #fff;
}

.download-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #2d3436;
}

.download-section p {
    color: #636e72;
    max-width: 600px;
    margin: 0 auto 30px;
}

.download-btn {
    display: inline-block;
    background: #00b894;
    color: #fff;
    padding: 15px 45px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #00a381;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 184, 148, 0.4);
    color: #fff;
}

.download-info {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.download-info .info-item {
    color: #636e72;
    font-size: 14px;
}

.download-info .info-item span {
    display: block;
    font-weight: bold;
    color: #2d3436;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: right;
}

.features-list .feature {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border-right: 4px solid #6c5ce7;
}

/* فوتر */
.site-footer {
    background: #2d3436;
    color: #b2bec3;
    padding: 40px 0;
    margin-top: 40px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer .footer-links a {
    color: #b2bec3;
    margin: 0 10px;
}

.site-footer .footer-links a:hover {
    color: #fff;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .download-section {
        padding: 30px 20px;
    }
    
    .download-info {
        flex-direction: column;
        gap: 10px;
    }
}