/* =========================================================================
   fc/callout & fc/notification - 提示框 & 通知橫幅 (Unified Premium Design)
   ========================================================================= */

:root {
    --fc-notification-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --fc-notification-radius: 12px;
    --fc-notification-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fc-callout,
.fc-notification {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 32px;
    border-radius: var(--fc-notification-radius);
    margin: 24px 16px; /* Added horizontal margin to avoid touching edges */
    position: relative;
    background: #ffffff;
    box-shadow: var(--fc-notification-shadow);
    transition: var(--fc-notification-transition);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Slightly darker border */
    overflow: hidden;
}

.fc-notification--no-shadow {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important; /* More visible border when no shadow */
}

.fc-notification--no-hover:hover {
    transform: none !important;
    box-shadow: inherit !important;
}

/* Minimal Style Override */
.fc-notification--style-minimal {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.fc-notification--style-minimal:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fc-notification--style-minimal::before {
    width: 6px; /* Keep the left border bold */
}

.fc-notification--style-minimal .fc-notification__content,
.fc-notification--style-minimal .fc-notification__content p {
    color: #475569 !important; /* Neutral text for minimal style */
}

.fc-notification--style-minimal .fc-notification__content strong {
    color: inherit; /* Keep title colored if it inherits from parent */
}

/* Desktop override: allow container to control width if needed, or stick to 24px 0 if full width */
@media (min-width: 768px) {
    .fc-callout,
    .fc-notification {
        margin: 24px 0;
    }
}

/* Glassmorphism subtle background for premium feel */
.fc-callout::before,
.fc-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: currentColor;
    border-radius: var(--fc-notification-radius) 0 0 var(--fc-notification-radius);
    opacity: 0.8;
}

.fc-callout:hover,
.fc-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
}

/* ==============================================
   Type Colors (Premium Palette)
   ============================================== */

