/* ========================================
   ساتراپ جاب - Global Styles
   Neo-Brutalism + Swiss Design + Minimal
   ======================================== */

/* FONT FACES - استفاده از فونت‌های موجود */
@font-face {
    font-family: IRANSans;
    src: url('../fonts/IRANSans/IRANSansWeb.eot');
    src: url('../fonts/IRANSans/IRANSansWeb.eot') format('embedded-opentype'),
         url('../fonts/IRANSans/IRANSansWeb(FaNum).woff') format('woff'),
         url('../fonts/IRANSans/IRANSansWeb.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: vazir;
    src: url('../fonts/vazir/vazir.eot');
    src: url('../fonts/vazir/vazir.eot') format('embedded-opentype'),
         url('../fonts/vazir/Vazir-Meduim-FD.woff') format('woff'),
         url('../fonts/vazir/vazir.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: vazir-bold;
    src: url('../fonts/vazir/vazir-Bold.eot');
    src: url('../fonts/vazir/vazir-Blod.eot') format('embedded-opentype'),
         url('../fonts/vazir/Vazir-Bold-FD.woff') format('woff'),
         url('../fonts/vazir/vazir-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'vazir', 'IRANSans', 'Sahel', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    background: #FFFFFF;
    direction: rtl;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-mono {
    font-family: 'Courier New', 'Courier', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* استفاده از vazir-bold برای headings */
h1, h2, h3, h4, h5, h6,
.bold, .black {
    font-family: 'vazir-bold', 'vazir', 'IRANSans', sans-serif;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bold { font-weight: 700; }
.black { font-weight: 900; }

/* BUTTONS */
button {
    font-family: inherit;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #000000;
    transition: all 0.2s ease;
    text-align: center;
    background: transparent;
}

.btn-primary {
    background: #000000;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 4px 4px 0 0 #000000;
    transform: translate(-2px, -2px);
}

.btn-secondary {
    background: #FFFFFF;
    color: #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #FFFFFF;
    box-shadow: 4px 4px 0 0 #000000;
    transform: translate(-2px, -2px);
}

.btn-ghost {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-ghost:hover {
    background: #000000;
    color: #FFFFFF;
}

.btn-danger {
    background: #cc0000;
    color: #FFFFFF;
    border-color: #cc0000;
}

.btn-danger:hover {
    background: #FFFFFF;
    color: #cc0000;
    box-shadow: 4px 4px 0 0 #cc0000;
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 18px;
    height: 56px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
    height: 40px;
}

/* FORMS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #000000;
    border-width: 3px;
}

input::placeholder,
textarea::placeholder {
    color: #cccccc;
}

input.error,
select.error,
textarea.error {
    border-color: #cc0000;
}

input.success,
select.success,
textarea.success {
    border-color: #00cc44;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 24px;
}

.error-message {
    font-size: 13px;
    color: #cc0000;
    font-weight: 600;
    margin-top: 8px;
}

.success-message {
    font-size: 13px;
    color: #00cc44;
    font-weight: 600;
    margin-top: 8px;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #000000;
}

.badge-success {
    border-color: #00cc44;
    color: #00cc44;
}

.badge-error {
    border-color: #cc0000;
    color: #cc0000;
}

.badge-warning {
    border-color: #cc6600;
    color: #cc6600;
}

/* CARDS */
.card {
    background: #FFFFFF;
    border: 2px solid #e0e0e0;
    padding: 24px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #000000;
    box-shadow: 4px 4px 0 0 #000000;
    transform: translate(-2px, -2px);
}

.card-bordered {
    border: 2px solid #000000;
}

.card-elevated {
    box-shadow: 6px 6px 0 0 #e0e0e0;
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    border: 2px solid;
    margin-bottom: 24px;
}

.alert-success {
    border-color: #00cc44;
    background: #f0fff4;
    color: #006622;
}

.alert-error {
    border-color: #cc0000;
    background: #fff5f5;
    color: #660000;
}

.alert-warning {
    border-color: #cc6600;
    background: #fff8f0;
    color: #663300;
}

.alert-info {
    border-color: #000000;
    background: #f5f5f5;
    color: #000000;
}

/* LAYOUT UTILITIES */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flex {
    display: flex;
}

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

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

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* SPACING */
.m-0 { margin: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.p-0 { padding: 0; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 48px 0;
    }
}

/* ACCESSIBILITY */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

/* ADDITIONAL UTILITIES - از استایل‌های موجود */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* TRANSITIONS - از theme.min.css */
.opacity-transition {
    transition: opacity 0.25s ease-in-out;
}

.opacity-transition:hover {
    opacity: 1 !important;
}

/* SCROLL BEHAVIOR */
html {
    scroll-behavior: smooth;
}

/* SELECTION */
::selection {
    background: #000000;
    color: #FFFFFF;
}

::-moz-selection {
    background: #000000;
    color: #FFFFFF;
}

