/* ============================================
   WIDGET SUPPORT / À PROPOS
   Version simplifiée - 2 thèmes
   ============================================ */

/* Overlay sombre */
.support-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.support-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Panel support */
.support-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-body);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 30px var(--shadow-color);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.support-panel.show {
    transform: translateX(0);
}

/* Header du panel */
.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgb(20 20 20);
    position: sticky;
    top: 0;
    z-index: 1;
}

.support-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.support-title .material-icons {
    color: var(--accent);
}

.support-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-close:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* Contenu */
.support-content {
    flex: 1;
    padding: 1.5rem 1rem;
}

/* Section À propos */
.support-about {
    text-align: center;
    margin-bottom: 2rem;
}

.support-logo {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.support-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.support-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Bouton Donation PayPal */
.donation-section {
    margin-bottom: 1.5rem;
}

.donation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3);
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

.donation-btn:active {
    transform: scale(0.98);
}

.donation-icon {
    font-size: 1.5rem;
}

.donation-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* ============================================
   POPUP DON
   ============================================ */
.donation-popup {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 2rem);
    max-width: 340px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.donation-popup.show {
    transform: translateX(-50%) translateY(0);
}

.donation-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.donation-popup-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.donation-popup-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.donation-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.donation-popup-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.donation-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3);
}

.donation-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

.donation-popup-later {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.donation-popup-later:hover {
    color: var(--text-secondary);
}

/* Mode clair */
[data-theme="light"] .donation-popup {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Safe area iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .donation-popup {
        bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

/* Actions */
.support-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.support-action:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.support-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.support-action-icon.email {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.support-action-icon.upload {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.support-action-icon.share {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.support-action-icon.propose {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.support-action-icon.radio {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.support-action-icon.emergency {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.support-copyright {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.support-action-text {
    flex: 1;
}

.support-action-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.support-action-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.support-action .material-icons.arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Footer */
.support-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.support-version {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Modal urgences */
.emergency-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.emergency-content {
    background: rgb(22 22 21);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 360px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

[data-theme="light"] .emergency-content {
    background: #ffffff;
}

.emergency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.emergency-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.emergency-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
}

.emergency-close:hover {
    background: rgba(99, 102, 241, 0.2);
}

.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.emergency-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.emergency-item:hover {
    background: rgba(239, 68, 68, 0.15);
}

.emergency-icon {
    font-size: 1.75rem;
}

.emergency-info {
    flex: 1;
}

.emergency-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.emergency-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mode clair */
[data-theme="light"] .support-panel {
    background: #ffffff;
}

[data-theme="light"] .support-header {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .support-close {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .emergency-item {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .emergency-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Safe area iOS */
@supports (padding-top: env(safe-area-inset-top)) {
    .support-header {
        padding-top: calc(1.25rem + env(safe-area-inset-top));
    }
}

/* Bouton notifications */
.support-action-icon.notif {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.support-action-icon.notif.subscribed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

#notifSubscribeBtn.subscribed {
    border-left: 3px solid #10b981;
}

#notifSubscribeBtn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================
   SOCIAL ICONS FOOTER
   ============================================ */
.support-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.support-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-social-link:hover {
    transform: translateY(-3px) scale(1.05);
}

.support-social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.support-social-link.email:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.support-social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.support-social-link .material-icons {
    font-size: 22px;
}

/* Mode clair */
[data-theme="light"] .support-social-link {
    background: rgba(0, 0, 0, 0.05);
}