/* promotion/style.css - 3D PROFESSIONAL UI & AUTO-DELETE LINE */

.promo-overlay, .promo-bottom-sticky {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

/* =========================================
   CENTER POPUP (Overlay - BLUR FIXED)
========================================= */
.promo-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);         /* Fixed blur */
    -webkit-backdrop-filter: blur(6px); /* Safari support for blur */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.promo-box {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: transparent;
    border-radius: 12px;
    /* 3D Ubhari Hui Effect */
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.15);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Full Clickable Area */
.promo-link-wrapper {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 2px solid #fff;
}

.promo-media {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

/* Shaking Button */
.promo-action-btn {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626; /* Premium Red */
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.5);
    border: 2px solid #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: shakeBtn 2.5s infinite;
    z-index: 10;
}

@keyframes shakeBtn {
    0% { transform: translateX(-50%) scale(1); }
    5% { transform: translateX(-52%) rotate(-3deg); }
    10% { transform: translateX(-48%) rotate(3deg); }
    15% { transform: translateX(-52%) rotate(-3deg); }
    20% { transform: translateX(-48%) rotate(3deg); }
    25% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Center Progress Line */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    z-index: 15;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: #ef4444; 
    box-shadow: 0 0 10px #ef4444;
}

/* Center Controls (Timer & Cut Button) */
.promo-controls {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 20;
    display: flex;
    gap: 10px;
}
.timer-badge {
    background: #111;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #444;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.close-round {
    width: 34px;
    height: 34px;
    background: #fff;
    color: #dc2626;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 2px solid #dc2626;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.close-round:hover { transform: scale(1.15) rotate(90deg); background: #fee2e2; }

/* =========================================
   BOTTOM STICKY AD (Clear & Professional)
========================================= */

/* Mobile Base Style */
.promo-bottom-sticky {
    display: none; 
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 5px 15px rgba(0,0,0,0.2);
    z-index: 99999;
    padding: 0;
    overflow: visible;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
}

/* 💻 LAPTOP/DESKTOP LEFT CORNER EFFECT */
@media (min-width: 768px) {
    .promo-bottom-sticky {
        bottom: 25px;
        left: 25px;
        transform: none; 
        width: 380px; 
        animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
}

@keyframes slideInLeft {
    from { transform: translateX(-150%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.sticky-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Full Image Wrapper */
.sticky-media-wrap {
    width: 100%;
    max-height: 120px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-media {
    width: 100%;
    height: 100%;
    max-height: 120px;
    object-fit: cover; 
}

.sticky-content {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.sticky-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sticky-cta {
    font-size: 11px;
    color: #fff;
    background: #2563eb;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 10px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    animation: pulseBtn 1.5s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Bottom Auto Close Line */
.sticky-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.05);
}
.sticky-progress-bar {
    height: 100%;
    width: 0%;
    background: #dc2626; 
    box-shadow: 0 0 8px #dc2626;
}

/* 🌟 Bottom Ad Controls Wrapper */
.sticky-controls {
    position: absolute;
    top: -12px;
    right: -10px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

/* 🌟 Bottom Ad Timer Badge */
.sticky-timer-badge {
    background: #111;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
}

/* 🌟 Bottom Ad Close Button */
.sticky-close {
    position: relative;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #fff;
    color: #dc2626;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: none; 
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sticky-close:hover {
    transform: scale(1.2) rotate(90deg);
    background: #fee2e2;
}