/* style.css */
:root {
    --primary: #d4b192;
    --secondary: #2c3e50;
    --glow-color: #7a6048;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    padding: 20px;
    margin-top: 60px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
}

/* ========== NOVO HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--primary);
}

.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    transition: transform 0.3s;
}

.menu-icon:hover {
    transform: scale(1.1);
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

.menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu {
    position: absolute;
    top: -1500px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 350px;
    background: rgba(44, 62, 80, 0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.98);
    padding: 15px 0;
    opacity: 0;
}

.menu.active {
    top: 65px;
    opacity: 1;
}

.menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px;
    list-style: none;
    max-height: 600px; /* Altura máxima */
    overflow-y: auto; /* Scroll apenas quando necessário */
    padding-right: 10px; /* Espaço para a barra de rolagem */
}

.menu-item {
    background: rgba(212, 177, 146, 0.1);
    border-radius: var(--border-radius);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95em;
    padding: 0 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 3px 8px rgba(122, 96, 72, 0.4);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: radial-gradient(circle at center, 
               rgba(212, 177, 146, 0.2) 0%, 
               transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-item:hover::before {
    opacity: 1;
}
h1 {
    text-align: center;
    margin: 15px 0;
    font-size: 2.2rem;
    color: #2c3e50;
}
h3 {
    text-align: center;
    margin: 35px 0;
    font-size: 1.4rem;
    color: #d4b192;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    width: 100%;
    background: transparent; /* Remove o fundo específico */
    box-shadow: transparent; /* Remove o box-shadow */
}

.symbols-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.symbol-btn {
    background-color: transparent;
    border-radius: 4px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.9em;
    font-weight: 250;
    padding: 0 8px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px transparent;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.symbol-btn:hover {
    background-color: #2c3e50;
    color: #d4b192;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.symbol-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #d4b192;
    transition: width 0.3s ease, left 0.3s ease;
}

.symbol-btn:hover::after {
    width: 100%;
    left: 0;
}

.interpretations {
    display: grid;
    gap: 20px;
    margin: 30px 0;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.interpretation-box {
    color: #d4b192;
    background: #2c3e50;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--cor-secundaria);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.interpretation-box::before {
    content: '';
    position: relative;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: #d4b192;
    background-size: 4px 4px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0,0); }
    100% { transform: translate(4px,4px); }
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.visible {
    opacity: 1;
    visibility: visible;
}

button {
    background: var(--cor-secundaria);
    color: var(--cor-primaria);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px #d4b192;
}

.footer-mistico {
    margin-top: 40px;
    padding: 20px;
    color: #d4b192;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    align-items: center;
    justify-content: flex-end;
}

.footer-mistico p {
    line-height: 1.6;
    margin: 0;
    justify-content: center;
}

.typing-effect {
    min-height: 100px;
    position: relative;
    text-align: left;
}

@media (max-width: 768px) {
    .menu-item {
        font-size: 0.8em;
        padding: 0 6px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .symbols-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .menu-item {
        font-size: 0.7em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .interpretation-box {
        min-height: 150px;
        padding: 15px;
    }
}
