/*
Theme Name: Blank Text Generator
Theme URI: https://yoursite.com/blank-text-generator
Author: Your Name
Author URI: https://yoursite.com
Description: A modern, premium one-page Blank Text Generator theme with glassmorphism design, smooth animations, and full responsiveness.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blank-text-generator
Tags: one-column, custom-colors, custom-menu, featured-images, translation-ready
*/

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

:root {
  /* Primary Colors */
  --primary: 243 75% 59%;
  --primary-foreground: 0 0% 100%;
  --secondary: 142 71% 45%;
  --secondary-foreground: 0 0% 100%;
  
  /* Background & Surface */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  
  /* Card & Border */
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --border: 220 13% 91%;
  
  /* Accents */
  --accent: 220 14% 96%;
  --accent-foreground: 222 47% 11%;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(240 11% 96%) 0%, hsl(0 0% 100%) 50%, hsl(243 75% 97%) 100%);
  --gradient-card: linear-gradient(135deg, hsla(0, 0%, 100%, 0.9) 0%, hsla(0, 0%, 100%, 0.7) 100%);
  --gradient-primary: linear-gradient(135deg, hsl(243 75% 59%) 0%, hsl(258 90% 66%) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, hsla(243, 75%, 59%, 0.15) 0%, transparent 70%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 hsla(222, 47%, 11%, 0.05);
  --shadow-md: 0 4px 6px -1px hsla(222, 47%, 11%, 0.1), 0 2px 4px -2px hsla(222, 47%, 11%, 0.1);
  --shadow-lg: 0 10px 15px -3px hsla(222, 47%, 11%, 0.1), 0 4px 6px -4px hsla(222, 47%, 11%, 0.1);
  --shadow-xl: 0 20px 25px -5px hsla(222, 47%, 11%, 0.1), 0 8px 10px -6px hsla(222, 47%, 11%, 0.1);
  --shadow-glass: 0 8px 32px hsla(222, 47%, 11%, 0.08), 0 2px 8px hsla(222, 47%, 11%, 0.04);
  --shadow-glow: 0 0 40px hsla(243, 75%, 59%, 0.3);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: var(--gradient-hero);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: hsl(var(--muted-foreground));
  max-width: 65ch;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   LAYOUT & CONTAINERS
======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  margin: 0 auto;
}

/* ========================================
   GLASSMORPHISM CARDS
======================================== */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsla(0, 0%, 100%, 0.5);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-slow);
}

.glass-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.glass-card-elevated {
  background: var(--gradient-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid hsla(0, 0%, 100%, 0.6);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-md), 0 4px 14px hsla(243, 75%, 59%, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 6px 20px hsla(243, 75%, 59%, 0.5);
}

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

.btn-secondary {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.btn-secondary:hover {
  background: hsl(var(--border));
}

.btn-success {
  background: linear-gradient(135deg, hsl(var(--secondary)) 0%, hsl(152 76% 36%) 100%);
  color: hsl(var(--secondary-foreground));
  box-shadow: var(--shadow-md), 0 4px 14px hsla(142, 71%, 45%, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 6px 20px hsla(142, 71%, 45%, 0.5);
}

.btn-icon {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

/* ========================================
   HEADER / NAVIGATION
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--spacing-md) 0;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.site-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-menu a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-menu a:hover {
  color: hsl(var(--primary));
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: hsl(var(--background));
    padding: var(--spacing-lg);
    border-bottom: 1px solid hsl(var(--border));
  }
  
  .nav-menu.active {
    display: flex;
  }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  padding: calc(var(--spacing-3xl) * 2) 0 var(--spacing-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   GENERATOR SECTION
======================================== */
.generator-section {
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.generator-card {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-2xl);
}

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

.char-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.char-input {
  width: 100px;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.char-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(243, 75%, 59%, 0.2);
}

.output-area {
  margin-bottom: var(--spacing-lg);
}

.output-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--spacing-lg);
  font-family: monospace;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  resize: none;
  transition: all var(--transition-fast);
}

.output-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
}

.char-count-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--spacing-lg);
}

.char-count-number {
  font-weight: 700;
  color: hsl(var(--primary));
}

.copy-btn-wrapper {
  text-align: center;
}

.copy-btn {
  min-width: 200px;
}

/* ========================================
   HOW IT WORKS SECTION
======================================== */
.how-it-works {
  background: hsl(var(--muted));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.step-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-lg);
}

.step-card h3 {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   USE CASES SECTION
======================================== */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.usecase-card {
  padding: var(--spacing-xl);
  text-align: center;
}

.usecase-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.usecase-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   FEATURES SECTION
======================================== */
.features {
  background: hsl(var(--muted));
}

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

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: hsla(243, 75%, 59%, 0.1);
  color: hsl(var(--primary));
  border-radius: var(--radius-lg);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-content h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

.feature-content p {
  font-size: 0.875rem;
}

/* ========================================
   FAQ SECTION
======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid hsl(var(--border));
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: hsl(var(--foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: var(--spacing-lg);
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  padding: var(--spacing-2xl) 0;
  text-align: center;
  border-top: 1px solid hsl(var(--border));
}

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

.footer-text .heart {
  color: #ef4444;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--shadow-xl), 0 0 20px hsla(243, 75%, 59%, 0.3);
  }
  50% {
    box-shadow: var(--shadow-xl), 0 0 40px hsla(243, 75%, 59%, 0.5);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

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

.animate-scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 0.4s ease-out;
}

/* Animation delays for staggered reveals */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ========================================
   UTILITY CLASSES
======================================== */
.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;
}

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

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--spacing-3xl) * 1.5);
  }
  
  .generator-card {
    padding: var(--spacing-lg);
  }
  
  .char-selector {
    gap: var(--spacing-md);
  }
  
  .btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .char-input {
    width: 80px;
    height: 3rem;
    font-size: 1.25rem;
  }
}
/* Blog Page */
.blog-hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.blog-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 18px;
    color: #666;
}

/* Blog Grid */
.blog-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Blog Content */
.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 13px;
    color: #888;
}

.blog-content h2 {
    font-size: 20px;
    margin: 10px 0;
}

.blog-content h2 a {
    color: #222;
    text-decoration: none;
}

.blog-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

