/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
    --smurf-blue: #3b7dbd;
    --smurf-blue-light: #5f9ee0;
    --smurf-blue-dark: #1e4a7a;
    --smurf-hat: #f5f5f5;
    --smurf-hat-red: #e63946;
    --forest-green: #2d6a4f;
    --forest-light: #40916c;
    --gold: #ffb703;
    --potion-purple: #9d4edd;
    --dnd-red: #c41e3a;
    --dnd-gold: #cfb53b;
    --dnd-brown: #8b4513;
    --text-primary: #1e3c5c;
    --text-secondary: #2d4059;
    --text-dim: #6c757d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 25px;
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
    position: relative;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid var(--smurf-hat-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header h1 {
    font-size: 2rem;
    color: var(--smurf-hat);
    text-shadow: 3px 3px 0 var(--smurf-blue-dark);
    letter-spacing: 2px;
}

.header-menu {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-menu:hover {
    background: white;
    color: var(--smurf-blue);
    transform: rotate(90deg);
}

/* ===== NAVEGAÇÃO INFERIOR ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    display: flex;
    justify-content: space-around;
    padding: 12px 5px;
    border-top: 4px solid var(--smurf-hat-red);
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    transition: var(--transition);
}

.nav-item:hover::before {
    height: 100%;
}

.nav-item.active {
    color: white;
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.page-header {
    text-align: left;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 30px 35px;
    border-radius: var(--border-radius);
    border: 3px solid white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--smurf-blue), var(--smurf-hat-red), var(--gold));
}

.header-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-emoji {
    font-size: 4rem;
    filter: drop-shadow(5px 5px 0 rgba(0,0,0,0.1));
    animation: bounce 2s infinite;
}

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

.page-header h1 {
    color: var(--smurf-blue-dark);
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
    letter-spacing: -0.5px;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 10px;
    padding-left: 75px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    border: 3px solid var(--smurf-blue-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--smurf-blue);
    box-shadow: var(--shadow-hover);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--smurf-blue-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== FILTROS ===== */
.filtros-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: var(--shadow);
    border: 2px solid var(--smurf-blue-light);
}

.busca-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.busca-input {
    flex: 1;
    padding: 18px 20px;
    border: 3px solid var(--smurf-blue-light);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.busca-input:focus {
    outline: none;
    border-color: var(--smurf-blue);
    box-shadow: 0 0 0 4px rgba(59, 125, 189, 0.2);
    background: white;
}

.btn-busca {
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid white;
    box-shadow: 0 5px 0 var(--smurf-blue-dark);
}

.btn-busca:active {
    transform: translateY(5px);
    box-shadow: none;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filtro-select {
    padding: 15px;
    border: 3px solid var(--smurf-blue-light);
    border-radius: 15px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filtro-select:hover {
    border-color: var(--smurf-blue);
    background: #f8f9fa;
}

.filtros-rapidos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filtro-tag {
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--smurf-blue-light);
    border-radius: 40px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filtro-tag:hover {
    background: var(--smurf-blue);
    color: white;
    border-color: var(--smurf-blue);
    transform: translateY(-2px);
}

.status-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: white;
    padding: 10px;
    border-radius: 60px;
    box-shadow: var(--shadow);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    color: white;
    box-shadow: 0 5px 15px rgba(59, 125, 189, 0.4);
}

/* ===== CARDS DE VILÕES ===== */
.viloes-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 35px;
}

.card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--smurf-blue-light);
    transition: var(--transition);
    height: fit-content;
    position: relative;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--smurf-blue);
}

