/*
Theme Name: CHAZIF - Cut The Crap
Theme URI: https://chazif.com
Author: Chazif
Description: Zero-Based Marketing Primer for frustrated CFOs and CMOs. Exact replica of the Next.js design.
Version: 1.0.0
License: GPL v2 or later
Text Domain: chazif
*/

/* ============================================
   IMPORT FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================
   CSS VARIABLES - EXACT MATCH TO NEXT.JS
   ============================================ */
:root {
  /* Light Mode */
  --color-background: #ffffff;
  --color-foreground: #1a1a1a;
  --color-accent: #CFFF04;
  --color-accent-hover: #b8e600;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-surface: #f9fafb;
  
  /* Dark Mode - these get overridden by .dark class */
  --color-dark-background: #0a0a0a;
  --color-dark-foreground: #e5e5e5;
  --color-dark-muted: #9ca3af;
  --color-dark-border: #2a2a2a;
  --color-dark-surface: #141414;
  
  /* Font families - EXACT */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Dark mode applied via class on html element */
.dark {
  --color-background: #0a0a0a;
  --color-foreground: #e5e5e5;
  --color-muted: #9ca3af;
  --color-border: #2a2a2a;
  --color-surface: #141414;
}

/* ============================================
   BASE STYLES - EXACT TAILWIND RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s, color 0.2s;
}

/* Typography - EXACT MATCH */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-foreground);
}

/* ============================================
   LAYOUT - EXACT FROM LAYOUT.TSX
   ============================================ */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 2.5rem 0;
}

/* ============================================
   HEADER - EXACT FROM HEADER.TSX
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s, border-color 0.2s;
}

.dark .site-header {
  background-color: rgba(10, 10, 10, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 768px;
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--color-foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  padding: 0.375rem;
  border-radius: 0.375rem;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.icon-btn:hover {
  color: var(--color-foreground);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   HERO SECTION - EXACT FROM HERSECTION.TSX
   ============================================ */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title-accent {
  color: var(--color-accent);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

/* Email Form - EXACT MATCH */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
}

@media (min-width: 640px) {
  .email-form {
    flex-direction: row;
  }
}

.email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.15s;
}

.email-input::placeholder {
  color: var(--color-muted);
}

.email-input:focus {
  border-color: var(--color-accent);
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-accent);
  color: var(--color-foreground);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
}

/* Success/Error States */
.form-success {
  padding: 1rem 0;
}

.form-success-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.form-success-text {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.form-error {
  font-size: 0.875rem;
  color: #ef4444;
  margin-top: 0.75rem;
}

/* ============================================
   SERIES INTRO SECTION
   ============================================ */
.series-intro {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.series-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.series-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .series-title {
    font-size: 2.25rem;
  }
}

.series-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 640px;
}

/* ============================================
   CURRICULUM TIMELINE - EXACT FROM COMPONENT
   ============================================ */
.curriculum {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.curriculum-header {
  margin-bottom: 2.5rem;
}

.curriculum-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .curriculum-title {
    font-size: 1.875rem;
  }
}

.curriculum-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.phase {
  margin-bottom: 3rem;
}

.phase-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.phase-posts {
  border-left: 2px solid var(--color-border);
  margin-left: 1rem;
  padding-left: 0;
  list-style: none;
}

.phase-post {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
}

.phase-post::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
}

.phase-post.published::before {
  background-color: var(--color-accent);
}

.phase-post a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: var(--color-foreground);
  text-decoration: none;
  transition: color 0.15s;
}

.phase-post a:hover {
  color: var(--color-accent);
}

.phase-post:not(.published) {
  color: rgba(107, 114, 128, 0.7);
}

.post-number {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  min-width: 1.5rem;
}

.phase-post:not(.published) .post-number {
  color: rgba(128, 128, 128, 0.5);
}

.post-title {
  font-weight: 500;
}

.phase-post:not(.published) .post-title {
  color: var(--color-muted);
}

.lock-icon {
  margin-left: 0.5rem;
  opacity: 0.4;
}

.lock-icon svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   DUMPSTER FIRES GRID - EXACT FROM COMPONENT
   ============================================ */
.dumpster-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dumpster-header {
  margin-bottom: 2.5rem;
}

.dumpster-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .dumpster-title {
    font-size: 1.875rem;
  }
}

.dumpster-description {
  color: var(--color-muted);
}

.dumpster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .dumpster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.dumpster-card {
  border: 1px solid var(--color-border);
  padding: 1.5rem;
}

.dumpster-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.dumpster-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.dumpster-cta {
  text-align: center;
}

.dumpster-cta .email-form {
  margin: 0 auto;
}

.dumpster-hint {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

/* ============================================
   AUTHOR SECTION - EXACT FROM COMPONENT
   ============================================ */
.author-section {
  padding: 4rem 0;
}

.author-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .author-inner {
    flex-direction: row;
  }
}

.author-avatar {
  width: 5rem;
  height: 5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-muted);
}

.author-content {
  flex: 1;
}

.author-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.author-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.author-content p {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.author-form-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ============================================
   FOOTER - EXACT FROM FOOTER.TSX
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */
.single-post {
  padding: 2rem 0;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-accent);
  color: var(--color-foreground);
  text-decoration: none;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

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

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-muted);
}

.post-content code {
  background-color: var(--color-surface);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Monaco', 'Menlo', monospace;
}

.post-content pre {
  background-color: var(--color-surface);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-header {
  margin-bottom: 2.5rem;
}

.search-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.search-form-large {
  margin-bottom: 2rem;
}

.search-form-large input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.15s;
}

.search-form-large input:focus {
  border-color: var(--color-accent);
}

.search-form-large input::placeholder {
  color: var(--color-muted);
}

.search-result {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.search-result h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.search-result h3 a {
  color: var(--color-foreground);
  text-decoration: none;
}

.search-result h3 a:hover {
  color: var(--color-accent);
}

.search-result p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ANIMATIONS - EXACT FROM NEXT.JS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Initially hide animated elements */
.animate-fade-in-up {
  opacity: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-muted);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
