:root {
  --bg: #f0f7f2;
  --bg2: #e4f0e8;
  --surface: #ffffff;
  --surface2: #f5fbf7;
  --border: #c8e0cf;
  --accent: #1a7a46;
  --accent2: #15623a;
  --accent-light: #d4ede0;
  --accent-bright: #22a85f;
  --text: #1a2e22;
  --text2: #3d5c47;
  --muted: #7a9e85;
  --uem: #000000;
  --shadow: 0 2px 12px rgba(26,122,70,0.08);
  --shadow-hover: 0 8px 28px rgba(26,122,70,0.16);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;

  /* 1. Definimos a cor base */
  /*background-color: #b2d5c6; 
  background-color: #82c8e3; 
  background-color: #87ceeb;*/
  background-color: #bbf3f9; /* céu */

  /* 2. Empilhamos as imagens: o gradiente, o padrão SVG e a imagem principal */
  background-image: url('background-01.png');

  /* 3. Ajustamos o posicionamento de cada camada na mesma ordem */
  background-position: center bottom;

  /* 4. Definimos a repetição */
  background-repeat: no-repeat;

  /* 5. O segredo para fixar */
  background-attachment: fixed;

 /* 6. Ajuste de tamanho */  
  background-size: 100%, auto, cover; /* 'contain' evita que a imagem do bottom seja cortada em telas pequenas */

 
}

main {
    flex: 1;
}


/* HEADER */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 8px rgba(26,122,70,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text);
}
.logo-icon {
  /*width: 36px; height: 36px; border-radius: 10px;*/
  /*background: linear-gradient(135deg, var(--accent), var(--accent-bright));*/
  display: flex; align-items: center; justify-content: center;
}
.footer-icon {
  /*width: 36px;*/
  height: 36px;
  /*background: linear-gradient(135deg, var(--accent), var(--accent-bright));*/
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width:18px; height:18px; color:#fff; }
.logo-text { font-family:'Lora',serif; font-size:1.3rem; font-weight:600; }
.logo-text span { color: var(--accent); }
.header-admin {
  font-size: 0.82rem; color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border); border-radius: 100px;
  transition: all 0.2s;
}
.header-admin:hover { background:var(--accent-light); color:var(--accent); border-color:var(--accent); }

/* HERO */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-light); color: var(--accent2);
  border: 1px solid rgba(26,122,70,0.2);
  border-radius: 100px; padding: 0.35rem 0.85rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p {
  color: var(--text2); font-size: 1rem;
  max-width: 480px; margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-count {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; color: var(--muted);
}
.hero-count strong { color: var(--accent); font-weight: 600; }
.divider {
  max-width:1100px; margin:0 auto; padding:0 1.5rem;
  display:flex; align-items:center; gap:1rem; margin-bottom:2rem;
}
.divider-line { flex:1; height:1px; background:var(--border); }
.divider-text { font-size:0.78rem; color:var(--muted); white-space:nowrap; letter-spacing:0.06em; text-transform:uppercase; }

/* GRID */
.links-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* LINK CARD */
.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26,122,70,0.25);
}
.link-card:active { transform: translateY(-1px); }

.link-thumb-wrap {
  width: 90px; height: 90px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.link-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.link-thumb-default {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-light), var(--bg2));
  display: flex; align-items: center; justify-content: center;
}
.link-thumb-default svg { width:32px; height:32px; color: var(--accent); opacity:0.5; }
.link-favicon {
  position: absolute; bottom:4px; right:4px;
  width:18px; height:18px; border-radius:4px;
  background: var(--surface);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.link-favicon img { width:12px; height:12px; }

.link-body {
  flex: 1; min-width: 0;
  padding: 1rem 1.1rem 1rem 0.85rem;
}
.link-title-text {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link-domain {
  font-size: 0.75rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.link-domain-dot { width:4px; height:4px; border-radius:50%; background:var(--accent-bright); display:inline-block; }
.link-description {
  font-size: 0.78rem; color: var(--text2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link-arrow {
  padding: 0 1rem 0 0;
  color: var(--muted); flex-shrink:0;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.link-card:hover .link-arrow { opacity:1; transform: translateX(3px); }

/* EMPTY */
.empty {
  max-width:1100px; margin:0 auto; padding:4rem 1.5rem;
  text-align:center;
}
.empty-box {
  display:inline-block;
  background:var(--surface); border:1px solid var(--border);
  border-radius:20px; padding:3rem 4rem;
}
.empty-box svg { width:56px; height:56px; color:var(--muted); margin:0 auto 1rem; opacity:0.4; display:block; }
.empty-box h2 { font-family:'Lora',serif; font-size:1.3rem; margin-bottom:0.5rem; }
.empty-box p { color:var(--muted); font-size:0.9rem; }

/* FOOTER */
footer {
  /*position: fixed;*/
  /*left: 0;*/
  bottom: 0;
  width: 100%;
  
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.0rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--uem);
  /*margin-top: 100px;*/
}
footer a { color: var(--uem); text-decoration: none; }
.footer-content {
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  
}

/* RESPONSIVE */
@media (max-width:600px) {
  .hero { padding: 2rem 1rem 1rem; }
  .links-grid { grid-template-columns: 1fr; padding: 0 1rem 3rem; gap:1rem; }
  .hero h1 { font-size:1.6rem; }
  .link-thumb-wrap { width:76px; height:76px; }
}