/*
Theme Name: AI Indigo Gradient
Template: ollie
Description: Indigo-violet gradient dark theme for AI/ML editorial. Glassmorphism cards, Space Grotesk + Inter.
Author: Doorway
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: ai-indigo-gradient
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

body { font-family: "Inter", system-ui, sans-serif; font-size: 1rem; line-height: 1.7; color: #F1F5F9; background: #0F0B1F; }
h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; line-height: 1.15; color: #FFFFFF; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
a { color: #818CF8; text-decoration: none; transition: color 0.2s; }
a:hover { color: #A855F7; }

/* ── Gradient Hero ───────────────────────────────────────────── */
.ai-hero {
  min-height: 65vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 30%, #4C1D95 60%, #7C3AED 100%);
  position: relative; overflow: hidden;
}
.ai-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(168,85,247,0.2) 0%, transparent 50%);
}
.ai-hero .wp-block-cover__inner-container { position: relative; z-index: 1; text-align: center; max-width: 720px; padding: 2rem; }
.ai-hero h1 { text-shadow: 0 4px 24px rgba(99,102,241,0.4); }
.ai-hero .wp-block-post-excerpt { color: rgba(241,245,249,0.8); font-size: 1.1rem; }

/* ── Glass Cards ─────────────────────────────────────────────── */
.ai-glass-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.ai-glass-grid .wp-block-post {
  background: rgba(30, 27, 51, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(129, 140, 248, 0.15); border-radius: 16px;
  overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s;
}
.ai-glass-grid .wp-block-post:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}
.ai-glass-grid .wp-block-post-featured-image { aspect-ratio: 16/9; overflow: hidden; }
.ai-glass-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s; }
.ai-glass-grid .wp-block-post:hover .wp-block-post-featured-image img { opacity: 1; }
.ai-glass-grid .wp-block-post-title { font-size: 1.15rem; padding: 1.25rem 1.5rem 0; font-family: "Space Grotesk", sans-serif; }
.ai-glass-grid .wp-block-post-title a { color: #E0E7FF; text-decoration: none; }
.ai-glass-grid .wp-block-post-title a:hover { color: #A855F7; }
.ai-glass-grid .wp-block-post-excerpt { padding: 0.5rem 1.5rem; font-size: 0.88rem; color: rgba(241,245,249,0.6); }
.ai-glass-grid .wp-block-post-date { padding: 0 1.5rem 1.25rem; font-size: 0.78rem; color: #818CF8; }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 11, 31, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(129, 140, 248, 0.1);
}
.site-header .wp-block-navigation a { color: #C7D2FE !important; text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.88rem; }
.site-header .wp-block-navigation a:hover { color: #A855F7 !important; }
.site-header .wp-block-site-title a { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; color: #FFFFFF !important; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #1E1B33; border-top: 1px solid rgba(129,140,248,0.1); padding: 3rem 0 2rem; margin-top: 4rem; font-size: 0.88rem; color: rgba(241,245,249,0.5); }
.site-footer a { color: #818CF8; }

/* ── Fallback for no backdrop-filter ─────────────────────────── */
@supports not (backdrop-filter: blur(20px)) {
  .ai-glass-grid .wp-block-post { background: rgba(30, 27, 51, 0.95); }
  .site-header { background: rgba(15, 11, 31, 0.97); }
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ai-glass-grid .wp-block-post-template { grid-template-columns: 1fr; gap: 24px; }
  .ai-hero { min-height: 50vh; }
}
