﻿/*
Theme Name: Extendable
Theme URI: https://github.com/extendify/extendable
Author: Extendify
Author URI: https://extendify.com
Description: Modern dark tech theme with neon accents
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 2.1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: extendable
*/

/* ==============================================
   CSS Variables & Fallbacks
   ============================================== */
:root {
  --wp--custom--spacing--small: var(--wp--preset--spacing--30, clamp(1rem, 4vw, 1.5rem));
  --wp--custom--spacing--medium: var(--wp--preset--spacing--50, clamp(2rem, 8vw, 3.5rem));
  --wp--custom--spacing--large: var(--wp--preset--spacing--60, clamp(2.5rem, 10vw, 5rem));
  --wp--custom--spacing--outer: max(1.25rem, 4vw);
  --wp--preset--spacing--80: min(8rem, 12vw);
}

html { scroll-behavior: smooth; }

body {
  -moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
  -webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);
}

/* ==============================================
   Links
   ============================================== */
a {
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25ch;
  transition: color 0.2s ease;
}

a:hover, a:focus { text-decoration-style: dashed; }
a:active { text-decoration: none; }

/* ==============================================
   Focus
   ============================================== */
:where(.wp-site-blocks *:focus-visible) {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==============================================
   Glassmorphism Cards (for Query Loop items)
   ============================================== */
.glass-card {
  background: linear-gradient(135deg, rgba(20,20,40,0.6), rgba(10,10,20,0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--wp--preset--border-radius--lg, 20px);
  box-shadow: var(--wp--preset--shadow--card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.glass-card:hover {
  box-shadow: var(--wp--preset--shadow--card-hover);
  border-color: rgba(0,212,255,0.15);
  transform: translateY(-4px);
}

.glass-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover img {
  transform: scale(1.03);
}

/* ==============================================
   Neon Text Effect (for site title, CTAs)
   ============================================== */
.neon-text {
  background: var(--wp--preset--gradient--primary-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* ==============================================
   Header - Glass Nav
   ============================================== */
.site-header-glass {
  background: rgba(10, 10, 20, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ==============================================
   Blog Post Cards
   ============================================== */
.post-card {
  background: var(--wp--preset--color--tertiary);
  border-radius: var(--wp--preset--border-radius--lg, 20px);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.post-card:hover {
  border-color: rgba(0,212,255,0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.post-card .wp-block-post-featured-image {
  overflow: hidden;
}

.post-card .wp-block-post-featured-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}

/* ==============================================
   Category Pills
   ============================================== */
.cat-pill a {
  background: rgba(0,212,255,0.08);
  color: var(--wp--preset--color--primary);
  padding: 0.3em 0.8em;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0,212,255,0.12);
}

.cat-pill a:hover {
  background: rgba(0,212,255,0.18);
  border-color: rgba(0,212,255,0.3);
}

/* ==============================================
   Hero Gradient Background
   ============================================== */
.hero-glow {
  position: relative;
}

.hero-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% -10%, rgba(0,212,255,0.08), transparent),
              radial-gradient(ellipse 400px 200px at 80% 80%, rgba(124,58,237,0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ==============================================
   Navigation
   ============================================== */
@media (min-width: 600px) {
  .site-logo-title { display: none; }
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--tertiary) !important;
  backdrop-filter: blur(20px);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: var(--wp--preset--spacing--70);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  font-size: var(--wp--preset--font-size--large) !important;
}

/* ==============================================
   Footer
   ============================================== */
.site-footer {
  background: var(--wp--preset--gradient--footer-gradient);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==============================================
   Social Links
   ============================================== */
.wp-block-social-links .wp-block-social-link {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wp-block-social-links .wp-block-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* ==============================================
   Scroll Reveal Animation
   ============================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ==============================================
   Pulse Glow for CTA buttons
   ============================================== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0,212,255,0.2); }
  50% { box-shadow: 0 0 24px rgba(0,212,255,0.35); }
}

.btn-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ==============================================
   Image hover zoom
   ============================================== */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--wp--preset--border-radius--md, 12px);
}

.img-hover-zoom img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-hover-zoom:hover img {
  transform: scale(1.06);
}

/* ==============================================
   Divider line gradient
   ============================================== */
hr.is-style-gradient {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary), var(--wp--preset--color--accent));
  border-radius: 1px;
  opacity: 0.5;
}

/* ==============================================
   Search & Input
   ============================================== */
input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  background: var(--wp--preset--color--tertiary) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: var(--wp--preset--border-radius--md, 12px) !important;
  color: var(--wp--preset--color--foreground) !important;
  padding: 0.75em 1em !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--wp--preset--color--primary) !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1) !important;
  outline: none !important;
}

/* ==============================================
   Comments section
   ============================================== */
.wp-block-comments {
  background: var(--wp--preset--color--tertiary);
  border-radius: var(--wp--preset--border-radius--lg, 20px);
  padding: var(--wp--preset--spacing--40);
  border: 1px solid rgba(255,255,255,0.05);
}

.wp-block-comment-template > li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: var(--wp--preset--spacing--30);
  margin-bottom: var(--wp--preset--spacing--30);
}

/* ==============================================
   Blockquote styling
   ============================================== */
.wp-block-quote {
  border-left: 3px solid var(--wp--preset--color--primary) !important;
  padding-left: var(--wp--preset--spacing--40) !important;
  background: rgba(0,212,255,0.03);
  border-radius: 0 var(--wp--preset--border-radius--md) var(--wp--preset--border-radius--md) 0;
}

/* ==============================================
   Scrollbar styling
   ============================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--wp--preset--color--background); }
::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.5); }
