/* Vocabulary Cards System - Layout and Structure */

body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Main Container */
.vocabulary-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: calc(100vh - 140px);
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: flex-start;
    min-height: 70vh;
}

.sidebar {
    background: var(--bg-secondary);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.content-area {
    background: var(--bg-secondary);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    min-height: 60vh;
    border: 1px solid rgba(148, 163, 184, 0.1);
    overflow: hidden;
}

/* Enhanced sidebar */
.word-lists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--shadow);
}

.word-lists-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.word-lists-header h3 .material-symbols-sharp {
    color: var(--accent);
    font-size: 1.4rem;
}

.word-lists-header .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Content Header */
.list-header {
    padding: 2rem;
    border-bottom: 2px solid var(--shadow);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(59, 130, 246, 0.01));
}

.list-header h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-header .material-symbols-sharp {
    color: var(--accent);
    font-size: 2rem;
}

.list-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.list-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.list-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-stats .material-symbols-sharp {
    font-size: 1.1rem;
    color: var(--accent);
}

/* Action Bar */
.list-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--shadow);
    gap: 1rem;
    flex-wrap: wrap;
}

.list-actions-left,
.list-actions-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    background: var(--bg-secondary);
    border: 2px solid var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    padding: 4px;
}

.view-toggle .btn {
    margin: 0;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    background: transparent;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.view-toggle .btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.view-toggle .btn:hover:not(.active) {
    background: rgba(74, 144, 226, 0.1);
    color: var(--accent);
}

/* Enhanced empty state */
.empty-state, .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    min-height: 300px;
}

.empty-state .material-symbols-sharp,
.loading-state .material-symbols-sharp {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    opacity: 0.7;
}

.loading-icon {
    animation: spin 2s linear infinite;
}

.empty-state h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.6;
}

.empty-state .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.empty-state .feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 2rem auto 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item .material-symbols-sharp {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
    
    .vocabulary-container {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .vocabulary-container {
        padding: 0.75rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        order: 2;
        margin-top: 1rem;
    }
    
    .content-area {
        order: 1;
    }

    .list-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .list-header h2 {
        font-size: 1.5rem;
    }
    
    .list-actions-bar {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .list-actions-left,
    .list-actions-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .word-list-item {
        padding: 1rem;
    }
    
    .word-lists-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .word-lists-header .btn {
        width: 100%;
        text-align: center;
    }
    
    .feature-highlights {
        margin-top: 1.5rem;
    }
    
    .feature-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .vocabulary-container {
        padding: 0.5rem;
    }
    
    .list-header {
        padding: 1rem 0.75rem;
    }
    
    .list-header h2 {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .list-stats {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .list-actions-bar {
        padding: 0.75rem;
    }
    
    .list-actions-left .btn,
    .list-actions-right .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* BARRA DE NAVEGAÇÃO UNIFICADA DA SUITE DE VOCABULÁRIO */
.vocab-suite-nav {
    display: inline-flex;
    background: var(--bg-primary);
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid rgba(13, 148, 136, 0.2);
    gap: 0.4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
}

.suite-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.suite-tab:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.suite-tab.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* CORREÇÃO MOBILE: Barra de Listas no Topo (Order 1) em Carrossel Horizontal! */
@media (max-width: 768px) {
    .sidebar {
        order: 1 !important;
        margin-top: 0 !important;
        padding: 1rem !important;
    }
    .content-area {
        order: 2 !important;
    }
    .word-lists-header {
        flex-direction: row !important;
        align-items: center !important;
        margin-bottom: 0.8rem !important;
        padding-bottom: 0.6rem !important;
    }
    . word-lists-header .btn {
        width: auto !important;
    }
    .sidebar-lists-scroll {
        display: flex !important;
        gap: 0.75rem !important;
        overflow-x: auto !important;
        padding-bottom: 0.4rem !important;
        scroll-snap-type: x mandatory;
    }
    .sidebar-lists-scroll .word-list-item {
        min-width: 210px !important;
        margin-bottom: 0 !important;
        padding: 0.85rem 1rem !important;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* CORREÇÃO DOS BOTÕES DE STATUS NO MODAL DE PRÁTICA MOBILE (Grid 2x2 com texto visível!) */
@media (max-width: 768px) {
    .status-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    .status-controls .status-btn span:not(.material-symbols-sharp) {
        display: inline !important;
        font-size: 0.82rem !important;
    }
}