/*
Theme Name: قالب نویسنده
Theme URI: http://example.com
Author: نویسنده
Author URI: http://example.com
Description: قالبی برای نویسندگی و داستان‌نویسی
Version: 1.0
License: GPL v2 or later
Text Domain: writer-theme
*/

body {
    font-family: Vazir, Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

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

header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header a {
    color: white;
    text-decoration: none;
}



/* ===== استایل‌های بخش‌های اصلی ===== */

/* بخش قهرمان */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
    width: 100%;
}

.hero-section h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.hero-btn-primary {
    background: #667eea;
    color: white;
}

.hero-btn-primary:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.hero-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* بخش ویژگی‌ها */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
    width: 100%;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin: 0;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* بخش داستان‌ها */
.stories-section {
    margin: 60px 0;
    width: 100%;
}

.stories-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.stories-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    margin: 0;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(102, 126, 234, 0.15);
}

.story-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

.story-episode {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.story-content {
    padding: 25px 20px;
    background: white;
    position: relative;
}

.story-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2d3748;
    line-height: 1.4;
    transition: color 0.3s;
}

.story-card:hover .story-title {
    color: #667eea;
}

.story-episode-title {
    color: #667eea;
    font-size: 13px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
    font-weight: 500;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.story-author {
    color: #667eea;
}

.story-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* بخش CTA */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    border-radius: 10px;
    text-align: center;
    margin: 60px 0;
    color: white;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* استایل برای حالت خالی */
.no-stories {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.no-stories i {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
    display: block;
    opacity: 0.7;
}

.no-stories p {
    color: #4a5568;
    font-size: 18px;
    margin-bottom: 25px;
}

.no-stories .btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.no-stories .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .story-image {
        height: 180px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
}

