/**
 * KantanPro更新通知吹き出しスタイル
 * 
 * @package KantanPro
 * @since 1.0.4
 */

/* 吹き出しコンテナ */
.ktpwp-update-balloon {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    max-width: 450px;
    width: 90%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ktpwp-update-balloon.show {
    opacity: 1;
    visibility: visible;
}

/* 吹き出しヘッダー */
.ktpwp-update-balloon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.ktpwp-update-balloon-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ktpwp-update-balloon-title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
}

.ktpwp-update-balloon-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.ktpwp-update-balloon-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 吹き出しコンテンツ */
.ktpwp-update-balloon-content {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ktpwp-update-balloon-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.ktpwp-update-balloon-message {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    flex: 1;
}

.ktpwp-update-balloon-version {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    font-size: 13px;
    color: #495057;
}

.ktpwp-update-balloon-version strong {
    color: #333;
}

/* 吹き出しボタン */
.ktpwp-update-balloon-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.ktpwp-update-balloon-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ktpwp-update-balloon-btn-primary {
    background: #0073aa;
    color: #fff;
}

.ktpwp-update-balloon-btn-primary:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-1px);
}

.ktpwp-update-balloon-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.ktpwp-update-balloon-btn-secondary:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

.ktpwp-update-balloon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ローディング状態 */
.ktpwp-update-balloon-loading {
    text-align: center;
    padding: 20px;
}

.ktpwp-update-balloon-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* オーバーレイ */
.ktpwp-update-balloon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.ktpwp-update-balloon-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .ktpwp-update-balloon {
        width: 95%;
        padding: 15px;
    }
    
    .ktpwp-update-balloon-title {
        font-size: 16px;
    }
    
    .ktpwp-update-balloon-actions {
        flex-direction: column;
    }
    
    .ktpwp-update-balloon-btn {
        width: 100%;
        justify-content: center;
    }
}

/* アニメーション */
.ktpwp-update-balloon.slide-in {
    animation: slideIn 0.3s ease-out;
}

.ktpwp-update-balloon.slide-out {
    animation: slideOut 0.3s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
} 