/**
 * LOUD MINDMAP STYLE - Estilos para Mapas Mentais Interativos
 */

/* ── BOTÃO DO MAPA MENTAL ── */
.loud-mindmap-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 2px solid rgba(249, 115, 22, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.loud-mindmap-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
    border-color: rgba(249, 115, 22, 0.6);
}

.loud-mindmap-icon {
    display: block;
    animation: float 3s ease-in-out infinite;
}

/* ── SELETOR DE MAPAS ── */
.loud-mindmap-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fade-in 0.3s ease;
}

.loud-mindmap-selector-content {
    background: linear-gradient(135deg, #1c1c21, #16161a);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slide-up 0.3s ease;
}

.loud-mindmap-selector-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f0f0f4;
    letter-spacing: 2px;
}

.loud-mindmap-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.loud-mindmap-topic-btn {
    padding: 14px 16px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    color: #f0f0f4;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.loud-mindmap-topic-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

/* ── MODAL DO MAPA MENTAL ── */
.loud-mindmap-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fade-in 0.3s ease;
    overflow-y: auto;
}

.loud-mindmap-container {
    background: linear-gradient(135deg, #1c1c21, #16161a);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    margin: 40px auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slide-up 0.3s ease;
}

.loud-mindmap-container h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #f0f0f4;
    letter-spacing: 2px;
    text-align: center;
}

.loud-mindmap-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50%;
    color: #f0f0f4;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.loud-mindmap-close:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.4);
}

/* ── SVG DO MAPA MENTAL ── */
.loud-mindmap-svg-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    overflow-x: auto;
}

.loud-mindmap-svg {
    max-width: 100%;
    height: auto;
}

.loud-mindmap-line {
    stroke: rgba(249, 115, 22, 0.3);
    stroke-width: 2;
    transition: stroke 0.2s ease;
}

.loud-mindmap-center-node {
    fill: linear-gradient(135deg, #f97316, #ea580c);
    stroke: rgba(249, 115, 22, 0.6);
    stroke-width: 3;
    transition: all 0.3s ease;
}

.loud-mindmap-center-node:hover {
    stroke-width: 4;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.5));
}

.loud-mindmap-center-text {
    fill: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    pointer-events: none;
}

.loud-mindmap-node {
    fill: rgba(249, 115, 22, 0.2);
    stroke: rgba(249, 115, 22, 0.5);
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loud-mindmap-node:hover {
    fill: rgba(249, 115, 22, 0.3);
    stroke: rgba(249, 115, 22, 0.8);
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
}

.loud-mindmap-node-text {
    fill: #f0f0f4;
    font-weight: 600;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    pointer-events: none;
}

/* ── DETALHES DO MAPA MENTAL ── */
.loud-mindmap-details {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    animation: slide-up 0.3s ease;
}

.loud-mindmap-details h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #f97316;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.loud-mindmap-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.loud-mindmap-details li {
    padding: 8px 0;
    color: #d4eaf7;
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.loud-mindmap-details li:last-child {
    border-bottom: none;
}

.loud-mindmap-details li::before {
    content: '▸ ';
    color: #f97316;
    font-weight: 700;
    margin-right: 8px;
}

.loud-mindmap-details button {
    padding: 10px 16px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    color: #f97316;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.loud-mindmap-details button:hover {
    background: rgba(249, 115, 22, 0.3);
    border-color: rgba(249, 115, 22, 0.5);
}

/* ── LEGENDA ── */
.loud-mindmap-legend {
    text-align: center;
    padding: 16px;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 12px;
    font-size: 0.85rem;
    color: #6b6b7a;
}

.loud-mindmap-legend p {
    margin: 0;
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 768px) {
    .loud-mindmap-selector-content,
    .loud-mindmap-container {
        padding: 30px 20px;
    }

    .loud-mindmap-container h2 {
        font-size: 1.6rem;
    }

    .loud-mindmap-topics {
        grid-template-columns: 1fr;
    }

    .loud-mindmap-svg {
        max-width: 100%;
        width: 100%;
    }

    .loud-mindmap-details {
        padding: 16px;
    }
}
