@import "__reset.css";
@import "__variables.css";
@import "__typography.css";
@import "__utilities.css";
@import "__query.css";
@import "__components.css";
@import "__front-page.css";

/* LAYOUT WRAPPERS */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;  
  position: relative;
  overflow: hidden;
}

.site {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

/* Configurações da Imagem de Fundo - Otimizada com Cloudinary */
.site {
  /* Versão para Telemóvel (Mobile) - Imagem menor para poupar dados */
  background-image: url("https://res.cloudinary.com/dwon6igdd/image/upload/w_600,f_auto,q_auto/v1767717941/bg-front-page-1200-alpha_zyfuai.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

/* Versão para Tablets */
@media (min-width: 768px) {
  .site {
    background-image: url("https://res.cloudinary.com/dwon6igdd/image/upload/w_900,f_auto,q_auto/v1767717941/bg-front-page-1200-alpha_zyfuai.png");
  }
}

/* Versão para Desktop (conforme o teu original de 1200px) */
@media (min-width: 1200px) {
  .site {
    background-image: url("https://res.cloudinary.com/dwon6igdd/image/upload/w_1200,f_auto,q_auto/v1767717941/bg-front-page-1200-alpha_zyfuai.png");
    background-size: 100% auto;
  }
}

/* ELIPSE DA ESQUERDA (Z-index ajustado) */
.site::before {
  content: "";
  position: absolute;
  width: 1000px;
  height: 600px;
  border-radius: 50%;
  background: var(--color-primary);
  filter: blur(180px);
  opacity: 0.6;
  top: -320px;
  left: -180px;
  pointer-events: none;
  z-index: 1;
}

/* ELIPSE DA DIREITA (Z-index ajustado) */
.site::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent-color);
  filter: blur(150px);
  opacity: 0.5;
  top: 0%;
  right: -400px;
  pointer-events: none;
  z-index: 1;
}
/* 
============================================
7. ESTILOS ESPECÍFICOS DO TEMA
============================================
Aqui você adiciona estilos únicos do seu projeto
*/

/* Exemplo: Estilo para página de autor */
.author-header {
  padding: var(--space-xl) 0;
}

.author-bio {
  font-size: var(--font-size-md);
  line-height: 1.6;
  margin: var(--space-md) 0;
}

/* Exemplo: Estilo para posts */
.post-hero {
  padding: var(--space-xl) 0;
}

.post-content p {
  font-size: var(--font-size-md);
  line-height: 1.7;
}

.thumb-author {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb-author img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subtitle {
  color: var(--project-color);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}
.post-category {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-accent);
}
.post-category--hero {
  display: block;
  font-size: 1.6rem;
  color: var(--project-color);
}
/* 
============================================
8. ESTADOS & INTERAÇÕES
============================================
Estados como hover, focus, active, etc.
*/

/* Focus para acessibilidade */
:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* Estados de botão */
.btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

/* DIREITA */
.post-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.post-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
}

/* 
============================================
10. HELPER CLASSES & DEBUG
============================================
Classes úteis para desenvolvimento
*/

/* Debug (remover em produção) */
.debug * {
  outline: 1px solid rgba(255, 0, 0, 0.1);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
