@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

.gpt-luxury-container {
    font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* هدر لوکس */
.gpt-header {
    background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gpt-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.gpt-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
}

.gpt-live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* گرید کارت‌ها */
.gpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: rgba(0, 0, 0, 0.04);
}

/* کارت قیمت لوکس */
.gpt-card {
    background: #ffffff;
    padding: 24px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gpt-card:hover {
    background: #fafafa;
    transform: translateY(-1px);
}

.gpt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.gpt-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.gpt-card-icon {
    width: 35px;
    height: 35px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.gpt-card-body {
    flex: 1;
}

.gpt-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.gpt-unit {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
}

.gpt-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.gpt-change.increase {
    color: #059669;
}

.gpt-change.decrease {
    color: #dc2626;
}

.gpt-change.neutral {
    color: #6b7280;
}

.gpt-change-arrow {
    font-size: 0.7rem;
}

/* انیمیشن نامحسوس برای تغییرات */
.gpt-price-update {
    animation: subtleGlow 0.6s ease-out;
}

@keyframes subtleGlow {
    0% { 
        background-color: rgba(16, 185, 129, 0.1);
        transform: scale(1);
    }
    50% { 
        background-color: rgba(16, 185, 129, 0.05);
        transform: scale(1.001);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

.gpt-loading {
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* فوتر */
.gpt-footer {
    background: #fafafa;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gpt-update-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}

.gpt-clock {
    font-size: 0.875rem;
}

/* ریسپانسیو */
@media (max-width: 640px) {
    .gpt-luxury-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .gpt-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .gpt-card {
        padding: 20px;
        min-height: 100px;
    }
    
    .gpt-price {
        font-size: 1.375rem;
    }
    
    .gpt-header {
        padding: 24px 20px 20px;
    }
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .gpt-luxury-container {
        background: #1f2937;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .gpt-header {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .gpt-title {
        color: #f9fafb;
    }
    
    .gpt-subtitle {
        color: #d1d5db;
    }
    
    .gpt-card {
        background: #1f2937;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .gpt-card:hover {
        background: #374151;
    }
    
    .gpt-card-title {
        color: #e5e7eb;
    }
    
    .gpt-price {
        color: #f9fafb;
    }
    
    .gpt-unit {
        color: #9ca3af;
    }
    
    .gpt-card-icon {
        background: #374151;
        color: #9ca3af;
    }
    
    .gpt-footer {
        background: #374151;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* انیمیشن لودینگ اولیه */
.gpt-card {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* شیمر ساده برای لودینگ */
.gpt-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
