/* ------------------- Variables ------------------- */
:root {
    --color-gold: #d4af37;
    --color-gold-dark: #b8941f;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eeeeee;
    --color-gray-300: #e0e0e0;
    --color-gray-600: #757575;
    --color-gray-800: #424242;
    --color-gray-900: #212121;
    --color-success: #2e7d32;
    --color-danger: #c62828;
    --color-info: #0288d1;
    --font-primary: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ------------------- Base ------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--color-gray-50);
    color: var(--color-gray-900);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

/* ------------------- Layout ------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* ------------------- Header ------------------- */
.main-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold-dark);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--color-gray-700);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
}

.nav-link:hover,
.nav-link.active {
    background: var(--color-gold);
    color: #fff;
}

/* ------------------- Buttons ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-gold);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-gold-dark);
}

.btn-outline {
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-gold);
    color: #fff;
}

/* ------------------- Cards ------------------- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ------------------- Forms ------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-gray-800);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ------------------- Alerts ------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border-left: 4px solid var(--color-info);
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid var(--color-success);
}

.alert-danger {
    background: #ffebee;
    color: #b71c1c;
    border-left: 4px solid var(--color-danger);
}

/* ------------------- Responsive ------------------- */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
}