/**
 * MS Frontend Admin Hub - Frontend Widgets CSS
 * 플로팅 배너 + 팝업 프론트엔드 스타일
 */

/* Google Material Icons */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400;
    vertical-align: middle;
}

/* ==========================================
   플로팅 위젯
   ========================================== */
.msfah-floating-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.msfah-floating-btn:hover {
    transform: scale(1.05);
}

.msfah-floating-top-btn:hover {
    opacity: 0.85;
}

/* ==========================================
   팝업 오버레이
   ========================================== */
.msfah-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.msfah-popup-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: msfah-popup-fade-in 0.3s ease-out;
}

@keyframes msfah-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.msfah-popup-content {
    width: 100%;
    overflow: hidden;
    position: relative;
    flex: 1;
    min-height: 0;
}

.msfah-popup-content img {
    width: 100%;
    height: auto;
    display: block;
}

.msfah-popup-content a {
    display: block;
}

/* Dots */
.msfah-popup-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    background: #fff;
}

.msfah-popup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.msfah-popup-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

/* Footer */
.msfah-popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.msfah-popup-footer button {
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.msfah-popup-footer button:hover {
    color: #333;
}

/* Mobile */
@media (max-width: 480px) {
    .msfah-popup-container {
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }

    .msfah-floating-widget {
        right: 10px !important;
        bottom: 80px !important;
        width: 80px !important;
    }
}
