/* ============================================================================
   AliothPress Theme: Amber Blossom
   
   Concept: A warm summer evening in a blooming garden — honey amber
   accents on creamy surfaces, soft terracotta, and deep bark tones.
   Dark mode by default. Light mode via .light-theme on <html>.
   ============================================================================ */

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


/* ============================================================================
   DARK THEME (default)
   ============================================================================ */

:root {
  /* --- Brand: Golden Amber & Warm Honey --- */
  --ap-color-primary:        #d97706;
  --ap-color-primary-hover:  #f59e0b;
  --ap-color-primary-light:  rgba(217, 119, 6, 0.15);
  --ap-color-primary-subtle: rgba(217, 119, 6, 0.06);
  
  --ap-color-accent:         #b45309;
  --ap-color-accent-hover:   #d97706;
  
  /* --- Semantic --- */
  --ap-color-success:  #34d399;
  --ap-color-warning:  #fbbf24;
  --ap-color-error:    #f87171;
  --ap-color-info:     #67e8f9;
  
  /* --- Surfaces: Dark Walnut --- */
  --ap-color-bg:            #1c1209;
  --ap-color-surface:       #2a1d10;
  --ap-color-surface-alt:   #362717;
  --ap-color-border:        rgba(217, 119, 6, 0.1);
  --ap-color-border-strong: rgba(217, 119, 6, 0.2);
  
  /* --- Text --- */
  --ap-color-text:           #fef3c7;
  --ap-color-text-secondary: #c8a96e;
  --ap-color-text-muted:     #9a7e52;
  --ap-color-text-inverse:   #1c1209;
  --ap-color-link:           #f59e0b;
  --ap-color-link-hover:     #fbbf24;
  
  --ap-color-white: #ffffff;
  --ap-color-black: #1c1209;

  /* --- Header --- */
  --ap-header-bg:         rgba(28, 18, 9, 0.85);
  --ap-header-text:       #fef3c7;
  --ap-header-link:       rgba(254, 243, 199, 0.6);
  --ap-header-link-hover: #ffffff;

  /* --- Footer --- */
  --ap-footer-bg:         #150e06;
  --ap-footer-text:       #92784e;
  --ap-footer-link:       #c8a96e;
  --ap-footer-link-hover: #f59e0b;
  --ap-footer-border:     rgba(217, 119, 6, 0.08);
  
  /* --- Typography --- */
  --ap-font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --ap-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --ap-font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  
  /* --- Shapes --- */
  --ap-radius-sm:  4px;
  --ap-radius-md:  8px;
  --ap-radius-lg:  14px;
  --ap-radius-xl:  20px;
  
  /* --- Shadows: Warm Depth --- */
  --ap-shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
  --ap-shadow-md:  0 4px 12px rgba(0, 0, 0, 0.5);
  --ap-shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.6);
  --ap-shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.7);
  --ap-shadow-glow: 0 0 20px rgba(217, 119, 6, 0.15);
}

/* Glassmorphism header */
.ap-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

h1, h2, h3, h4, h5, h6 {
  color: #fef3c7;
  letter-spacing: -0.01em;
}

