/*
Theme Name: Replit Style
Theme URI: https://example.com/replit-style
Description: WordPress theme inspired by Replit.com design
Version: 1.0.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: replit-style
*/

/* ================================
   CSS Variables & Root
================================ */
:root {
  --replit-bg-dark: #0a0a0f;
  --replit-bg-secondary: #12121a;
  --replit-bg-card: #1a1a2e;
  --replit-primary: #6c5ce7;
  --replit-primary-light: #a29bfe;
  --replit-accent: #00cec9;
  --replit-gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --replit-text: #ffffff;
  --replit-text-muted: #a0a0b0;
  --replit-border: rgba(255, 255, 255, 0.1);
  --replit-shadow: 0 10px 40px rgba(108, 92, 231, 0.2);
}

/* ================================
   Base Reset & Typography
================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--replit-bg-dark);
  color: var(--replit-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--replit-primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--replit-accent);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* ================================
   Navigation
================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--replit-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--replit-text);
}

.site-logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--replit-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--replit-text);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ================================
   Buttons
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--replit-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--replit-text);
  border: 1px solid var(--replit-border);
}

.btn-secondary:hover {
  background: var(--replit-bg-card);
  border-color: var(--replit-primary);
  color: var(--replit-text);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ================================
   Hero Section
================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  background: var(--replit-bg-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--replit-bg-card);
  border: 1px solid var(--replit-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--replit-text-muted);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a29bfe 50%, #00cec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--replit-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--replit-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--replit-text);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--replit-text-muted);
  margin-top: 0.25rem;
}

/* ================================
   Features Section
================================ */
.features {
  padding: 100px 2rem;
  background: var(--replit-bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--replit-text-muted);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--replit-bg-card);
  border: 1px solid var(--replit-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--replit-primary);
  box-shadow: var(--replit-shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--replit-gradient);
  border-radius: 16px;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--replit-text-muted);
  line-height: 1.7;
}

/* ================================
   CTA Section
================================ */
.cta-section {
  padding: 100px 2rem;
  background: var(--replit-bg-dark);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: var(--replit-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ================================
   Footer
================================ */
.site-footer {
  background: var(--replit-bg-secondary);
  border-top: 1px solid var(--replit-border);
  padding: 60px 2rem 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--replit-text);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: var(--replit-text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--replit-primary-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--replit-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--replit-text-muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--replit-bg-card);
  border-radius: 10px;
  color: var(--replit-text-muted);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--replit-primary);
  color: white;
}

/* ================================
   Content Area
================================ */
.site-content {
  padding-top: 70px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================
   Animations
================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ================================
   Mobile Responsive
================================ */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding: 100px 1rem 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .features {
    padding: 60px 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================
   WordPress Specific
================================ */
.wp-block-image img {
  border-radius: 12px;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}