/*
Theme Name: Javid Theme
Theme URI: https://example.com/javid-theme
Author: Javid
Author URI: https://example.com
Description: یک قالب وردپرس کاملاً سفارشی، مینیمال، واکنش‌گرا و بهینه‌شده برای سئو با پشتیبانی کامل از زبان فارسی (RTL).
Version: 1.0.0
Text Domain: javid-theme
Tags: minimal, responsive, rtl-language-support, seo-friendly
*/



/* ============================================================================
   ریست پایه (حل مشکل بیرون‌زدگی محتوا)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box; /* این دستور باعث می‌شود پدینگ‌ها عرض المان را زیاد نکنند */
}

#siteHeader {
    transition: transform 0.3s ease, background-color 0.3s ease; /* برای انیمیشن نرم */
}

@media (max-width: 1024px) {
    .site-header.hide-on-scroll {
        transform: translateY(-100%) !important;
    }
}



img, video {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   تعریف فونت‌های سفارشی (از پوشه assets/fonts)
   ========================================================================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
       url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   متغیرهای پایه و تنظیمات عمومی (راست‌چین)
   ========================================================================== */
:root {
    --primary-color: #3498db;
    --text-color: #333333;
    --bg-color: #f9f9f9;
    --container-width: 100%; /* تغییر از 100vw به 100% برای جلوگیری از اسکرول افقی */
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    direction: rtl; /* راست‌چین کردن کامل قالب */
    text-align: right;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی کل صفحه */
}

/* ==========================================================================
   کلاس‌های کمکی واکنش‌گرا (Flexbox & Grid)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto; /* وسط‌چین کردن کانتینر */
    padding: 0 15px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-space-between {
    justify-content: space-between;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* استایل‌های پایه برای هدر */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .container {
        padding-left: 1px !important;
        padding-right: 1px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .page-content-wrapper {
        padding-top:160px !important;
        margin: 2px 0 !important;
    }
}

/* جلوگیری از مخفی شدن هدر در موبایل هنگام اسکرول */

/*استایل‌های پایه برای اعلان ها هدر */


.lilam-notif-container {
    max-width: 600px;
    padding-top: -0px;
    margin-top: -0px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: Tahoma, 'Segoe UI', sans-serif;
}
.lilam-notif-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lilam-notif-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}
.lilam-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-right: 8px;
}
.lilam-mark-all-read {
    background: #3498db;
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8em;
}
.lilam-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lilam-notif-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.lilam-notif-item.unread {
    background: #fef9e6;
}
.lilam-notif-item:hover {
    background: #f9f9f9;
}
.notif-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 12px;
    flex-shrink: 0;
}
.notif-icon.high { background: #e74c3c; box-shadow: 0 0 0 2px #fadbd8; }
.notif-icon.normal { background: #f39c12; }
.notif-icon.low { background: #2ecc71; }
.notif-content {
    flex: 1;
}
.notif-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4px;
}
.notif-message {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 4px;
}
.notif-time {
    font-size: 0.7em;
    color: #999;
}
.lilam-mark-read {
    background: transparent;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #27ae60;
    margin-right: 8px;
}
.lilam-notif-empty {
    text-align: center;
    padding: 30px;
    color: #888;
}
@media (max-width: 600px) {
    .lilam-notif-container {
        width: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .lilam-notif-header {
        padding: 12px 10px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }
    .lilam-notif-item {
        padding: 10px 12px;
    }
    .lilam-notif-header h3 {
        font-size: 1em;
    }
    .lilam-mark-all-read,
    .lilam-delete-all-read {
        padding: 4px 10px;
        font-size: 0.75em;
    }
}

.lilam-delete {
    background: none;
    border: none;
    color: #e74c3c; /* رنگ قرمز برای حذف */
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.lilam-delete:hover {
    color: #c0392b;
    transform: scale(1.1); /* کمی بزرگتر شدن هنگام هاور */
}

.notif-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lilam-delete {
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #e74c3c;
    padding: 4px;
    border-radius: 4px;
    transition: 0.2s;
}
.lilam-delete:hover {
    background: #fef2f2;
    color: #c0392b;
}
.lilam-delete-all-read {
    background: #f97316;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 8px;
}
.lilam-delete-all-read:hover {
    background: #ea580c;
}

.lilam-back-bar {
    background: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.lilam-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    font-family: inherit;
}

.lilam-back-btn:hover {
    background: #f0f0f0;
    color: #222;
}

.lilam-back-btn i {
    font-size: 0.9em;
}


/*==========پایان اعلان ها */


