/* LotoLuck News Theme - Core Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-secondary: #ec4899;
  --color-dark: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-500: #64748b;
  --color-bg: #f1f5f9;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Glassmorphism Styles (matching LotoLuck panel design) */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
}

.glass-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Header & Navigation */
.header-container {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.nav-menu-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav-item a {
  font-weight: 600;
  color: var(--color-slate-500);
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item a:hover, .nav-item.active a {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-hover);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 4rem 3rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.hero-cta-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-cta-button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-decoration: none;
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
  filter: brightness(1.1);
}

.hero-cta-legend {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.hero-categories {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.chip-megasena { background: #22c55e; }
.chip-lotofacil { background: #9333ea; }
.chip-quina { background: #1e3a8a; }
.chip-lotomania { background: #f59e0b; }
.chip-duplasena { background: #ef4444; }
.chip-supersete { background: #06b6d4; }

/* Layout */
.main-wrapper {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

.post-detail {
  padding: 2.5rem;
  margin-top: 1rem;
}

/* Post Card Grid (Home Page) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card-image-link {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background-color: var(--color-border);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--color-slate-800);
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-slate-500);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.post-card-meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-slate-500);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
}

/* Post / Article Page styling */
.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate-500);
  margin-bottom: 1rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-slate-800);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.post-excerpt {
  font-size: 1.2rem;
  color: var(--color-slate-500);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.post-featured-image-container {
  border-radius: 24px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 3rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.post-featured-image {
  width: 100%;
  display: block;
}

/* Main Content Styles */
.post-content {
  max-width: 720px;
  margin: 0 auto;
}

.post-content p {
  font-size: 1.1rem;
  color: var(--color-slate-800);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-slate-800);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--color-slate-800);
}

.post-content ul, .post-content ol {
  margin: 0 0 1.75rem 1.5rem;
}

.post-content li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-slate-800);
}

.post-content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

/* LotoLuck Widget CTA Integration Styles */
.post-content a strong {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-content a strong:hover {
  color: var(--color-primary-hover);
}

/* Footer */
.footer {
  margin-top: 5rem;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  text-align: center;
  color: var(--color-slate-500);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.results-iframe {
  width: 100%;
  height: 1200px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .nav-brand a {
    font-size: 1.35rem;
  }

  .nav-item a {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }

  .main-wrapper {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .post-detail {
    padding: 1.25rem 1rem;
    margin-top: 0.5rem;
    border-radius: 12px;
  }
  
  .hero-section {
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-cta-button {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
  }

  .hero-cta-legend {
    font-size: 0.85rem;
    text-align: center;
  }

  .chip {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  
  .post-title {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  
  .post-content p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }

  /* Widgets get taller on tablet portrait as columns wrap */
  iframe[src*="embed/conferidor"] {
    height: 850px !important;
  }
  iframe[src*="embed/gerador"] {
    height: 750px !important;
  }
  .results-iframe {
    height: 1800px !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1.25rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }

  /* Widgets stack completely on narrow mobile screens */
  iframe[src*="embed/conferidor"] {
    height: 980px !important;
  }
  iframe[src*="embed/gerador"] {
    height: 880px !important;
  }
  .results-iframe {
    height: 2200px !important;
  }
}

/* Koenig content widths (required by Ghost theme validation) */
.kg-width-wide {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

