/* ============================================================
   MinerCore Smart Announcement Popup Styles (Glassmorphic Dark Mode)
   ============================================================ */

.mc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(5, 18, 33, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mc-popup-overlay.mc-popup-active {
    opacity: 1;
    visibility: visible;
}

.mc-popup-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: linear-gradient(145deg, #0c233c 0%, #07192d 100%);
    border: 1px solid rgba(85, 223, 208, 0.28);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(85, 223, 208, 0.12);
    border-radius: 16px;
    overflow: hidden;
    color: #eef8fb;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mc-popup-overlay.mc-popup-active .mc-popup-card {
    transform: translateY(0) scale(1);
}

/* Close Button */
.mc-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    line-height: 1;
    padding: 0;
}

.mc-popup-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg);
}

/* Layout Content Grid */
.mc-popup-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.mc-popup-card.has-image .mc-popup-inner {
    grid-template-columns: 200px minmax(0, 1fr);
}

.mc-popup-media {
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mc-popup-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-popup-content-wrap {
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mc-popup-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.mc-popup-body {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #c5d8e6;
    margin-bottom: 20px;
}

.mc-popup-body p {
    margin: 0 0 10px 0;
}

.mc-popup-body p:last-child {
    margin-bottom: 0;
}

/* Custom HTML Elements styling inside popup body */
.mc-popup-body code, 
.mc-popup-body strong {
    color: #55dfd0;
    font-weight: 700;
}

.mc-popup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mc-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff !important;
    border: 1px solid #2dd4bf;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
}

.mc-popup-btn:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .mc-popup-card {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .mc-popup-card.has-image .mc-popup-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .mc-popup-media {
        max-height: 160px;
    }
    
    .mc-popup-content-wrap {
        padding: 22px 18px 20px;
    }
    
    .mc-popup-title {
        font-size: 1.15rem;
        padding-right: 24px;
    }
    
    .mc-popup-body {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .mc-popup-btn {
        width: 100%;
        padding: 11px 16px;
        font-size: 0.86rem;
    }
}
