/* ========================================
   main.css - چهارچوب اصلی سایت
   ======================================== */

/* فونت وزیرمتن (لوکال، بدون نیاز به CDN) - مجوز OFL */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-body-font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --success: #198754;
    --warning: #ffc107;
    --dark: #212529;
    --muted: #6c757d;
    --light-bg: #f5f7fa;
    --card-radius: 12px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    
    color: var(--dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #084298);
    transform: translateY(-1px);
}

/* Cards base */
.card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* Price */
.price-tag {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--success);
}

/* Section title */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 24px;
    background: var(--primary);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.75rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* Footer simple */
.site-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Utility */
.cursor-pointer {
    cursor: pointer;
}

.text-muted-small {
    font-size: 0.85rem;
    color: var(--muted);
}
