/* Marketing Components for Arielle App */

:root {
    --promo-gold: #D4AF37;
    --promo-red: #8B0000;
    --promo-bg: #1A1A1A;
    --promo-text: #FFFFFF;
}

/* Coupon Modal Overlay */
.coupon-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.coupon-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Coupon Modal */
.coupon-modal {
    background: #FFFFFF;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.coupon-modal-overlay.active .coupon-modal {
    transform: scale(1) translateY(0);
}

.coupon-modal-header {
    background: var(--promo-bg);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.coupon-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.coupon-modal-close:hover {
    color: white;
}

.coupon-badge {
    display: inline-block;
    background: var(--promo-gold);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.coupon-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.coupon-modal-header p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.coupon-modal-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

/* Coupon Code Box */
.coupon-code-container {
    background: #F8F8F8;
    border: 2px dashed #DDD;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.coupon-code-container:hover {
    background: #F0F0F0;
}

.coupon-code-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.coupon-copy-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Countdown Timer */
.coupon-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.timer-part {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: #000;
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Message & Usage */
.coupon-extra-msg {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.usage-stats {
    background: #EAE3D9;
    color: #6B5E4C;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usage-progress {
    flex: 1;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    margin: 0 1rem;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    background: var(--promo-gold);
    width: 0%;
    transition: width 1s ease-out;
}

/* Ribbon (Promoter Banner) */
.marketing-ribbon {
    position: relative;
    top: 0; 
    left: 0;
    width: 100%;
    background: #1A1A1A;
    color: white;
    overflow: hidden;
    height: 0; /* Initially hidden */
    transition: height 0.4s ease;
    z-index: 10; 
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.marketing-ribbon.active {
    height: 40px;
}

.ribbon-content {
    white-space: nowrap;
    display: flex;
    animation: marquee 25s linear infinite;
}

.ribbon-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ribbon-item span {
    color: var(--promo-gold);
    font-weight: 700;
    margin: 0 5px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .coupon-modal {
        width: 95%;
    }
    .coupon-modal-header h2 {
        font-size: 1.8rem;
    }
    .timer-value {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}
