/**
 * @file tribal-popup.css
 * @filepath css/tribal-popup.css
 * @version 1.0.0
 * @updated 2026-02-07 10:20:00 PM CDT
 * @author Greg Paskal
 * @company MissionWares®
 *
 * @description Tribal Knowledge Popup Styles
 *
 * @tags: tribal, popup, styles, mAi™
 */

/* Overlay */
.tribal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}

.tribal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Popup Card */
.tribal-popup {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.15);
}

.tribal-overlay.visible .tribal-popup {
    transform: scale(1) translateY(0);
}

/* Close Button */
.tribal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tribal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Header */
.tribal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.tribal-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: bounce 0.6s ease;
}

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

.tribal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Body */
.tribal-body {
    margin-bottom: 1.5rem;
}

.tribal-mapping {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tribal-alias {
    font-size: 1.1rem;
    color: #f472b6;
    font-weight: 600;
}

.tribal-arrow {
    display: inline-block;
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.tribal-formal {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.tribal-formal strong {
    color: #34d399;
    font-weight: 600;
}

.tribal-funfact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    padding: 0.75rem;
    background: rgba(52, 211, 153, 0.1);
    border-left: 3px solid #34d399;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.75rem;
}

.tribal-why {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.4;
}

/* Actions */
.tribal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tribal-btn {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
}

.tribal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.tribal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tribal-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.tribal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.tribal-btn-share {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
    flex: 0 0 auto;
}

.tribal-btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .tribal-popup {
        padding: 1.25rem;
    }
    
    .tribal-emoji {
        font-size: 2rem;
    }
    
    .tribal-title {
        font-size: 1.1rem;
    }
    
    .tribal-actions {
        flex-direction: column;
    }
    
    .tribal-btn {
        width: 100%;
    }
}