/* shared-styles.css - استایل‌های مشترک */
:root {
    --honor-primary: #1a5276;
    --honor-secondary: #3498db;
    --honor-accent: #e74c3c;
    --honor-success: #27ae60;
    --honor-warning: #f39c12;
    --honor-info: #3498db;
    --honor-light: #ecf0f1;
    --honor-dark: #2c3e50;
    --honor-gray: #7f8c8d;
    
    --honor-shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --honor-shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --honor-shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --honor-shadow-xl: 0 15px 45px rgba(0,0,0,0.25);
    
    --honor-radius-sm: 8px;
    --honor-radius-md: 12px;
    --honor-radius-lg: 16px;
    --honor-radius-xl: 20px;
    
    --honor-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ریست پایه */
.honor-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* تایپوگرافی */
.honor-font-nastaliq {
    font-family: 'IranNastaliq', 'Arial', sans-serif;
}

.honor-font-arabic {
    font-family: 'Arabic Typesetting', 'Segoe UI', Tahoma, sans-serif;
}

/* کارت‌ها */
.honor-card {
    background: white;
    border-radius: var(--honor-radius-md);
    box-shadow: var(--honor-shadow-md);
    transition: var(--honor-transition);
    overflow: hidden;
}

.honor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--honor-shadow-lg);
}

.honor-card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--honor-light), white);
}

.honor-card-body {
    padding: 20px;
}

.honor-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

/* دکمه‌ها */
.honor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--honor-radius-sm);
    font-family: 'Arabic Typesetting', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--honor-transition);
    text-decoration: none;
    text-align: center;
    min-height: 44px;
}

.honor-btn-primary {
    background: linear-gradient(135deg, var(--honor-primary), var(--honor-secondary));
    color: white;
}

.honor-btn-secondary {
    background: linear-gradient(135deg, var(--honor-gray), #95a5a6);
    color: white;
}

.honor-btn-success {
    background: linear-gradient(135deg, var(--honor-success), #219653);
    color: white;
}

.honor-btn-danger {
    background: linear-gradient(135deg, var(--honor-accent), #c0392b);
    color: white;
}

.honor-btn-warning {
    background: linear-gradient(135deg, var(--honor-warning), #e67e22);
    color: white;
}

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

.honor-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--honor-shadow-md);
}

.honor-btn:active:not(:disabled) {
    transform: translateY(0);
}

.honor-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.honor-btn-sm {
    padding: 6px 12px;
    font-size: 14px;
    min-height: 36px;
}

.honor-btn-lg {
    padding: 14px 28px;
    font-size: 18px;
    min-height: 52px;
}

/* فرم‌ها */
.honor-form-group {
    margin-bottom: 20px;
}

.honor-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--honor-dark);
    font-size: 16px;
}

.honor-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--honor-radius-sm);
    font-family: 'Arabic Typesetting', Tahoma, sans-serif;
    font-size: 16px;
    transition: var(--honor-transition);
    background: white;
}

.honor-form-control:focus {
    outline: none;
    border-color: var(--honor-secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.honor-form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.honor-form-text {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--honor-gray);
}

.honor-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.honor-form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.honor-form-check-label {
    cursor: pointer;
    user-select: none;
}

/* جدول‌ها */
.honor-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.honor-table th {
    background: linear-gradient(135deg, var(--honor-primary), var(--honor-secondary));
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
}

.honor-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.honor-table tr:hover {
    background: #f8f9fa;
}

.honor-table tr:last-child td {
    border-bottom: none;
}

/* لیست‌ها */
.honor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.honor-list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: var(--honor-transition);
}

.honor-list-item:hover {
    background: #f8f9fa;
}

.honor-list-item:last-child {
    border-bottom: none;
}

/* آیکون‌ها */
.honor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.honor-icon-sm {
    width: 16px;
    height: 16px;
}

.honor-icon-lg {
    width: 32px;
    height: 32px;
}

/* جداکننده */
.honor-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 20px 0;
    border: none;
}

/* بَدج */
.honor-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.honor-badge-primary {
    background: rgba(26, 82, 118, 0.1);
    color: var(--honor-primary);
}

.honor-badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--honor-success);
}

.honor-badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--honor-accent);
}

.honor-badge-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--honor-warning);
}

/* لودینگ */
.honor-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--honor-primary);
    animation: honorSpin 1s ease-in-out infinite;
}

@keyframes honorSpin {
    to { transform: rotate(360deg); }
}

.honor-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* انیمیشن‌ها */
@keyframes honorFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes honorFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

@keyframes honorSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes honorSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes honorPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes honorShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* کلاس‌های کاربردی */
.honor-animate-fadein {
    animation: honorFadeIn 0.5s ease forwards;
}

.honor-animate-slidein {
    animation: honorSlideIn 0.3s ease forwards;
}

.honor-animate-pulse {
    animation: honorPulse 2s infinite;
}

.honor-text-center { text-align: center; }
.honor-text-right { text-align: right; }
.honor-text-left { text-align: left; }

.honor-m-0 { margin: 0; }
.honor-mt-1 { margin-top: 4px; }
.honor-mt-2 { margin-top: 8px; }
.honor-mt-3 { margin-top: 12px; }
.honor-mt-4 { margin-top: 16px; }
.honor-mt-5 { margin-top: 20px; }

.honor-p-0 { padding: 0; }
.honor-p-1 { padding: 4px; }
.honor-p-2 { padding: 8px; }
.honor-p-3 { padding: 12px; }
.honor-p-4 { padding: 16px; }
.honor-p-5 { padding: 20px; }

/* گرید */
.honor-grid {
    display: grid;
    gap: 20px;
}

.honor-grid-2 { grid-template-columns: repeat(2, 1fr); }
.honor-grid-3 { grid-template-columns: repeat(3, 1fr); }
.honor-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* فاصله‌های ریسپانسیو */
@media (max-width: 1200px) {
    .honor-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .honor-grid-4, .honor-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .honor-grid-4, .honor-grid-3, .honor-grid-2 { grid-template-columns: 1fr; }
    
    .honor-table {
        display: block;
        overflow-x: auto;
    }
    
    .honor-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .honor-form-control {
        font-size: 16px; /* جلوگیری از زوم در موبایل */
    }
}

@media (max-width: 576px) {
    :root {
        --honor-radius-md: 8px;
        --honor-radius-lg: 12px;
    }
    
    .honor-card-body,
    .honor-card-header,
    .honor-card-footer {
        padding: 15px;
    }
}