/* SNSマーケターAIHey - フローティング通知バナー */
.hey-floating-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ff6b6b 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
    z-index: 1000;
    overflow: hidden;
    animation: notificationSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hey-floating-notification:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.5);
}

.hey-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    position: relative;
    z-index: 3;
}

.hey-notification-left {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 16px;
}

.hey-notification-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

.hey-notification-text {
    color: white;
}

.hey-notification-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: titleGlow 2s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hey-notification-title-emoji {
    flex-shrink: 0;
    font-size: 20px;
}

.hey-notification-title-text {
    line-height: 1.3;
}

.hey-notification-subtitle {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hey-notification-right {
    display: flex;
    align-items: center;
}

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

.hey-notification-info-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hey-notification-info-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hey-notification-cta-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #ff6b6b;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hey-notification-cta-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ff4757;
}

.hey-notification-cta-btn:active {
    transform: translateY(0);
}

.hey-notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hey-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 装飾要素 */
.hey-notification-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.sparkle-3 {
    top: 30%;
    right: 30%;
    animation-delay: 2s;
}

.sparkle-4 {
    top: 70%;
    left: 20%;
    animation-delay: 3s;
}

.hey-notification-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    animation: gradientShift 3s ease-in-out infinite;
    z-index: 2;
}

/* フローティング通知バナー用アニメーション */
@keyframes notificationSlideUp {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

@keyframes gradientShift {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hey-floating-notification {
        bottom: 10px;
        width: 95%;
        max-width: none;
        border-radius: 16px;
    }
    
    .hey-notification-content {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hey-notification-left {
        flex-direction: column;
        gap: 12px;
    }
    
    .hey-notification-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .hey-notification-title {
        font-size: 16px;
    }
    
    .hey-notification-subtitle {
        font-size: 13px;
    }
    
    .hey-notification-actions {
        gap: 8px;
    }
    
    .hey-notification-cta-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .hey-notification-info-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .hey-notification-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* モーダル用アニメーション */
@keyframes modalIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes modalSparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

@keyframes modalTitleGlow {
    0% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes modalBadgePulse {
    0%, 100% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.3);
    }
}

@keyframes modalGradientShift {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Hey連携モーダル専用のModaalスタイル調整 */
#hey-integrate-modal .modaal-content {
    padding: 20px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: none !important;
    width: auto !important;
}

#hey-integrate-modal .modaal-focus {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hey連携モーダル専用のModaal コンテナスタイル調整 */
#hey-integrate-modal .modaal-container {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
}

#hey-integrate-modal .modaal-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

#hey-integrate-modal .modaal-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* SNSマーケターAIHeyモーダル - フローティングバナーテーマ */
.hey-notification-modal {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 90vw;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.hey-notification-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 16px;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    border-radius: 20px 20px 0 0;
}

.hey-notification-modal-icon-container {
    position: relative;
}

.hey-notification-modal-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalIconFloat 3s ease-in-out infinite;
}

.hey-notification-modal-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.modal-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: modalSparkleFloat 4s ease-in-out infinite;
}

.modal-sparkle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.modal-sparkle-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.modal-sparkle-3 {
    top: 30%;
    right: 30%;
    animation-delay: 3s;
}

.hey-notification-modal-title-section {
    flex: 1;
}

.hey-notification-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: modalTitleGlow 2s ease-in-out infinite alternate;
}

.hey-notification-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hey-notification-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalBadgePulse 2s ease-in-out infinite;
}

.hey-notification-modal-body {
    padding: 0 24px 16px;
    position: relative;
    z-index: 3;
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.hey-notification-modal-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hey-notification-modal-section:first-child {
    flex: 1.2;
}

.hey-notification-modal-section:last-child {
    flex: 1.8;
}

.hey-notification-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.hey-notification-section-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.hey-notification-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-shadow: none;
}

.hey-notification-section-description {
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
    margin: 0;
    text-shadow: none;
    flex: 1;
}

.hey-notification-benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.hey-notification-benefit-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.hey-notification-benefit-card:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hey-notification-benefit-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.hey-notification-benefit-content {
    flex: 1;
}

.hey-notification-benefit-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-shadow: none;
}

.hey-notification-benefit-desc {
    font-size: 11px;
    color: #495057;
    margin: 0;
    line-height: 1.3;
    text-shadow: none;
}

.hey-notification-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 20px;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e9ecef;
}

.hey-notification-cancel-btn {
    flex: 1;
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hey-notification-cancel-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    border-color: #adb5bd;
}

.hey-notification-primary-btn {
    flex: 2;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hey-notification-primary-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
}

.hey-notification-primary-btn:active {
    transform: translateY(0);
}

.hey-notification-modal-gradient {
    display: none;
}

/* Hey連携モーダル用レスポンシブ対応 */
@media (max-width: 768px) {
    #hey-integrate-modal .modaal-content {
        padding: 15px !important;
    }
    
    .hey-notification-modal {
        margin: 5px;
        max-width: none;
        width: 95vw;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .hey-notification-modal-header {
        padding: 16px 16px 12px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .hey-notification-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .hey-notification-modal-title {
        font-size: 18px;
    }
    
    .hey-notification-modal-subtitle {
        font-size: 13px;
    }
    
    .hey-notification-modal-body {
        padding: 0 16px 12px;
        flex-direction: column;
        gap: 12px;
    }
    
    .hey-notification-modal-section {
        padding: 12px;
    }
    
    .hey-notification-benefit-card {
        padding: 10px;
    }
    
    .hey-notification-modal-footer {
        padding: 12px 16px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .hey-notification-cancel-btn,
    .hey-notification-primary-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
}

/* セッション中にバナーを閉じたタブでは初期描画もさせない */
.hey-banner-closed #hey-floating-notification {
    display: none !important;
}

/* バナー再表示ミニカード（左下） */
.hey-reopen-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ff6b6b 100%);
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 230px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    cursor: pointer;
    z-index: 1002;
    font-size: 14px;
    transition: transform .2s, opacity .2s;
}

.hey-reopen-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    animation: gradientShift 3s ease-in-out infinite;
    pointer-events: none;
}

.hey-reopen-card:hover {
    transform: translateY(-2px);
}

.hey-reopen-card-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #fff;
}
