/**
 * Exit Intent Popup Styles
 * 控えめな離脱防止ポップアップのスタイル
 * 
 * @package Funbrew
 */

/* ポップアップコンテナ */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-popup.show {
    display: block;
    opacity: 1;
}

/* オーバーレイ */
.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* コンテンツ */
.exit-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 90%;
    transition: transform 0.3s ease;
}

.exit-popup.show .exit-popup-content {
    transform: translate(-50%, -50%) scale(1);
}

/* 閉じるボタン */
.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.exit-popup-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* ボディ */
.exit-popup-body {
    padding: 48px 32px 32px;
    text-align: center;
}

/* アイコン */
.exit-popup-icon {
    margin-bottom: 24px;
    color: var(--color-primary);
}

/* タイトル */
.exit-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    line-height: 1.4;
}

/* テキスト */
.exit-popup-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* 特徴リスト */
.exit-popup-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.exit-popup-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.exit-popup-feature svg {
    color: var(--color-primary);
}

/* アクションボタン */
.exit-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exit-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.exit-popup-cta:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 99, 212, 0.3);
}

.exit-popup-cancel {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #999 !important;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.exit-popup-cancel:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #ccc !important;
    text-decoration: underline;
}

/* ボディのスクロール防止 */
body.popup-open {
    overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .exit-popup-body {
        padding: 40px 24px 24px;
    }
    
    .exit-popup-title {
        font-size: 20px;
    }
    
    .exit-popup-text {
        font-size: 14px;
    }
    
    .br-pc {
        display: none;
    }
    
    .exit-popup-features {
        gap: 16px;
    }
    
    .exit-popup-feature {
        font-size: 12px;
    }
    
    .exit-popup-cta {
        font-size: 14px;
        padding: 14px 24px;
    }
}