.fc-callout--info, .fc-notification--info {
    background: linear-gradient(145deg, #ffffff, #eef7ff); /* More vivid */
    color: #0263e0;
    border-color: rgba(2, 99, 224, 0.15);
}

.fc-callout--success, .fc-notification--success {
    background: linear-gradient(145deg, #ffffff, #f0fdf4); /* More vivid */
    color: #0f8b3c;
    border-color: rgba(15, 139, 60, 0.15);
}

.fc-callout--warning, .fc-notification--warning {
    background: linear-gradient(145deg, #ffffff, #fffbeb); /* More vivid */
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.15);
}

.fc-callout--error, .fc-notification--error {
    background: linear-gradient(145deg, #ffffff, #fef2f2); /* More vivid */
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.15);
}

.fc-callout--tip, .fc-notification--tip {
    background: linear-gradient(145deg, #ffffff, #f5f3ff); /* More vivid */
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.15);
}

.fc-callout--note, .fc-notification--note {
    background: linear-gradient(145deg, #ffffff, #f1f5f9); /* More vivid */
    color: #475569;
    border-color: rgba(71, 85, 105, 0.15);
}

.fc-callout--premium, .fc-notification--premium {
    background: linear-gradient(145deg, #ffffff, #fffbeb);
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.15);
}

.fc-callout--help, .fc-notification--help {
    background: linear-gradient(145deg, #ffffff, #ecfeff);
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.15);
}

.fc-callout--security, .fc-notification--security {
    background: linear-gradient(145deg, #ffffff, #eef2ff);
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.15);
}

.fc-callout--announcement, .fc-notification--announcement {
    background: linear-gradient(145deg, #ffffff, #fff1f2);
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.15);
}

.fc-callout--notification, .fc-notification--notification {
    background: linear-gradient(145deg, #ffffff, #f0fdfa);
    color: #0d9488;
    border-color: rgba(13, 148, 136, 0.15);
}

.fc-callout--neutral, .fc-notification--neutral {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    color: #1e293b;
    border-color: rgba(30, 41, 59, 0.1);
}

/* ==============================================
   Layout Elements
   ============================================== */

.fc-callout__icon,
.fc-notification__icon {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transform: scale(1);
    transition: transform 0.3s ease;
}

.fc-callout:hover .fc-callout__icon,
.fc-notification:hover .fc-notification__icon {
    transform: scale(1.1) rotate(5deg);
}

.fc-callout__body,
.fc-notification__content {
    flex: 1;
    color: inherit;
}

.fc-callout__title,
.fc-notification__content strong {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    color: inherit;
    letter-spacing: -0.01em;
    filter: brightness(0.8);
}

.fc-callout__content,
.fc-notification__content p {
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
    margin: 0;
    opacity: 0.9;
}

.widget-area-wrapper[data-cls-widget-area="content-share-single"] .fc-notification {
    margin-top: 32px;
}

/* Link Style */
.fc-notification__content a {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: inherit; /* Uses parent color */
    text-decoration: none;
    transition: opacity 0.2s;
}

.fc-notification__content a:hover {
    opacity: 0.8;
}

/* ==============================================
   Controls (Close / Toggle)
   ============================================== */

.fc-callout__dismiss,
.fc-notification__close,
.fc-notification__toggle {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 14px;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.fc-callout__dismiss:hover,
.fc-notification__close:hover,
.fc-notification__toggle:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.fc-notification--dismissed {
    animation: notification-slide-out 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.fc-notification--state-hidden {
    display: none !important;
}

.fc-notification--collapsed {
    align-items: center;
}

.fc-notification--collapsed .fc-notification__content p,
.fc-notification--collapsed .fc-notification__content a {
    display: none;
}

.fc-notification--collapsed .fc-notification__content strong {
    margin-bottom: 0 !important;
}

.fc-notification--collapsed .fc-notification__toggle-icon {
    display: inline-block;
    transform: rotate(-90deg);
}

@keyframes notification-slide-out {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
        height: 0;
        padding: 0;
        margin: 0;
        border: 0;
    }
}

/* ==============================================
   Dark Mode Support
   ============================================== */

@media (prefers-color-scheme: dark) {
    .fc-callout,
    .fc-notification {
        background: #1e293b;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    }
    
    .fc-callout--info, .fc-notification--info {
        background: linear-gradient(145deg, #1e293b, #172554);
        color: #60a5fa;
    }
    .fc-callout--success, .fc-notification--success {
        background: linear-gradient(145deg, #1e293b, #14532d);
        color: #4ade80;
    }
    .fc-callout--warning, .fc-notification--warning {
        background: linear-gradient(145deg, #1e293b, #451a03);
        color: #fbbf24;
    }
    .fc-callout--error, .fc-notification--error {
        background: linear-gradient(145deg, #1e293b, #450a0a);
        color: #f87171;
    }
    .fc-callout--tip, .fc-notification--tip {
        background: linear-gradient(145deg, #1e293b, #3b0764);
        color: #c084fc;
    }
    .fc-callout--note, .fc-notification--note {
        background: linear-gradient(145deg, #1e293b, #0f172a);
        color: #94a3b8;
    }
    .fc-callout--premium, .fc-notification--premium {
        background: linear-gradient(145deg, #1e293b, #78350f);
        color: #fbbf24;
    }
    .fc-callout--help, .fc-notification--help {
        background: linear-gradient(145deg, #1e293b, #164e63);
        color: #22d3ee;
    }
    .fc-callout--security, .fc-notification--security {
        background: linear-gradient(145deg, #1e293b, #312e81);
        color: #818cf8;
    }
    .fc-callout--announcement, .fc-notification--announcement {
        background: linear-gradient(145deg, #1e293b, #881337);
        color: #fb7185;
    }
    .fc-callout--notification, .fc-notification--notification {
        background: linear-gradient(145deg, #1e293b, #064e3b);
        color: #2dd4bf;
    }
    .fc-callout--neutral, .fc-notification--neutral {
        background: linear-gradient(145deg, #1e293b, #0f172a);
        color: #f8fafc;
    }

    .fc-callout__body,
    .fc-notification__content,
    .fc-callout__content,
    .fc-notification__content p,
    .fc-callout__title,
    .fc-notification__content strong {
        color: inherit; /* Use inherit to allow type colors to work in dark mode too */
    }
}

/* Theme-specific dark mode class support */
.is-dark-theme .fc-callout,
.is-dark-theme .fc-notification,
.dark-mode .fc-callout,
.dark-mode .fc-notification {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.is-dark-theme .fc-notification--info,
.dark-mode .fc-notification--info {
    background: linear-gradient(145deg, #1e293b, #172554);
    color: #60a5fa;
}
/* ... Other types will inherit similarly if we use broad classes ... */

/* ==============================================
   Responsive
   ============================================== */

@media (max-width: 767px) {
    .fc-callout,
    .fc-notification {
        padding: 20px 24px;
        gap: 12px;
    }
    .fc-callout__icon,
    .fc-notification__icon {
        font-size: 22px;
    }
    .fc-callout__title,
    .fc-notification__content strong {
        font-size: 15px;
    }
    .fc-callout__content,
    .fc-notification__content p {
        font-size: 14px;
    }
}
