/*
Theme Name: Post99 Landing
Theme URI: http://post99.ru/
Author: Post99 Team
Author URI: http://post99.ru/
Description: Современная лендинг-тема для проекта Post99 - кросспостинг из Telegram. Тёмный дизайн с градиентами, анимированными частицами и адаптивной вёрсткой.
Version: 6.9.1
Requires at least: 6.0
Tested up to: 6.5
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: post99
Tags: one-column, custom-colors, custom-logo, editor-style, featured-images, full-width-template, rtl-language-support, theme-options, translation-ready
*/

/* ========================================
   POST99 LANDING THEME - CSS STYLES
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Properties */
:root {
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-accent: #06b6d4;
  --color-bg-dark: #0f172a;
  --color-bg-medium: #1e293b;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.1);
  --gradient-main: linear-gradient(135deg, #3b82f6, #06b6d4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.4;
  }
}

@keyframes gradient {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@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);
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #60a5fa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 3s ease infinite;
}

/* Navigation */
.site-nav {
  position: relative;
  z-index: 50;
  padding: 1rem 1.5rem;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  animation: fadeInUp 0.7s ease forwards;
}

.site-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.site-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #94a3b8;
  animation: fadeInUp 0.7s ease 0.2s forwards;
  opacity: 0;
}

.nav-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(30, 58, 138, 0.2) 0%, transparent 50%);
}

.bg-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.bg-glow-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  padding: 5rem 1.5rem 8rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.3s forwards;
  opacity: 0;
}

.hero-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #60a5fa;
}

.hero-badge span {
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  animation: fadeInUp 0.7s ease 0.4s forwards;
  opacity: 0;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.5s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.7s ease 0.6s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Countdown Section */
.countdown-label {
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  animation: fadeInUp 0.7s ease 0.7s forwards;
  opacity: 0;
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.7s ease forwards;
  opacity: 0;
}

.countdown-item {
  position: relative;
}

.countdown-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 1rem;
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
}

.countdown-box {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  min-width: 80px;
}

.countdown-value {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-unit {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Features Section */
.features-section {
  position: relative;
  z-index: 10;
  padding: 6rem 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.section-subtitle {
  color: #94a3b8;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 3rem;
}

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

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Status Section */
.status-section {
  position: relative;
  z-index: 10;
  padding: 6rem 1.5rem;
}

.status-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}

.status-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: 1.5rem;
  filter: blur(20px);
  z-index: -1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.status-badge-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #facc15;
  animation: pulse 2s infinite;
}

.status-badge-text {
  color: #facc15;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.status-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.status-text {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.status-checks {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.status-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.status-check-item svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #4ade80;
  stroke-width: 2.5;
  fill: none;
}

.progress-container {
  max-width: 400px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 9999px;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  animation: pulse 2s infinite;
}

.progress-label {
  color: #64748b;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-name {
  color: white;
  font-weight: 600;
}

.footer-copy {
  color: #64748b;
  font-size: 0.875rem;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

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

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem 5rem;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-box {
    min-width: 60px;
    padding: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .status-card {
    padding: 2rem 1.5rem;
  }

  .status-checks {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* WordPress Specific */
.wp-admin-bar {
  position: relative;
  z-index: 9999;
}

/* Screen Reader Text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
