/*
Theme Name: Novel Platform Theme
Description: قالب مخصص لمنصة الروايات العربية مع تصميم حديث وجذاب
Author: Novel Platform Team
Version: 1.0.0
Text Domain: novel-theme
Domain Path: /languages
*/

/* ===== متغيرات CSS ===== */
:root {
    --primary-color: #1a2332;
    --secondary-color: #d4af37;
    --accent-color: #2d1b69;
    --text-color: #ffffff;
    --text-secondary: #343a40;
    --background-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
}

/* ===== إعادة تعيين الأنماط الأساسية ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

/* ===== التخطيط العام ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-12 { flex: 0 0 100%; }
.col-6 { flex: 0 0 50%; }
.col-4 { flex: 0 0 33.333333%; }
.col-3 { flex: 0 0 25%; }

/* ===== رأس الصفحة ===== */
.site-header {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-medium);
}

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

.site-logo {
    font-size: var(--font-size-xxl);
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.site-logo:hover {
    opacity: 0.8;
}

/* ===== التنقل الرئيسي ===== */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--secondary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

/* ===== المحتوى الرئيسي ===== */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

/* ===== البطاقات ===== */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card-content {
    color: var(--text-color);
    line-height: 1.7;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

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

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* ===== بطاقات الروايات ===== */
.novel-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.novel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.novel-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.novel-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.novel-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.novel-author {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.novel-description {
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 15px;
    line-height: 1.6;
}

.novel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.novel-category {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.novel-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== النماذج ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== تذييل الصفحة ===== */
.site-footer {
    background: var(--primary-color);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* ===== التجاوب ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        gap: 20px;
    }
    
    .col-6, .col-4, .col-3 {
        flex: 0 0 100%;
    }
    
    .novel-card {
        margin-bottom: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .site-main {
        padding: 20px 0;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== أنماط إضافية للمكونات المخصصة ===== */
.hero-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(45, 27, 105, 0.9) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-color);
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* ===== أنماط الأيقونات ===== */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.icon-lock {
    color: #ffc107;
}

.icon-heart {
    color: #dc3545;
}

.icon-star {
    color: var(--secondary-color);
}

/* ===== أنماط الحالة ===== */
.status-ongoing {
    color: #28a745;
}

.status-completed {
    color: #007bff;
}

.status-paused {
    color: #ffc107;
}

