/*
Theme Name: LMS Diaco Template
Theme URI: https://diacowebdesign.ir
Author: Diaco Web Design
Author URI: https://diacowebdesign.ir
Description: قالب آموزش مجازی با طراحی مدرن و زیبا برای سیستم مدیریت یادگیری (LMS) - سازگار با افزونه‌های کلاس، تکلیف و آزمون‌ساز
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lms-diaco
Tags: education, lms, e-learning, rtl, persian, responsive
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'BYekan', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.site-title a {
    color: white;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation a {
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.2);
}

.login-button {
    background-color: #fff;
    color: #667eea;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.login-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.content-area {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Post Styles */
.post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Page Styles */
.page-content {
    line-height: 1.8;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Full Width Page Styles */
.full-width-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.full-width-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.full-width-page-content {
    margin: 0;
    padding: 0;
}

.full-width-page-content .entry-content {
    padding: 0;
    max-width: 100%;
}

.full-width-page-content .page-thumbnail {
    margin: 0;
    border-radius: 0;
}

.full-width-page-content .page-thumbnail img {
    border-radius: 0;
    width: 100%;
    height: auto;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
    }
    
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: row;
        width: 100%;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .main-navigation a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .site-main {
        margin: 1rem auto;
    }
    
    .content-area {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* LMS Specific Styles */
.lms-class-card,
.lms-assignment-card,
.lms-exam-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lms-class-card:hover,
.lms-assignment-card:hover,
.lms-exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

