/* MYReta Homepage Advertiser Popup Styles */

#myreta-popup-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#myreta-popup-container *,
#myreta-popup-container *::before,
#myreta-popup-container *::after {
    box-sizing: border-box;
}

/* Positions */
#myreta-popup-container.myreta-pos-bottom-right {
    bottom: 24px;
    right: 24px;
}

#myreta-popup-container.myreta-pos-bottom-left {
    bottom: 24px;
    left: 24px;
}

#myreta-popup-container.myreta-pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Visibility states */
.myreta-popup-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(30px) scale(0.95);
}

#myreta-popup-container.myreta-pos-center.myreta-popup-hidden {
    transform: translate(-50%, -40%) scale(0.95);
}

.myreta-popup-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

#myreta-popup-container.myreta-pos-center.myreta-popup-visible {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Card Container */
.myreta-popup-card {
    width: 380px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
    position: relative;
    overflow: hidden;
}

/* Accent Top Glow Line */
.myreta-popup-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #06b6d4 100%);
}

/* Close Button */
.myreta-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.myreta-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Header & Badge */
.myreta-popup-header {
    margin-bottom: 12px;
    padding-right: 24px;
}

.myreta-popup-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.myreta-popup-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
}

/* Content Body */
.myreta-popup-content p {
    margin: 0 0 16px 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #cbd5e1;
}

/* CTA Button */
.myreta-popup-actions {
    margin-top: 14px;
}

.myreta-popup-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
}

.myreta-popup-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.6);
    transform: translateY(-1px);
}

/* Footer Note */
.myreta-popup-footer-note {
    margin-top: 12px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.myreta-brand-highlight {
    color: #38bdf8;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    #myreta-popup-container.myreta-pos-bottom-right,
    #myreta-popup-container.myreta-pos-bottom-left {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .myreta-popup-card {
        width: 100%;
        padding: 18px;
    }
}
