/**
 * Nunca Desista - Main Stylesheet
 * Tema: Roxo + Dourado (Claro) - Fontes Sans-serif
 */

:root {
  --primary: #6B4C9A;
  --primary-dark: #543B7A;
  --primary-light: #9B72D6;
  --secondary: #D4AF37;
  --secondary-light: #F4D03F;
  --background: #F8F6FC;
  --surface: #FFFFFF;
  --surface-alt: #F5F3FA;
  --text: #2D2438;
  --text-light: #6B5D7A;
  --text-muted: #9B8FA3;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; max-width: 65ch; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===================================
HEADER - Estilizado
=================================== */
.site-header {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(107, 76, 154, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--spacing-md);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { 
  transform: scale(1.02);
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.logo-text { 
  font-size: 1.4rem; 
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Navegação Principal */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-light);
}

.main-nav a:hover {
  background: rgba(107, 76, 154, 0.08);
  color: var(--primary);
  text-decoration: none;
}

/* Busca - Design Moderno */
.search-box {
  flex-shrink: 0;
}

.search-box form {
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  max-width: 280px;
}

.search-box form:focus-within {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 76, 154, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  padding: 0.25rem 0.5rem;
  min-width: 180px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-box button:hover {
  color: var(--primary);
}

.search-box svg {
  width: 18px;
  height: 18px;
}

/* Menu Mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  background: var(--surface);
  padding: var(--spacing-md);
  border-top: 1px solid rgba(107, 76, 154, 0.1);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul { list-style: none; }
.mobile-nav li { margin-bottom: var(--spacing-sm); }

/* ===================================
MAIN CONTENT
=================================== */
main {
  min-height: calc(100vh - 300px);
  padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.5;
}

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  max-width: 600px;
  margin: var(--spacing-lg) auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content { padding: var(--spacing-md); }
.card-title { font-size: 1.25rem; margin-bottom: var(--spacing-sm); color: var(--primary); }
.card-excerpt { color: var(--text-light); font-size: 0.95rem; }
.card-category {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.category-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-icon { font-size: 3rem; margin-bottom: var(--spacing-sm); }
.category-title { color: var(--primary); margin-bottom: var(--spacing-xs); }

.horoscope-widget {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-md);
}

.horoscope-signs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.horoscope-sign {
  text-align: center;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.horoscope-sign:hover { background: var(--surface-alt); }
.horoscope-sign.active { background: var(--primary); color: white; }
.horoscope-content {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--surface-alt);
  border-radius: var(--radius-md);
}

.newsletter-section,
.newsletter-cta {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(107, 76, 154, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: var(--spacing-md) auto 0;
  gap: var(--spacing-sm);
}

.newsletter-form input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-full);
}

.newsletter-form button {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--secondary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  background: var(--primary-dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 { color: var(--secondary); margin-bottom: var(--spacing-sm); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--spacing-xs); }
.footer-col a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--secondary); }

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: white;
}

.social-links a:hover { background: var(--secondary); }
.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-surface { background: var(--surface); }
.shadow { box-shadow: var(--shadow-md); }

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-secondary { background: var(--secondary); color: var(--text); }
.btn-secondary:hover { background: var(--secondary-light); }

/* Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-nav.active { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.25rem; }
  .search-box form { max-width: 200px; }
  .search-box input { min-width: 140px; }
}