.ap-prose pre { background: #150e06; border: 1px solid rgba(217, 119, 6, 0.1); }
.ap-prose code { background: rgba(217, 119, 6, 0.12); color: #fbbf24; }
.ap-prose blockquote { border-left-color: #d97706; background: rgba(217, 119, 6, 0.05); color: #c8a96e; }
.ap-prose th { background: #2a1d10; border-bottom-color: rgba(217, 119, 6, 0.15); }
.ap-prose td { border-bottom-color: rgba(217, 119, 6, 0.08); }
.ap-prose tbody tr:hover { background: rgba(217, 119, 6, 0.05); }
.ap-prose hr { border-top-color: rgba(217, 119, 6, 0.1); }

.ap-post-card__title a { color: #fef3c7; }
.ap-post-card__title a:hover { color: #f59e0b; }
.ap-post-card { border-bottom-color: rgba(217, 119, 6, 0.1); }
.ap-article__title { color: #fef3c7; }

.ap-lang__dropdown { background: #2a1d10; border-color: rgba(217, 119, 6, 0.15); }
.ap-lang__option { color: #fef3c7; }
.ap-lang__option:hover { background: rgba(217, 119, 6, 0.1); color: #fef3c7; }
.ap-lang__option.is-active { color: #f59e0b; background: rgba(217, 119, 6, 0.15); }

.ap-sidebar { background: #1c1209; border-left: 1px solid rgba(217, 119, 6, 0.08); }
.ap-sidebar__header { border-bottom-color: rgba(217, 119, 6, 0.1); }
.ap-sidebar__title { color: #fef3c7; }
.ap-sidebar__link { color: #fef3c7; }
.ap-sidebar__link:hover { background: rgba(217, 119, 6, 0.1); color: #f59e0b; }
.ap-sidebar__close { color: #c8a96e; }
.ap-sidebar__close:hover { background: rgba(217, 119, 6, 0.08); color: #fef3c7; }
.ap-sidebar__lang-link { color: #c8a96e; border-color: rgba(217, 119, 6, 0.15); }
.ap-sidebar__lang-link:hover { border-color: #d97706; color: #f59e0b; }
.ap-sidebar__lang-link.is-active { background: #d97706; border-color: #d97706; color: #1c1209; }

.ap-social-icon { background: rgba(217, 119, 6, 0.08); color: #c8a96e; }
.ap-footer__nav { border-top-color: rgba(217, 119, 6, 0.08); }
.ap-pagination a { color: #c8a96e; border-color: rgba(217, 119, 6, 0.15); }
.ap-pagination a:hover { color: #f59e0b; border-color: #d97706; background: rgba(217, 119, 6, 0.1); }
.ap-tag { color: #fbbf24; background: rgba(217, 119, 6, 0.12); }
.ap-tag:hover { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
.ap-btn--primary { background: #d97706; color: #1c1209; }
.ap-btn--primary:hover { background: #f59e0b; color: #1c1209; }
.ap-btn--outline { color: #d97706; border-color: rgba(217, 119, 6, 0.4); }
.ap-btn--outline:hover { background: #d97706; color: #1c1209; }

:focus-visible { outline: 2px solid #d97706; outline-offset: 2px; }


/* ============================================================================
   LIGHT THEME — "Sunlit Garden"
   ============================================================================ */

.light-theme {
  /* --- Surfaces: cream & warm paper --- */
  --ap-color-bg:            #fffdf5;
  --ap-color-surface:       #fcf7e8;
  --ap-color-surface-alt:   #f5edda;
  --ap-color-border:        rgba(217, 119, 6, 0.12);
  --ap-color-border-strong: rgba(217, 119, 6, 0.2);
  
  /* --- Text: deep bark & chocolate --- */
  --ap-color-text:           #451a03;
  --ap-color-text-secondary: #6b3a1f;
  --ap-color-text-muted:     #856d47;
  --ap-color-text-inverse:   #fffdf5;
  
  /* --- Primary: golden amber --- */
  --ap-color-primary:        #b45309;
  --ap-color-primary-hover:  #92400e;
  --ap-color-primary-light:  rgba(180, 83, 9, 0.1);
  --ap-color-primary-subtle: rgba(180, 83, 9, 0.05);
  --ap-color-link:           #b45309;
  --ap-color-link-hover:     #92400e;
  
  --ap-color-accent:         #d97706;
  --ap-color-accent-hover:   #b45309;
  
  /* --- Header --- */
  --ap-header-bg:         rgba(255, 253, 245, 0.9);
  --ap-header-text:       #451a03;
  --ap-header-link:       #6b3a1f;
  --ap-header-link-hover: #b45309;
  
  /* --- Footer --- */
  --ap-footer-bg:         #f5edda;
  --ap-footer-text:       #78592a;
  --ap-footer-link:       #6b3a1f;
  --ap-footer-link-hover: #b45309;
  --ap-footer-border:     rgba(217, 119, 6, 0.1);
  
  /* --- Shadows --- */
  --ap-shadow-sm:  0 1px 2px rgba(69, 26, 3, 0.04);
  --ap-shadow-md:  0 4px 6px -1px rgba(69, 26, 3, 0.06), 0 2px 4px -2px rgba(69, 26, 3, 0.04);
  --ap-shadow-lg:  0 10px 15px -3px rgba(69, 26, 3, 0.08), 0 4px 6px -4px rgba(69, 26, 3, 0.04);
  --ap-shadow-xl:  0 20px 25px -5px rgba(69, 26, 3, 0.08), 0 8px 10px -6px rgba(69, 26, 3, 0.04);
}

.light-theme .ap-header { border-bottom-color: rgba(217, 119, 6, 0.1); }
.light-theme h1, .light-theme h2, .light-theme h3,
.light-theme h4, .light-theme h5, .light-theme h6 { color: #451a03; }
.light-theme .ap-article__title { color: #451a03; }
.light-theme .ap-post-card__title a { color: #451a03; }
.light-theme .ap-post-card__title a:hover { color: #b45309; }
.light-theme .ap-post-card { border-bottom-color: rgba(217, 119, 6, 0.1); }
.light-theme .ap-prose pre { background: #1c1209; border-color: #451a03; }
.light-theme .ap-prose code { background: rgba(180, 83, 9, 0.08); color: #b45309; }
.light-theme .ap-prose blockquote { border-left-color: #b45309; background: rgba(180, 83, 9, 0.05); color: #6b3a1f; }
.light-theme .ap-prose th { background: #f5edda; border-bottom-color: rgba(217, 119, 6, 0.15); }
.light-theme .ap-prose td { border-bottom-color: rgba(217, 119, 6, 0.08); }
.light-theme .ap-prose tbody tr:hover { background: #fffdf5; }
.light-theme .ap-prose hr { border-top-color: rgba(217, 119, 6, 0.1); }

.light-theme .ap-lang__trigger { color: #6b3a1f; border-color: rgba(217, 119, 6, 0.15); }
.light-theme .ap-lang__trigger:hover { color: #451a03; border-color: #b45309; background: rgba(0, 0, 0, 0.02); }
.light-theme .ap-lang__dropdown { background: #ffffff; border-color: rgba(217, 119, 6, 0.15); }
.light-theme .ap-lang__option { color: #6b3a1f; }
.light-theme .ap-lang__option:hover { background: rgba(180, 83, 9, 0.06); color: #451a03; }
.light-theme .ap-lang__option.is-active { color: #b45309; background: rgba(180, 83, 9, 0.08); }

.light-theme .ap-sidebar { background: #ffffff; border-left-color: rgba(217, 119, 6, 0.1); }
.light-theme .ap-sidebar__header { border-bottom-color: rgba(217, 119, 6, 0.1); }
.light-theme .ap-sidebar__title { color: #451a03; }
.light-theme .ap-sidebar__link { color: #6b3a1f; }
.light-theme .ap-sidebar__link:hover { background: rgba(180, 83, 9, 0.06); color: #b45309; }
.light-theme .ap-sidebar__close { color: #92784e; }
.light-theme .ap-sidebar__close:hover { background: rgba(180, 83, 9, 0.06); color: #451a03; }
.light-theme .ap-sidebar__lang-link { color: #6b3a1f; border-color: rgba(217, 119, 6, 0.15); }
.light-theme .ap-sidebar__lang-link:hover { border-color: #b45309; color: #b45309; }
.light-theme .ap-sidebar__lang-link.is-active { background: #b45309; border-color: #b45309; color: #ffffff; }

.light-theme .ap-social-icon { background: #f5edda; color: #78592a; }
.light-theme .ap-footer__nav { border-top-color: rgba(217, 119, 6, 0.1); }
.light-theme .ap-pagination a { color: #6b3a1f; border-color: rgba(217, 119, 6, 0.15); }
.light-theme .ap-pagination a:hover { color: #b45309; border-color: #b45309; background: rgba(180, 83, 9, 0.05); }
.light-theme .ap-tag { color: #b45309; background: rgba(180, 83, 9, 0.08); }
.light-theme .ap-tag:hover { background: rgba(180, 83, 9, 0.15); color: #92400e; }
.light-theme .ap-btn--primary { background: #b45309; color: #ffffff; }
.light-theme .ap-btn--primary:hover { background: #92400e; color: #ffffff; }
.light-theme .ap-btn--outline { color: #b45309; border-color: #b45309; }
.light-theme .ap-btn--outline:hover { background: #b45309; color: #ffffff; }
.light-theme .ap-hamburger__line { background: #6b3a1f; }
.light-theme .ap-hamburger:hover { background: rgba(180, 83, 9, 0.06); }
.light-theme :focus-visible { outline-color: #b45309; }