.card-header {
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.vilao-tipo-emoji {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.vilao-nome {
    flex: 1;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.badge-nivel {
    background: var(--dnd-gold);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.card-content {
    padding: 25px;
}

.vilao-status {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-item {
    margin-bottom: 15px;
}

.status-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--smurf-blue-dark);
    display: block;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background: #dee2e6;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #c92a2a);
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.status-mini {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.status-mini .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    font-weight: 600;
}

.status-mini .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--smurf-blue);
}

.atributos-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.atributo {
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    color: white;
    padding: 12px 8px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.atributo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.detalhes-vilao {
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 15px;
}

.detalhes-vilao summary {
    cursor: pointer;
    color: var(--smurf-blue-dark);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 12px;
    background: white;
    border-radius: 15px;
    list-style: none;
    position: relative;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.detalhes-vilao summary:hover {
    background: var(--smurf-blue);
    color: white;
}

.detalhes-vilao summary::-webkit-details-marker {
    display: none;
}

.detalhes-vilao summary::after {
    content: '▼';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

.detalhes-vilao[open] summary::after {
    transform: rotate(180deg);
}

.detalhes-conteudo {
    padding: 20px 15px 10px;
}

.detalhes-conteudo h4 {
    color: var(--smurf-blue-dark);
    margin: 15px 0 10px;
    font-size: 1.2rem;
    border-left: 4px solid var(--dnd-gold);
    padding-left: 12px;
}

.ataques-list {
    list-style: none;
    margin: 10px 0;
}

.ataques-list li {
    background: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--smurf-blue);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.ataques-list li:hover {
    transform: translateX(5px);
    border-left-color: var(--dnd-gold);
}

.ataque-nome {
    font-weight: 600;
    font-size: 1.1rem;
}

.ataque-dano {
    background: linear-gradient(135deg, var(--dnd-gold), #e6b800);
    color: var(--text-primary);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid white;
}

.historia {
    background: white;
    padding: 20px;
    border-radius: 15px;
    line-height: 1.7;
    border-left: 5px solid var(--dnd-gold);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    font-size: 1.05rem;
}

.taticas, .fraquezas, .tesouro {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin: 10px 0;
    border-left: 4px solid var(--smurf-blue);
}

.acoes-vilao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.btn-editar, .btn-remover {
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: 2px solid white;
    box-shadow: 0 5px 0 rgba(0,0,0,0.2);
}

.btn-editar {
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    color: white;
}

.btn-remover {
    background: linear-gradient(135deg, var(--dnd-red), #a51d2e);
    color: white;
}

.btn-editar:active, .btn-remover:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* ===== CARDS DE NPC ===== */
.npcs-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.npc-card {
    background: white;
    border-radius: 30px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow);
    border: 3px solid var(--smurf-blue-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.npc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--smurf-blue), var(--potion-purple));
}

.npc-card.smurf::before {
    background: linear-gradient(90deg, var(--smurf-blue), var(--smurf-hat-red));
}

.npc-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--smurf-blue);
}

.npc-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.npc-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.npc-info h3 {
    font-size: 1.7rem;
    color: var(--smurf-blue-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.npc-nivel {
    background: linear-gradient(135deg, var(--dnd-gold), #e6b800);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid white;
}

.funcao {
    color: var(--smurf-blue);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.descricao {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.npc-detalhes {
    margin-top: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 12px;
}

.npc-detalhes summary {
    cursor: pointer;
    color: var(--smurf-blue-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px;
    background: white;
    border-radius: 12px;
}

.npc-detalhes p {
    margin: 12px 0;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--smurf-blue);
}

/* ===== MISSÕES ===== */
.necessidades-lista {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.necessidade-item {
    background: white;
    border-radius: 25px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border: 3px solid var(--smurf-blue-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.necessidade-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
}

.necessidade-item:hover {
    transform: translateX(10px);
    border-color: var(--smurf-blue);
    box-shadow: var(--shadow-hover);
}

.necessidade-item.concluida {
    opacity: 0.8;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.necessidade-item.concluida::before {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.necessidade-conteudo {
    flex: 1;
}

.necessidade-conteudo strong {
    font-size: 1.4rem;
    color: var(--smurf-blue-dark);
    display: block;
    margin-bottom: 8px;
}

.necessidade-categoria {
    display: inline-block;
    background: linear-gradient(135deg, var(--smurf-blue-light), var(--smurf-blue));
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 12px;
    border: 2px solid white;
}

.necessidade-conteudo p {
    color: var(--text-secondary);
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.necessidade-acoes {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.necessidade-acoes button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 15px;
    transition: var(--transition);
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

.necessidade-acoes button:hover {
    background: rgba(0,0,0,0.05);
    transform: scale(1.2);
}

.categoria-titulo {
    grid-column: 1 / -1;
    color: var(--smurf-blue-dark);
    font-size: 1.8rem;
    margin: 20px 0 15px;
    padding-bottom: 10px;
    border-bottom: 4px solid var(--smurf-hat-red);
    font-weight: 800;
}

/* ===== BOTÃO ADICIONAR ===== */
.btn-add {
    background: linear-gradient(135deg, var(--smurf-blue), var(--smurf-blue-dark));
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 60px;
    font-size: 1.3rem;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 4px solid white;
    box-shadow: 0 10px 0 var(--smurf-blue-dark);
    transition: var(--transition);
    margin-top: 30px;
    letter-spacing: 1px;
}

.btn-add:active {
    transform: translateY(10px);
    box-shadow: none;
}

.btn-add:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-add:active {
    transform: translateY(10px) scale(0.98);
}

.btn-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 40px;
    border: 4px dashed var(--smurf-blue-light);
    grid-column: 1 / -1;
}

.empty-state .emoji {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.empty-state h3 {
    color: var(--smurf-blue-dark);
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* ===== LOADING ===== */
.loading-screen {
    text-align: center;
    padding: 120px 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
    margin: 50px 0;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid var(--smurf-blue-light);
    border-top-color: var(--smurf-blue-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    color: var(--smurf-blue-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.3rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    border-radius: 50px;
    padding: 35px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border: 5px solid var(--smurf-blue);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--smurf-blue-light);
}

.modal-header h2 {
    color: var(--smurf-blue-dark);
    font-size: 1.8rem;
}

.close-modal {
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--dnd-red);
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(198, 40, 40, 0.1);
    transform: rotate(90deg);
}

/* ===== ELEMENTOS DECORATIVOS ===== */
.floating-mushroom {
    position: fixed;
    bottom: 90px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.15;
    pointer-events: none;
    z-index: 999;
    animation: float 4s ease-in-out infinite;
}

.floating-smurf {
    position: fixed;
    top: 120px;
    left: 20px;
    font-size: 3.5rem;
    opacity: 0.15;
    pointer-events: none;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .header-emoji {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .viloes-lista,
    .npcs-lista,
    .necessidades-lista {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    
    .vilao-nome {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .status-row {
        grid-template-columns: 1fr;
    }
    
    .atributos-mini {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .npc-card {
        flex-direction: column;
        text-align: center;
    }
    
    .npc-avatar {
        margin: 0 auto;
    }
    
    .necessidade-item {
        flex-direction: column;
        text-align: center;
    }
    
    .necessidade-acoes {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .status-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4rem;
    }
    
    .nav-text {
        font-size: 0.7rem;
    }
    
    .nav-icon {
        font-size: 1.6rem;
    }
    
    .busca-wrapper {
        flex-direction: column;
    }
    
    .btn-busca {
        width: 100%;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
    }
}