/*! ==========================================
    💎 LUXURY PREMIUM BUTTONS
    Beautiful Gold & Black Theme
    ========================================== */

/* ==========================================
   🎨 رنگ‌های طلایی لوکس
   ========================================== */
:root {
    /* طلایی‌های عالی برای Light Mode */
    --btn-gold-rich: #DAA520 !important;        /* طلایی غنی */
    --btn-gold-bright: #FFD700 !important;      /* طلایی درخشان */
    --btn-gold-dark: #B8860B !important;        /* طلایی تیره */
    --btn-bronze: #CD7F32 !important;           /* برنزی */
    --btn-champagne: #F7E7CE !important;        /* شامپاینی */
}

[data-theme="dark"] {
    /* طلایی‌های عالی برای Dark Mode */
    --btn-gold-rich: #FFD700 !important;        /* طلایی روشن */
    --btn-gold-bright: #FFC107 !important;      /* طلایی زرد */
    --btn-gold-dark: #FFB300 !important;        /* طلایی نارنجی */
}

/* ==========================================
   🔘 PRIMARY BUTTON - طلایی لوکس
   ========================================== */
.btn-primary {
    /* Light Mode */
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%) !important;
    border: none !important;
    color: #1C1C1E !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 14px rgba(218, 165, 32, 0.35),
                inset 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* افکت shine */
.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.btn-primary:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
                0 2px 8px rgba(255, 215, 0, 0.3),
                inset 0 -2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.btn-primary:active {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%) !important;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4),
                inset 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(0) !important;
}

.btn-primary:focus {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
                0 0 0 4px rgba(255, 215, 0, 0.25) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: linear-gradient(135deg, #D1D1D6 0%, #E5E5EA 100%) !important;
    color: #8E8E93 !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

/* ==========================================
   🌙 DARK MODE - PRIMARY BUTTON
   ========================================== */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    color: #1C1C1E !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4),
                0 0 20px rgba(255, 215, 0, 0.2),
                inset 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #FFEB3B 0%, #FFD700 100%) !important;
    color: #000000 !important;
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6),
                0 0 30px rgba(255, 215, 0, 0.4),
                inset 0 -2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

[data-theme="dark"] .btn-primary:active {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%) !important;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.5),
                inset 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================
   🔘 SECONDARY BUTTON - خاکستری شیک
   ========================================== */
.btn-secondary {
    background: #F5F5F7 !important;
    border: 2px solid #D1D1D6 !important;
    color: #3A3A3C !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-secondary:hover {
    background: #FFFFFF !important;
    border-color: #DAA520 !important;
    color: #DAA520 !important;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2),
                0 0 0 4px rgba(218, 165, 32, 0.1) !important;
    transform: translateY(-1px) !important;
}

.btn-secondary:active {
    background: #F5F5F7 !important;
    transform: translateY(0) !important;
}

/* Dark Mode */
[data-theme="dark"] .btn-secondary {
    background: #2C2C2E !important;
    border: 2px solid #48484A !important;
    color: #E5E5E7 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #3A3A3C !important;
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3),
                0 0 0 4px rgba(255, 215, 0, 0.15) !important;
}

/* ==========================================
   🔘 ACCENT BUTTON - برنزی طلایی
   ========================================== */
.btn-accent {
    background: linear-gradient(135deg, #CD7F32 0%, #DAA520 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 4px 14px rgba(205, 127, 50, 0.4),
                inset 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #B8860B 0%, #CD7F32 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.5),
                inset 0 -2px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Dark Mode */
[data-theme="dark"] .btn-accent {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%) !important;
    color: #1C1C1E !important;
    text-shadow: none !important;
}

[data-theme="dark"] .btn-accent:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5) !important;
}

/* ==========================================
   🔘 OUTLINE PRIMARY - خط طلایی
   ========================================== */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid #DAA520 !important;
    color: #DAA520 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%) !important;
    border-color: #FFD700 !important;
    color: #1C1C1E !important;
    box-shadow: 0 4px 16px rgba(218, 165, 32, 0.4),
                inset 0 -2px 6px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.btn-outline-primary:active {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%) !important;
    transform: translateY(0) !important;
}

/* Dark Mode */
[data-theme="dark"] .btn-outline-primary {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    color: #1C1C1E !important;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.5) !important;
}

/* ==========================================
   🔘 DARK BUTTON - مشکی لوکس
   ========================================== */
.btn-dark {
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%) !important;
    border: none !important;
    color: #FFD700 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(28, 28, 30, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #2C2C2E 0%, #3A3A3C 100%) !important;
    color: #FFEB3B !important;
    box-shadow: 0 6px 20px rgba(28, 28, 30, 0.4),
                0 0 20px rgba(255, 215, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Dark Mode */
[data-theme="dark"] .btn-dark {
    background: linear-gradient(135deg, #E5E5E7 0%, #F5F5F7 100%) !important;
    color: #1C1C1E !important;
}

[data-theme="dark"] .btn-dark:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E5E7 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================
   🔘 LIGHT BUTTON - سفید شیک
   ========================================== */
.btn-light {
    background: #FFFFFF !important;
    border: 2px solid #E5E5EA !important;
    color: #3A3A3C !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.btn-light:hover {
    background: #FFFFFF !important;
    border-color: #DAA520 !important;
    color: #DAA520 !important;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.25),
                0 0 0 4px rgba(218, 165, 32, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Dark Mode */
[data-theme="dark"] .btn-light {
    background: #2C2C2E !important;
    border-color: #48484A !important;
    color: #E5E5E7 !important;
}

[data-theme="dark"] .btn-light:hover {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
}

/* ==========================================
   🔘 SUCCESS, INFO, WARNING, DANGER
   ========================================== */
.btn-success {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.4) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #9A7209 0%, #B8860B 100%) !important;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.5) !important;
    transform: translateY(-2px) !important;
}

.btn-info {
    background: linear-gradient(135deg, #F7E7CE 0%, #FFD700 100%) !important;
    border: none !important;
    color: #1C1C1E !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(247, 231, 206, 0.4) !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-2px) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #FFC107 0%, #FFD700 100%) !important;
    border: none !important;
    color: #1C1C1E !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5) !important;
    transform: translateY(-2px) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #C9704A 0%, #CD7F32 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(201, 112, 74, 0.4) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #A85838 0%, #C9704A 100%) !important;
    box-shadow: 0 6px 20px rgba(201, 112, 74, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================
   ✨ BUTTON EFFECTS & ANIMATIONS
   ========================================== */
.btn {
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer !important;
}

.btn:not(:disabled):not(.disabled):active {
    transform: scale(0.98) !important;
}

/* Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ==========================================
   📏 BUTTON SIZES
   ========================================== */
.btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1.1rem !important;
    border-radius: 0.75rem !important;
}

.btn-sm {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.5rem !important;
}

.btn-xs {
    padding: 0.375rem 1rem !important;
    font-size: 0.8125rem !important;
    border-radius: 0.375rem !important;
}

/* ==========================================
   🎯 BUTTON GROUPS
   ========================================== */
.btn-group .btn-primary {
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.btn-group .btn-primary:last-child {
    border-right: none !important;
}

/* ==========================================
   ♿ ACCESSIBILITY
   ========================================== */
.btn:focus-visible {
    outline: 3px solid rgba(218, 165, 32, 0.5) !important;
    outline-offset: 2px !important;
}

[data-theme="dark"] .btn:focus-visible {
    outline-color: rgba(255, 215, 0, 0.5) !important;
}