/*
Theme Name: Strands Game Theme
Description: Custom WordPress theme for strands.com.in - A modern, responsive theme for the Strands puzzle game with Elementor support
Version: 1.0
Author: Custom Theme Developer
*/

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #4facfe;
  --warning-color: #43e97b;
  --error-color: #fa709a;
  --dark-bg: #0f0f23;
  --darker-bg: #050505;
  --light-bg: #fafbff;
  --card-bg: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-dark: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  --shadow-glow-accent: 0 0 20px rgba(240, 147, 251, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--light-bg);
  overflow-x: hidden;
}

/* Header Styles */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.site-logo img,
.custom-logo-link img {
  height: 50px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-logo:hover img,
.custom-logo-link:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.site-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Navigation Styles */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
}

.nav-menu a:hover {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-menu a:hover::before {
  width: 80%;
}

/* Dropdown Menu */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  box-shadow: var(--shadow-xl);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.25rem 0;
}

.nav-menu .sub-menu a:hover {
  background: var(--gradient-primary);
  color: white;
}

/* Search Icon */
.header-search {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.header-search:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
}

/* Animated Floating Object */
.floating-animation {
  position: relative;
  height: 200px;
  margin: 120px 0 50px;
  overflow: hidden;
}

.floating-object {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

.floating-object::before {
  content: '🧩';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  animation: rotate 8s linear infinite;
}

.floating-object::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--gradient-accent);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-20px); }
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

/* Main Content Styles */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-section {
  margin: 4rem 0;
  padding: 3rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.content-section:hover {
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  position: relative;
}

/* Custom Heading Styles */
h1, h2, h3, h4, h5, h6 {
  position: relative;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 1rem;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  position: relative;
  padding-left: 1.5rem;
}

h3::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-size: 1rem;
}

h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

h5 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h6 {
  font-size: 1rem;
  color: var(--text-light);
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-post-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
}

.blog-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(102, 126, 234, 0.3);
}

.blog-post-card:hover::before {
  transform: scaleX(1);
}

.blog-post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image {
  transform: scale(1.05);
}

.blog-post-content {
  padding: 2rem;
}

.blog-post-category {
  display: inline-block;
  background: var(--gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.blog-post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-post-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.read-more:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateX(5px);
}

/* Single Post Styles */
.single-post-article {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.breadcrumbs {
  margin-bottom: 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
  border-radius: 8px;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--secondary-color);
}

.breadcrumbs .separator {
  color: var(--text-light);
  margin: 0 0.5rem;
}

.breadcrumbs .current {
  color: var(--text-secondary);
}

.entry-header {
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 2rem;
}

.entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-meta i {
  color: var(--accent-color);
}

.post-featured-image {
  margin: 2rem 0;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 2rem 0;
}

.entry-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.entry-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.entry-content em {
  color: var(--secondary-color);
  font-style: italic;
}

.entry-content ul, .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.entry-content blockquote {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-style: italic;
  color: var(--text-secondary);
}

.entry-content code {
  background: var(--light-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.entry-content pre {
  background: var(--dark-bg);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.tags-links {
  margin-bottom: 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
  border-radius: 8px;
}

.tags-links a {
  display: inline-block;
  background: var(--gradient-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.8rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.tags-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.social-share h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-buttons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.related-posts {
  margin: 4rem 0;
  padding: 3rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.related-posts-title {
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Download Button */
.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gradient-primary);
  color: white;
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.download-button:hover::before {
  left: 100%;
}

.download-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.download-button:hover i {
  transform: scale(1.2);
}

/* Floating Download Button */
.floating-download {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--gradient-secondary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-download:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-glow-accent);
}

/* Installation Steps */
.installation-steps {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.step-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  background: var(--gradient-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Game Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 172, 254, 0.3);
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Screenshots Gallery */
.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.screenshot-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.screenshot-item:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.screenshot-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screenshot-item:hover img {
  transform: scale(1.1);
}

/* Newsletter Popup */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-popup.show {
  opacity: 1;
  visibility: visible;
}

.newsletter-content {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-color);
}

.newsletter-popup.show .newsletter-content {
  transform: scale(1);
}

.newsletter-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.newsletter-close:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
}

.newsletter-content h2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--card-bg);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-form button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Footer */
.site-footer {
  background: var(--gradient-dark);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 600;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.footer-about-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-section a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* SEO Content Styling */
.seo-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.seo-content h3 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.seo-content ul, .seo-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.seo-content li {
  margin: 0.75rem 0;
  color: var(--text-secondary);
}

.seo-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }
  
  .content-section {
    padding: 2rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .single-post-article {
    padding: 2rem;
  }
  
  .entry-title {
    font-size: 2rem;
  }
  
  .entry-meta {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
    min-height: 70px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 16px 16px;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-content {
    padding: 0 15px;
  }
  
  .content-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshots-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .floating-download {
    bottom: 20px;
    right: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .single-post-article {
    padding: 1.5rem;
  }
  
  .entry-title {
    font-size: 1.75rem;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .share-buttons a {
    width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .newsletter-content {
    padding: 2rem 1.5rem;
  }
  
  .screenshots-gallery {
    grid-template-columns: 1fr;
  }
  
  .floating-animation {
    height: 150px;
    margin: 100px 0 30px;
  }
  
  .floating-object {
    width: 120px;
    height: 120px;
  }
  
  .floating-object::before {
    font-size: 3rem;
  }
  
  .download-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .site-logo img,
  .custom-logo-link img {
    height: 40px;
  }
  
  .entry-title {
    font-size: 1.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus States for Accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}