/*
Theme Name: AI Teal Glass
Template: ollie
Description: Teal glassmorphism dark theme for AI/ML editorial. 3-column compact cards, Geist + 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-teal-glass
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
@import url('https://cdn.jsdelivr.net/npm/geist@1/dist/fonts/geist-sans/style.css');

body { font-family: "Inter", system-ui, sans-serif; font-size: 1rem; line-height: 1.7; color: #E0F2F1; background: #0B1620; }
h1, h2, h3 { font-family: "Geist", 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: #14B8A6; text-decoration: none; transition: color 0.2s; }
a:hover { color: #06B6D4; }

/* ── Gradient Hero ───────────────────────────────────────────── */
.ai-hero {
  min-height: 65vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #042f2e 0%, #0d3d3d 30%, #115e59 60%, #14B8A6 100%);
  position: relative; overflow: hidden;
}
.ai-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(20,184,166,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.15) 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(20,184,166,0.4); }
.ai-hero .wp-block-post-excerpt { color: rgba(224,242,241,0.8); font-size: 1.1rem; }

/* ── Glass Cards (3-column compact) ─────────────────────────── */
.ai-glass-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-glass-grid .wp-block-post {
  background: rgba(13, 31, 42, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(20, 184, 166, 0.15); border-radius: 12px;
  overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s;
}
.ai-glass-grid .wp-block-post:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 32px rgba(20, 184, 166, 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.05rem; padding: 1rem 1.25rem 0; font-family: "Geist", sans-serif; }
.ai-glass-grid .wp-block-post-title a { color: #ccfbf1; text-decoration: none; }
.ai-glass-grid .wp-block-post-title a:hover { color: #06B6D4; }
.ai-glass-grid .wp-block-post-excerpt { padding: 0.4rem 1.25rem; font-size: 0.84rem; color: rgba(224,242,241,0.55); }
.ai-glass-grid .wp-block-post-date { padding: 0 1.25rem 1rem; font-size: 0.75rem; color: #14B8A6; }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 22, 32, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}
.site-header .wp-block-navigation a { color: #99f6e4 !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: #06B6D4 !important; }
.site-header .wp-block-site-title a { font-family: "Geist", sans-serif; font-size: 1.4rem; font-weight: 700; color: #FFFFFF !important; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #0D1F2A; border-top: 1px solid rgba(20,184,166,0.1); padding: 3rem 0 2rem; margin-top: 4rem; font-size: 0.88rem; color: rgba(224,242,241,0.5); }
.site-footer a { color: #14B8A6; }

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

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