/* =============================================
   FLEKKE BYGG AS - Ocolax Eyes Blog
   Estilos customizados modernos - Design único 2026
   Paleta: Ice-Blue + Mint accents + Warm neutrals
   Sem repetições de designs anteriores
   ============================================= */

:root {
  --primary: #0E7490;
  --accent: #14B8A6;
  --accent-light: #5EEAD4;
  --bg: #F0FDFA;
  --bg-alt: #E0F2FE;
  --text: #0F172A;
  --text-light: #64748B;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.08);
  --radius: 20px;
  --radius-sm: 12px;
}

/* Tipografia moderna */
body {
  font-family: 'Inter', system_ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
}

/* Header sticky com glassmorphism sutil */
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  box-shadow: var(--shadow);
}

/* Logo com ícone SVG inline */
.logo {
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
}

/* Navegação */
nav a {
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a.active {
  color: var(--primary);
  font-weight: 600;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  border-radius: 2px;
}

/* Botões modernos - pílula com gradiente sutil */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0E7490);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgb(14 116 144 / 0.2), 0 2px 4px -2px rgb(14 116 144 / 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(14 116 144 / 0.3), 0 4px 6px -4px rgb(14 116 144 / 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* Cards com sombra suave e borda sutil - estilo único */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);
}

.card-img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-img {
  transform: scale(1.08);
}

/* Masonry grid único */
.masonry-grid {
  column-count: 1;
  column-gap: 1.75rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.75rem;
  display: inline-block;
  width: 100%;
}

/* Artigo individual - tipografia premium */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 72ch;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  position: relative;
  padding-left: 1.25rem;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 5px;
  height: 1.4rem;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 9999px;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: #334155;
}

/* Formulários elegantes */
input, textarea, select {
  transition: all 0.3s ease;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

/* Categorias / Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.85rem;
  background: var(--bg-alt);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.025em;
}

/* Footer */
footer {
  background: #0F172A;
  color: #94A3B8;
}

footer a:hover {
  color: #5EEAD4;
}

/* Seções com padding generoso */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Hero com gradiente sutil */
.hero-bg {
  background: linear-gradient(135deg, #F0FDFA 0%, #E0F2FE 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Animações sutis */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade extra */
@media (max-width: 640px) {
  .masonry-grid {
    column-count: 1;
  }
  
  .article-content {
    font-size: 1rem;
  }
}

/* Acessibilidade e foco */
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}