/**
 * プッシュ通知許可UI スタイルシート
 * NEXUS COLLEGE - セミナーリマインダー機能
 */

/* 通知許可バナー（ページ上部に表示） */
.notification-prompt-banner {
    background: linear-gradient(135deg, #FFB6D9 0%, #89CFF0 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideDown 0.5s ease-out;
    margin-bottom: 20px;
    border-radius: 12px;
}

.notification-prompt-banner.hidden {
    display: none;
}

.notification-prompt-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.notification-prompt-text {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.notification-prompt-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-prompt-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.notification-prompt-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 通知有効化ボタン */
.btn-enable-notifications {
    background: white;
    color: #FFB6D9;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-enable-notifications:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-enable-notifications:active {
    transform: translateY(0);
}

.btn-enable-notifications.enabled {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: default;
}

.btn-enable-notifications.enabled:hover {
    transform: none;
}

/* 後で設定ボタン */
.btn-dismiss-prompt {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dismiss-prompt:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* 閉じるボタン */
.notification-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px 10px;
}

.notification-prompt-close:hover {
    opacity: 1;
}

/* セミナーカレンダー用リマインダーボタン */
.reminder-button {
    background: linear-gradient(135deg, #FFB6D9 0%, #89CFF0 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 182, 217, 0.3);
}

.reminder-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 217, 0.4);
}

.reminder-button:active {
    transform: translateY(0);
}

.reminder-button.enabled {
    background: linear-gradient(135deg, #A8E6CF 0%, #81C784 100%);
    cursor: default;
}

.reminder-button.enabled:hover {
    transform: none;
}

.reminder-button i {
    font-size: 16px;
}

/* 通知ステータスインジケーター */
.notification-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.notification-status.enabled {
    background: linear-gradient(135deg, #A8E6CF 0%, #81C784 100%);
    color: white;
}

.notification-status.disabled {
    background: linear-gradient(135deg, #FFB6D9 0%, #89CFF0 100%);
    color: white;
    opacity: 0.7;
}

/* アニメーション */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-enable-notifications.pulse {
    animation: pulse 2s infinite;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .notification-prompt-content {
        flex-direction: column;
        text-align: center;
    }

    .notification-prompt-text {
        text-align: center;
    }

    .notification-prompt-text h3 {
        justify-content: center;
        font-size: 16px;
    }

    .notification-prompt-text p {
        font-size: 13px;
    }

    .notification-prompt-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-enable-notifications {
        font-size: 15px;
        padding: 10px 25px;
    }

    .btn-dismiss-prompt {
        font-size: 13px;
        padding: 8px 16px;
    }

    .notification-prompt-close {
        top: 8px;
        right: 8px;
        font-size: 18px;
    }

    .reminder-button {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* モバイル（小画面）対応 */
@media (max-width: 480px) {
    .notification-prompt-banner {
        padding: 15px;
        margin-bottom: 15px;
    }

    .notification-prompt-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-enable-notifications,
    .btn-dismiss-prompt {
        width: 100%;
        justify-content: center;
    }
}

/* プリント時は非表示 */
@media print {
    .notification-prompt-banner,
    .reminder-button,
    .notification-status {
        display: none !important;
    }
}
