/* =========================================================
   WareGeeks — Premium Glassmorphism Design System
   ========================================================= */

:root {
    --bg: #07071a;
    --bg-2: #0b0b26;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.10);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --text: #f5f3ff;
    --text-muted: #b6b3d1;
    --primary: #a855f7;
    --primary-2: #7c3aed;
    --accent: #22d3ee;
    --pink: #ec4899;
    --shadow-glow: 0 30px 80px -20px rgba(124, 58, 237, 0.45);
    --shadow-card: 0 20px 60px -30px rgba(0, 0, 0, 0.6);
    --radius: 18px;
    --radius-lg: 28px;
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);
    --gradient-hero: linear-gradient(135deg, #ec4899 0%, #a855f7 45%, #22d3ee 100%);
    --font-display: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.waregeeks-theme {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: radial-gradient(1200px 800px at 15% -10%, rgba(168, 85, 247, 0.25), transparent 60%),
                radial-gradient(1000px 700px at 100% 10%, rgba(34, 211, 238, 0.18), transparent 60%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #67e8f9; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; color: var(--text); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.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; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 999; }

/* Background orbs and grid */
.bg-orb { position: fixed; border-radius: 50%; filter: blur(120px); opacity: .55; z-index: 0; pointer-events: none; }
.bg-orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #a855f7 0%, transparent 70%); top: -120px; left: -140px; animation: floatOrb 18s ease-in-out infinite; }
.bg-orb-2 { width: 620px; height: 620px; background: radial-gradient(circle, #22d3ee 0%, transparent 70%); bottom: -180px; right: -160px; animation: floatOrb 22s ease-in-out infinite reverse; }
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.site { position: relative; z-index: 1; }

/* Glass primitives */
.glass-card, .glass-nav, .glass-frame, .glass-input {
    background: var(--surface);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.glass-card { padding: 28px; }
.glass-frame { padding: 8px; overflow: hidden; }
.glass-frame img { border-radius: calc(var(--radius-lg) - 10px); }

/* Header */
.site-header { position: sticky; top: 16px; z-index: 50; padding: 0 16px; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 12px 18px; border-radius: 999px;
    margin-top: 12px;
}
.site-branding a.site-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo-mark { display: inline-flex; }
.main-navigation .nav-menu {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 6px;
}
.main-navigation .nav-menu li a {
    display: inline-block; padding: 10px 16px; border-radius: 999px;
    color: var(--text); font-weight: 500; font-size: .95rem; transition: all .2s;
}
.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li.current-menu-item > a {
    background: var(--surface-strong); color: #fff;
}
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.menu-toggle-bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
    line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--gradient-primary); color: #0b0b26; box-shadow: 0 10px 30px -8px rgba(168, 85, 247, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(168, 85, 247, .7); color: #0b0b26; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--surface-strong); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-cta { padding: 10px 20px; font-size: .9rem; }
.play-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.15); font-size: .65rem; }

/* Hero */
.hero { padding: 40px 0 80px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: .82rem; color: var(--text-muted); font-weight: 500;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-primary); box-shadow: 0 0 12px var(--primary); }
.hero-title { margin: 22px 0 18px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; }
.hero-lead { color: var(--text-muted); font-size: 1.15rem; max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.social-proof { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg-2); margin-left: -10px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--surface-strong); }
.avatar:first-child { margin-left: 0; }
.avatar-count { background: var(--gradient-primary); color: #0b0b26; }
.proof-text { display: flex; flex-direction: column; font-size: .88rem; color: var(--text-muted); }
.proof-text strong { color: var(--text); }

.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: -60px; background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, .35), transparent 60%); filter: blur(40px); z-index: -1; }
.hero-image { animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); border-radius: 24px; }
.floaty { animation: floaty 6s ease-in-out infinite; }

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* Section headings */
.section-heading { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading p { color: var(--text-muted); font-size: 1.05rem; }

/* Features */
.features-section { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feature-card { display: flex; flex-direction: column; text-align: left; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.feature-illustration { width: 120px; height: 120px; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }
.feature-illustration img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(168,85,247,.35)); animation: floaty 7s ease-in-out infinite; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); margin-bottom: 20px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); margin-top: auto; }
.read-more:hover { gap: 12px; }

