/* style.css - Produção Locaweb (App Mobile-First) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0f172a;          /* Azul escuro profundo (Tech) */
    --bg-card: rgba(30, 41, 59, 0.7); /* Efeito de vidro translúcido */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #0ea5e9;          /* Ciano Tecnológico */
    --primary-hover: #0284c7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

body { background: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* Evita o zoom automático do iPhone nos inputs */
input, select, textarea { font-size: 16px !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 15px; }

/* Grid Responsivo Inteligente: Adapta para 1 coluna no celular e 2+ no PC */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* Botões Padrão Mobile (Mínimo 44px de altura) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease;
    width: 100%; /* Ocupa a tela toda no celular por padrão */
}

@media (min-width: 768px) { .btn { width: auto; } /* No PC, volta ao tamanho normal */ }

.btn:active { transform: scale(0.96); }

.btn-primary { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: white; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4); }
.btn-primary:hover { filter: brightness(1.1); }

.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-gray { background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid var(--border); }
.btn-gray:hover { background: rgba(255, 255, 255, 0.1); }

/* Inputs Modernos Flutuantes */
input[type="text"], input[type="password"], select, textarea {
    width: 100%; padding: 14px 15px; background: rgba(0,0,0,0.2);
    border: 1px solid var(--border); border-radius: 10px; color: white;
    margin-bottom: 15px; transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); background: rgba(0,0,0,0.4); }

.header { display: flex; flex-direction: column; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); margin-bottom: 25px; }
@media (min-width: 768px) { .header { flex-direction: row; justify-content: space-between; align-items: center; } }
.header h2 { font-weight: 700; font-size: 1.5rem; }

.resultado-ia { margin-top: 20px; padding: 20px; background: rgba(15, 23, 42, 0.9); border-radius: 12px; border-left: 4px solid var(--primary); font-family: 'Consolas', monospace; color: #bae6fd; font-size: 0.95rem; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }