/*
Theme Name: AI Tool Verses
Theme URI: https://www.aitoolverses.com/
Author: AI Tool Verses Team
Author URI: https://www.aitoolverses.com/
Description: A futuristic, cosmic-themed WordPress theme for exploring the multiverse of AI tools. Features glassmorphism, neon accents, and space-inspired design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aitoolverses
Tags: dark, modern, ai, technology, responsive, custom-menu
*/

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --bg-primary: #0a0f1f;
    --bg-secondary: #1b2340;
    --accent-blue: #00E5FF;
    --accent-magenta: #E040FB;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --card-bg: rgba(27, 35, 64, 0.6);
    --glow-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }
  
  /* Animated starfield background */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(2px 2px at 20% 30%, white, transparent),
      radial-gradient(2px 2px at 60% 70%, white, transparent),
      radial-gradient(1px 1px at 50% 50%, white, transparent),
      radial-gradient(1px 1px at 80% 10%, white, transparent),
      radial-gradient(2px 2px at 90% 60%, white, transparent),
      radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starfield 200s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
  }
  
  @keyframes starfield {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
  }
  
  /* ==========================================
     TYPOGRAPHY
     ========================================== */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
  h4 { font-size: 1.5rem; }
  
  a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  a:hover {
    color: var(--accent-magenta);
    text-shadow: 0 0 10px var(--accent-magenta);
  }
  
  /* ==========================================
     CONTAINER & LAYOUT
     ========================================== */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
  }
  
  .site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
    padding: 40px 0;
  }
  
  /* ==========================================
     HEADER & NAVIGATION
     ========================================== */
  .site-header {
    background: rgba(10, 15, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--glow-shadow);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-title {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
  }
  
  .main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
  }
  
  .main-navigation a {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-magenta));
    transition: left 0.3s ease;
    z-index: -1;
    opacity: 0.2;
  }
  
  .main-navigation a:hover::before {
    left: 0;
  }
  
  .main-navigation a:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  }
  
  /* Theme Toggle */
  .theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--accent-blue);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
  }
  
  .theme-toggle:hover {
    background: var(--accent-blue);
    color: var(--bg-primary);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
  }
  
  /* ==========================================
     HERO SECTION
     ========================================== */
  .hero-section {
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
    animation: pulse 4s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
  }
  
  .hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-magenta), var(--accent-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
  }
  
  @keyframes gradient-shift {
    to { background-position: 200% center; }
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
  }
  
  .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-magenta));
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.4);
  }
  
  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224, 64, 251, 0.6);
    color: white;
  }
  
  /* ==========================================
     POST CARDS (Glassmorphism)
     ========================================== */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .post-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .post-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(224, 64, 251, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .post-card:hover::before {
    opacity: 1;
  }
  
  .post-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-magenta);
    box-shadow: 0 10px 30px rgba(224, 64, 251, 0.3);
  }
  
  .post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 229, 255, 0.3);
  }
  
  .post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .read-more {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
    color: var(--accent-blue);
    transition: all 0.3s ease;
  }
  
  .read-more:hover {
    background: var(--accent-blue);
    color: var(--bg-primary);
    box-shadow: var(--glow-shadow);
  }
  
  /* ==========================================
     SINGLE POST
     ========================================== */
  .single-post {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, transparent, var(--accent-blue), transparent) 1;
  }
  
  .post-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    line-height: 1.8;
  }
  
  .post-content p {
    margin-bottom: 20px;
  }
  
  .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
  }
  
  /* ==========================================
     FOOTER
     ========================================== */
  .site-footer {
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow);
  }
  
  .copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* ==========================================
     LIGHT MODE
     ========================================== */
  body.light-mode {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --accent-blue: #0077ff;
    --accent-magenta: #c026d3;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.8);
  }
  
  body.light-mode::before {
    opacity: 0.1;
  }
  
  /* ==========================================
     RESPONSIVE DESIGN
     ========================================== */
  @media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .main-navigation ul {
      flex-direction: column;
      gap: 10px;
    }
    
    .header-content {
      flex-direction: column;
      gap: 20px;
    }
    
    .posts-grid {
      grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
  }
  
  /* ==========================================
     UTILITIES
     ========================================== */
  .section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-magenta), transparent);
    margin: 60px 0;
  }
  
  .glowing-text {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  }
  
  .fade-in {
    animation: fadeIn 1s ease-in;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }