﻿/*@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.3/style.css');*/
@import url('/css/style.css');

/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
:root {
    /* رنگ‌بندی سازمانی */
    --primary-color: #0056b3; /* آبی اصلی */
    --primary-dark: #004494; /* آبی تیره */
    --primary-nav: #002855; /* سرمه‌ای (منو و فوتر) */
    --accent-color: #FF9900; /* نارنجی اصلی */
    --accent-hover: #e68a00; /* نارنجی تیره (هاور) */
    /* رنگ متن و پس‌زمینه */
    --text-dark: #333333;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    /* سایه‌ها */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-hover: 0 8px 16px rgba(0,0,0,0.15);
}

/* تنظیمات پایه */
html, body {
    height: 100%;
    font-size: 15px; /* کمی بزرگتر برای خوانایی بهتر */
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: #fdfdfd;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* نگهدارنده اصلی محتوا (برای چسباندن فوتر به پایین) */
.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
}

main {
    min-height: auto;
    padding-bottom: 2rem;
}

/* =========================================
   2. TYPOGRAPHY & TITLES
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-nav);
}

.site-title {
    color: var(--accent-color);
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    padding-bottom: 15px;
    position: relative;
    text-align: center;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--accent-color);
        border-radius: 2px;
    }

/* =========================================
   3. BUTTONS & UTILITIES
   ========================================= */
.btn {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn:focus, .btn:active:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 153, 0, 0.25);
    }

.btn-primary, .contact-us-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(255, 153, 0, 0.3);
}

    .btn-primary:hover, .contact-us-btn:hover {
        background-color: var(--accent-hover);
        border-color: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(255, 153, 0, 0.4);
    }

.hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover) !important;
    transition: all 0.3s ease;
}

.bg-light-custom {
    background-color: var(--bg-light);
}

/* =========================================
   4. HEADER & NAVBAR
   ========================================= */
/* نوار اطلاعیه */
.announcement-bar {
    background-color: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: bold;
    position: relative;
    z-index: 1030;
}

    .announcement-bar a {
        color: var(--white);
        text-decoration: underline;
    }

/* استایل منو */
.navbar {
    background-color: var(--primary-nav) !important;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
}

.navbar-brand img {
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--accent-color) !important;
        font-weight: bold;
    }

/* انیمیشن لوگو */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-logo {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* دراپ‌داون */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   5. HOME PAGE (Hero & Features)
   ========================================= */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(0, 40, 85, 0.8)), url('/images/herosection.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

    .hero-section h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        color: var(--white);
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .hero-section p.lead {
        font-size: 1.3rem;
        font-weight: 300;
        max-width: 800px;
        margin: 0 auto 2rem auto;
        opacity: 0.95;
    }

/* =========================================
   6. CARDS (General, Blog, UserPanel)
   ========================================= */
.card {
    border: none;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* کارت‌های بلاگ */
.blog-card .card-title a {
    transition: color 0.2s;
    color: var(--text-dark);
}

.blog-card:hover .card-title a {
    color: var(--accent-color) !important;
}

/* =========================================
   7. AUTH PAGES (Login, Register)
   ========================================= */
/* اصلاح فرم‌های ورود برای پشتیبانی از آیکون */
.input-group-text {
    border-color: #dee2e6;
}

/* کلاس‌های کمکی برای RTL/LTR میکس شده در فرم‌ها */
/* این‌ها باعث می‌شوند وقتی dir="ltr" است، گوشه‌ها درست گرد شوند */
[dir="ltr"] .rounded-start-pill {
    border-top-left-radius: 50rem !important;
    border-bottom-left-radius: 50rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[dir="ltr"] .rounded-end-pill {
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* =========================================
   8. USER PANEL DASHBOARD
   ========================================= */
.sidebar-custom .card {
    border: none;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 153, 0, 0.1);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.list-group-item.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* =========================================
   9. BLOG & CONTENT PAGES
   ========================================= */
.post-main-image {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
    border-radius: 15px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 2;
    text-align: justify;
    color: var(--text-dark);
}

    .post-content img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 20px 0;
    }

/* لیست‌های سفارشی (تیک‌دار) */
.list-custom li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 12px;
    list-style: none;
}

    .list-custom li::before {
        content: '✔';
        color: var(--accent-color);
        position: absolute;
        right: 0;
        top: 2px;
    }

/* صفحات قوانین و حریم خصوصی */
.policy-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

    .policy-content h3 {
        color: var(--primary-dark);
        margin-top: 2rem;
        border-right: 4px solid var(--accent-color);
        padding-right: 15px;
    }

/* =========================================
   10. FOOTER
   ========================================= */
.footer-custom {
    flex-shrink: 0;
    background-color: var(--primary-nav);
    color: var(--white);
    border-top: 4px solid var(--accent-color);
    margin-top: auto;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    .footer-link:hover {
        color: var(--accent-color);
    }

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-left: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-link:hover {
        transform: translateY(-3px);
        color: var(--white);
    }

    .social-link.telegram:hover {
        background-color: #0088cc;
    }

    .social-link.whatsapp:hover {
        background-color: #25d366;
    }

    .social-link.instagram:hover {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    }

    .social-link.eitaa:hover {
        background-color: #e67e22;
    }

/* اصلاحات ریسپانسیو */
@media (max-width: 768px) {
    .footer-custom .text-md-start,
    .footer-custom .text-md-end {
        text-align: center !important;
    }

    .social-icons {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

.my-date-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    width: 250px;
    font-size: 16px;
}