/* ==========================================================================
   YOO_GLASS Premium Theme Stylesheet - Memphis Car Insurance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Yoo_Glass Core Color Tokens */
  --primary-color: #00e5ff; /* Brilliant neon cyan */
  --primary-glow: rgba(0, 229, 255, 0.4);
  --accent-color: #a855f7; /* Royal purple */
  --accent-glow: rgba(168, 85, 247, 0.35);
  --text-primary: #f1f5f9; /* Slate 100 */
  --text-secondary: #94a3b8; /* Slate 400 */
  --text-muted: #64748b; /* Slate 500 */
  --highlight-color: #ffffff;
  
  /* Glassmorphism Panel Tokens */
  --glass-bg: rgba(15, 23, 42, 0.45); /* Obsidian base */
  --glass-bg-hover: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(0, 229, 255, 0.25);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Reset defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* Deep obsidian fallback */
  background: radial-gradient(circle at 50% 0%, rgba(20, 83, 116, 0.25) 0%, rgba(15, 23, 42, 1) 75%);
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: #0f172a;
}

/* Ambient dynamic background lights */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(circle at 50% -100px, rgba(0, 229, 255, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 2px solid #0b0f19;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Base headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--highlight-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Global Container Grid */
#shadow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
  position: relative;
  z-index: 1;
}

/* Navigation items using Yoo_Glass styling */
nav {
  margin-bottom: 32px;
}
#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}
#nav li a {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 30px; /* Capsule pills */
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
}
#nav li a:hover,
#nav li.active a {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
}

/* Main layouts container */
#container-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
#left-col {
  flex: 1 1 0%;
  min-width: 0;
}

/* Yoo_Glass Card styling (Obsidian + Neon outline + Reflection blur) */
.post {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}
.post:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(0, 229, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Entry headers inside articles */
.entry_header h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: 24px;
}
.entry_header h2 a {
  color: var(--highlight-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.entry_header h2 a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Content typography */
.entry_content {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
}
.entry_content p {
  margin-bottom: 20px;
}
.entry_content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--highlight-color);
  margin-top: 40px;
  margin-bottom: 20px;
}
.entry_content h3 {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--primary-color);
  margin-top: 32px;
  margin-bottom: 16px;
}

/* Hyperlinks inside articles */
.entry_content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.3);
  transition: all 0.2s ease;
}
.entry_content a:hover {
  color: #ffffff;
  border-bottom-style: solid;
  border-bottom-color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.entry_content ul,
.entry_content ol {
  margin: 16px 0 24px 20px;
}
.entry_content li {
  margin-bottom: 8px;
}

/* Images within entry content */
.entry_content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin: 28px 0;
  display: block;
}

/* Sidebar structure */
#sidebar {
  width: 360px;
  flex-shrink: 0;
}

/* Sidebar Widgets (using Yoo_Glass panel styles) */
#sidebar > div {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#sidebar > div:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Sidebar link effects */
#sidebar ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
#sidebar ul li a:hover {
  color: var(--primary-color);
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.12);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Glassmorphic Advertisement Wrapper */
.sidebar-ad-wrapper {
  background: rgba(255, 255, 255, 0.01) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px dashed rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
}
.sidebar-ad-wrapper:hover {
  border-color: rgba(0, 229, 255, 0.2) !important;
  background: rgba(0, 229, 255, 0.01) !important;
}

/* Footer elements */
footer {
  text-align: center;
  padding: 32px 20px 48px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  #container-flex {
    flex-direction: column;
    gap: 28px;
  }
  #sidebar {
    width: 100%;
  }
}
@media (max-width: 768px) {
  #shadow {
    padding: 0 12px 24px;
  }
  .post {
    padding: 24px;
  }
  .entry_header h2 {
    font-size: 26px;
  }
  #nav {
    gap: 8px;
  }
  #nav li a {
    padding: 8px 16px;
    font-size: 13px;
  }
}