/* Showcase */
.showcase-section { padding: 40px 0 80px; }
.showcase-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 44px; }
.showcase-copy p { color: var(--text-muted); margin-bottom: 24px; }
.showcase-posts { display: flex; flex-direction: column; gap: 14px; }
.mini-post { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: background .2s, transform .2s; color: var(--text); }
.mini-post:hover { background: var(--surface-strong); transform: translateX(4px); color: #fff; }
.mini-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--gradient-primary); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb-placeholder { background: var(--gradient-hero); }
.mini-body { display: flex; flex-direction: column; gap: 4px; }
.mini-date { font-size: .78rem; color: var(--text-muted); }
.mini-title { font-family: var(--font-display); font-weight: 600; }
.mini-empty { color: var(--text-muted); }

/* CTA */
.cta-section { padding: 40px 0 100px; }
.cta-card { text-align: center; padding: 60px 40px; background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.12)); border-color: var(--border-strong); }
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }

/* Page hero (blog index) */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 12px; }
.page-subtitle { color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* Posts grid */
.posts-section { padding: 40px 0 100px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-thumb:hover img { transform: scale(1.05); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.post-meta a { color: var(--text-muted); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.post-title { font-size: 1.3rem; margin: 4px 0; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--text-muted); font-size: .95rem; margin: 0 0 12px; flex: 1; }
.post-excerpt p { color: inherit; margin: 0; }

.no-posts { text-align: center; padding: 60px 40px; }

/* Pagination */
.pagination-wrap { margin-top: 60px; display: flex; justify-content: center; }
.pagination-wrap .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pagination-wrap .page-numbers.current, .pagination-wrap .page-numbers:hover { background: var(--gradient-primary); color: #0b0b26; border-color: transparent; }

/* Single */
.single-wrap { padding: 80px 0 100px; }
.single-header { text-align: center; margin-bottom: 32px; }
.single-header .post-meta { justify-content: center; margin-bottom: 12px; }
.single-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.single-thumb { margin-bottom: 40px; }
.single-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prose { font-size: 1.05rem; }
.prose p { color: #d8d5f2; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose img { border-radius: 16px; margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 20px 24px; border-left: 3px solid var(--primary); background: var(--surface); border-radius: 12px; color: var(--text); font-style: italic; }
.prose code { background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 6px; font-size: .92em; }
.prose pre { background: rgba(0,0,0,.4); padding: 20px; border-radius: 16px; overflow-x: auto; border: 1px solid var(--border); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; }

.tag-list { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; color: var(--text-muted); font-size: .85rem; }
.tag-list a:hover { color: #fff; background: var(--surface-strong); }

/* Comments */
.comments-area { margin-top: 40px; padding: 32px; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit;
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit { margin-top: 12px; }

/* Error page */
.error-section { padding: 100px 0; }
.error-card { text-align: center; padding: 60px 40px; max-width: 640px; margin: 0 auto; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 8rem); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.error-actions { margin: 24px 0; }

/* Search form */
.search-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; max-width: 480px; margin: 20px auto 0; }
.search-form input[type="search"] { flex: 1; border: 0; background: transparent; color: var(--text); padding: 10px 16px; font: inherit; outline: none; }
.search-form input[type="search"]::placeholder { color: var(--text-muted); }

/* Sidebar widgets */
.widget-area { display: flex; flex-direction: column; gap: 20px; }
.widget-title { font-size: 1.05rem; margin-bottom: 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; }

/* Footer */
.site-footer { margin-top: 80px; padding: 60px 0 30px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-tagline { color: var(--text-muted); max-width: 320px; }
.footer-col ul, .footer-col .footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .88rem; flex-wrap: wrap; gap: 10px; }
.heart { color: var(--pink); }

/* Animations */
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .social-proof { justify-content: center; }
    .hero-cta { justify-content: center; }
    .features-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-card { grid-template-columns: 1fr; padding: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .header-inner { padding: 10px 14px; }
    .site-title-text { display: none; }
    .btn-cta { display: none; }
    .menu-toggle { display: inline-flex; }
    .main-navigation .nav-menu { position: absolute; top: 78px; left: 12px; right: 12px; flex-direction: column; padding: 14px; background: rgba(11,11,38,.92); border-radius: 22px; border: 1px solid var(--border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: none; }
    .main-navigation.is-open .nav-menu { display: flex; }
    .features-grid, .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .glass-card { padding: 22px; }
}

/* Editor tweaks */
.editor-styles-wrapper { background: var(--bg-2); color: var(--text); font-family: var(--font-body); }
