/* 
 * Promotional Events Design System
 * Premium Glassmorphism & Neon Glow
 */

:root {
    --promo-primary: #8e2de2;
    --promo-secondary: #4a00e0;
    --promo-glow: rgba(142, 45, 226, 0.5);
    --promo-bg: rgba(15, 12, 41, 0.95);
    --promo-surface: rgba(255, 255, 255, 0.05);
    --promo-text: #ffffff;
    --promo-text-dim: #b0b0b0;
}

/* Event Style: Dark Purple (Default) */
.promo-modal.dark-purple {
    --promo-primary: #8e2de2;
    --promo-secondary: #4a00e0;
    --promo-glow: rgba(142, 45, 226, 0.5);
}

/* Event Style: Neon Blue */
.promo-modal.neon-blue {
    --promo-primary: #00d2ff;
    --promo-secondary: #3a7bd5;
    --promo-glow: rgba(0, 210, 255, 0.5);
}

/* Event Style: Gold Luxury */
.promo-modal.gold-luxury {
    --promo-primary: #f8ad03;
    --promo-secondary: #c77d02;
    --promo-glow: rgba(248, 173, 3, 0.5);
}

/* Modal Core Styles */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.promo-modal {
    width: 90%;
    max-width: 480px;
    background: var(--promo-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 0 40px var(--promo-glow);
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--promo-text);
    font-family: 'Inter', sans-serif;
}

.promo-modal-overlay.active .promo-modal {
    transform: translateY(0) scale(1);
}

/* Close Button */
.promo-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.promo-close:hover {
    color: #fff;
}

/* Modal Content Sections */
.promo-step {
    display: none;
    padding: 30px;
    animation: fadeInSlide 0.5s ease forwards;
}

.promo-step.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Step 1: Announcement */
.promo-header {
    text-align: center;
    margin-bottom: 30px;
}

.promo-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(90deg, var(--promo-primary), var(--promo-secondary));
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px var(--promo-glow);
}

.promo-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(to bottom, #fff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--promo-text-dim);
    text-align: center;
    margin-bottom: 25px;
}

/* Step 2: Amount Selection */
.promo-amounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.promo-amount-item {
    background: var(--promo-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-amount-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--promo-primary);
    transform: translateY(-3px);
}

.promo-amount-item.selected {
    background: linear-gradient(135deg, var(--promo-primary), var(--promo-secondary));
    border-color: transparent;
    box-shadow: 0 10px 20px var(--promo-glow);
}

.promo-amount-item.selected .amount-icon i {
    color: #fff !important;
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.amount-label {
    font-size: 12px;
    color: var(--promo-text-dim);
    margin-top: 5px;
}

.selected .amount-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Step 3: Confirmation/Action */
.promo-action-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.promo-icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--promo-primary), var(--promo-secondary));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px var(--promo-glow);
}

/* Buttons */
.promo-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.promo-btn-primary {
    background: linear-gradient(90deg, var(--promo-primary), var(--promo-secondary));
    color: #fff;
    box-shadow: 0 8px 25px var(--promo-glow);
}

.promo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--promo-glow);
    filter: brightness(1.1);
}

.promo-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.promo-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.promo-footer-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.promo-footer-actions .promo-btn {
    flex: 1;
    margin-top: 0;
}

/* Arabic RTL Support */
[lang="ar"] .promo-modal {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

[lang="ar"] .promo-step {
    animation: fadeInSlideAr 0.5s ease forwards;
}

@keyframes fadeInSlideAr {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Glow Decoration */
.promo-modal::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: var(--promo-primary);
    filter: blur(80px);
    opacity: 0.3;
}

.promo-modal::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--promo-secondary);
    filter: blur(80px);
    opacity: 0.3;
}
