/* 
  BeeCycle Theme Styles 
  A modern, premium design incorporating warm yellow (honey/bees) and red (community protection).
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Outfit:wght@400;700&display=swap');

:root {
  /* Brand colors */
  --bee-yellow: #FACC15; /* Vibrant yellow */
  --honey-orange: #D97706; /* Deep honey orange */
  --protect-red: #DC2626; /* Strong striking red */
  --accent-red: #EF4444; /* Brighter red */

  /* Backgrounds & text */
  --bg-color: #121212;
  --bg-secondary: #1F1F1F;
  --text-color: #F8FAFC;
  --text-muted: #94A3B8;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 1rem;
}

a {
  color: var(--bee-yellow);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--honey-orange);
}

/* Header */
.site-header {
  padding: 1.5rem 5%;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

.site-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bee-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-logo span {
  color: var(--protect-red);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-color);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--bee-yellow);
}

/* Hero Section */
.hero {
  padding: 8rem 5%;
  text-align: center;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-color) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.05) 0%, transparent 50%);
  animation: rotate 60s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--bee-yellow) 0%, var(--protect-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--honey-orange) 0%, var(--protect-red) 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
  color: #fff;
}

/* Post Grid */
.post-section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--bee-yellow);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(250, 204, 21, 0.3);
}

.post-image {
  height: 200px;
  background-color: var(--bg-color);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Placeholder pattern using CSS for visual appeal if no image */
.post-image-placeholder {
  background: linear-gradient(45deg, var(--protect-red), var(--honey-orange));
  opacity: 0.8;
  height: 100%;
  width: 100%;
}

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

.post-tag {
  color: var(--bee-yellow);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--text-color);
}

.post-title a:hover {
  color: var(--bee-yellow);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Single Post layout */
.post-full {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 5%;
}

.post-full-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-full-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.post-full-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.post-full-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #E2E8F0;
}

.post-full-content h2, 
.post-full-content h3 {
  color: var(--bee-yellow);
  margin-top: 2.5rem;
}

.post-full-content p {
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4rem;
  color: var(--text-muted);
}

/* Ghost Koenig Editor Classes (Required for Theme Validation) */
.kg-width-wide {
  min-width: 100%;
  max-width: 100vw;
}

.kg-width-full {
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
  margin-left: 0;
  margin-right: 0;
}
