:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary: #e2e8f0;
    --accent: #8b5cf6;
    --background: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f1f5f9;
    --sidebar-active: #dbeafe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: var(--background);
    min-height: 100vh;
    color: var(--text);
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-navigation {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 2px solid var(--secondary);
}

.tab-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.tab-button.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tab-button:hover:not(.active) {
    color: var(--text);
    border-bottom: 3px solid var(--secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.intro-video {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--secondary);
    border-radius: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Layout de palavras com menu lateral */
.palavras-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 1rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary);
}

.category-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: var(--sidebar-hover);
}

.category-item.active {
    background: var(--sidebar-active);
    color: var(--primary);
    font-weight: 600;
}

/* Área de conteúdo */
.content-area {
    flex: 1;
}

.content-area h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Seção de categoria */
.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary);
}

.word-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.word-item {
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.word-main {
    padding: 1rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.word-content {
    display: none;
    padding: 1.5rem;
    background: #f8fafc;
}

.word-content.active {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.signwriting-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.signwriting-image {
    max-width: 200px;
    margin: 1rem auto;
}

.video-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 1rem 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
}

.description-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
}

.section-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.description-text {
    line-height: 1.6;
    color: var(--text-light);
}

.home-about {
    background: #F5F5F5;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .palavras-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

#btnApresentacao, #btnCreditos{
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
}