/* kesb-global.css – استایل‌های عمومی و یکپارچه کل سایت */

@import url('https://lib.arvancloud.ir/vazir-font/33.003/Vazirmatn-font-face.css');

:root {
    --orange: #F59E0B;
    --orange-dark: #D97706;
    --orange-light: #FEF3C7;
    --green: #10B981;
    --green-dark: #059669;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.7;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== دکمه‌ها ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), #F97316);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #F97316, var(--orange-dark));
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-light);
}

.btn-success {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    background: var(--green-dark);
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

/* ========== هدر ========== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 2px;
}
.logo span {
    color: var(--orange);
    font-size: 2rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
    border-radius: 2px;
}
.nav-links a:hover {
    color: var(--orange);
}
.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-800);
    cursor: pointer;
}

.user-greeting {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========== فوتر ========== */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    color: var(--gray-600);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-col h4 {
    margin-bottom: 1.2rem;
    color: var(--gray-800);
    font-weight: 700;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: var(--gray-600);
    transition: color 0.2s;
    font-size: 0.95rem;
}
.footer-col ul li a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

/* ========== کارت عمومی ========== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: var(--shadow);
}

/* ========== فیلدهای فرم (یکپارچه) ========== */
input[type="text"],
input[type="password"],
input[type="file"],
input[type="number"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* ========== هشدارها ========== */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

.alert-success {
    background: #D1FAE5;
    color: #047857;
    border: 1px solid #6EE7B7;
}

.alert-warning {
    background: #FFF3CD;
    border: 1px solid #FFC107;
    color: #856404;
}

/* ========== محتوای صفحات ========== */
.content-page {
    padding: 3rem 0;
    background: var(--white);
    min-height: 60vh;
}

.content-page h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gray-800);
    border-bottom: 3px solid var(--orange);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 2rem;
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-right: 4px solid var(--orange);
}
.faq-item h3 {
    color: var(--gray-800);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        background: var(--white);
        flex-direction: column;
        width: 100%;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    .nav-links.active {
        transform: translateX(0);
    }

    .header-actions {
        margin-right: auto;
        margin-left: 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-actions .btn span {
        display: none;
    }
}