/*
 * janfoshag.de – Custom modern/colourful overrides
 * Loaded after all Astra styles so every rule here wins.
 */

/* =====================================================================
   1. DESIGN TOKENS
   ===================================================================== */
:root {
  --jfo-purple:      #6c3fc5;
  --jfo-purple-dark: #4a27a0;
  --jfo-blue:        #2563eb;
  --jfo-coral:       #f05a7e;
  --jfo-teal:        #0ea5e9;
  --jfo-bg:          #f5f3ff;
  --jfo-card-bg:     #ffffff;
  --jfo-text:        #1e1b2e;
  --jfo-muted:       #6b7280;
  --jfo-radius:      12px;
  --jfo-shadow:      0 4px 24px rgba(108, 63, 197, 0.10);
  --jfo-shadow-hover:0 8px 36px rgba(108, 63, 197, 0.20);
  --jfo-gradient:    linear-gradient(135deg, var(--jfo-purple) 0%, var(--jfo-blue) 100%);
  --jfo-gradient-coral: linear-gradient(135deg, var(--jfo-coral) 0%, var(--jfo-purple) 100%);
}

/* =====================================================================
   2. BODY & BACKGROUND
   ===================================================================== */
body {
  background: var(--jfo-bg);
  color: var(--jfo-text);
}

/* =====================================================================
   3. HEADER
   ===================================================================== */
/* Apply gradient to the full-width row container that wraps left/center/right sections */
.site-primary-header-wrap,
.site-header-primary-section-left,
.site-header-primary-section-center,
.site-header-primary-section-right {
  background: linear-gradient(135deg, #6c3fc5 0%, #2563eb 100%) !important;
}

.main-header-bar,
.ast-primary-header-bar {
  box-shadow: none !important;
  border-bottom: none !important;
  border-bottom-width: 0 !important;
}

/* All text in the header row should be white */
.site-primary-header-wrap,
.site-primary-header-wrap * {
  color: #ffffff !important;
}

/* Logo text */
.site-title a,
.site-title a:visited {
  color: #ffffff !important;
}

/* =====================================================================
   4. NAVIGATION
   ===================================================================== */
.ast-nav-menu > li > a,
.main-header-bar .ast-nav-menu > li > a,
.menu-link {
  color: var(--jfo-purple) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.ast-nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jfo-purple);
  transition: width 0.25s ease;
}

.ast-nav-menu > li > a:hover,
.main-header-bar .ast-nav-menu > li > a:hover,
.menu-link:hover,
.ast-nav-menu > li.current-menu-item > a {
  color: var(--jfo-purple-dark) !important;
}

.ast-nav-menu > li > a:hover::after,
.ast-nav-menu > li.current-menu-item > a::after {
  width: 100%;
}

/* Dropdown */
.ast-nav-menu .sub-menu {
  border-top: 3px solid var(--jfo-coral);
  border-radius: 0 0 var(--jfo-radius) var(--jfo-radius);
  box-shadow: var(--jfo-shadow);
}

.ast-nav-menu .sub-menu a {
  color: var(--jfo-purple) !important;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}

.ast-nav-menu .sub-menu a:hover {
  color: var(--jfo-coral) !important;
  padding-left: 20px;
}

/* =====================================================================
   5. CONTENT CARDS (posts, pages, widgets)
   ===================================================================== */
.ast-article-single,
.ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  background: var(--jfo-card-bg);
  border-radius: var(--jfo-radius);
  box-shadow: var(--jfo-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.ast-article-single:hover,
.ast-article-post:hover {
  box-shadow: var(--jfo-shadow-hover);
  transform: translateY(-2px);
}

.ast-article-single .entry-content,
.ast-article-post .entry-content,
.ast-article-inner {
  padding-top: 20px;
}

/* =====================================================================
   6. HEADINGS
   ===================================================================== */
h1, .entry-title {
  padding-top: 20px;
  background: var(--jfo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  color: var(--jfo-purple-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  color: var(--jfo-blue);
  font-weight: 700;
}

h4 {
  color: var(--jfo-coral);
  font-weight: 600;
}

/* =====================================================================
   7. LINKS
   ===================================================================== */
a,
body a {
  color: var(--jfo-purple) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
body a:hover {
  color: var(--jfo-purple-dark) !important;
}

.entry-content a {
  color: var(--jfo-blue);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.entry-content a:hover {
  color: var(--jfo-purple);
  border-bottom-color: var(--jfo-purple);
}

/* =====================================================================
   8. BUTTONS
   ===================================================================== */
.ast-button,
.ast-custom-button,
.wp-block-button__link,
.woocommerce .button,
.elementor-button,
.elementor-button-link,
input[type="submit"],
button[type="submit"] {
  background: var(--jfo-gradient) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 32px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 4px 15px rgba(108, 63, 197, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ast-button:hover,
.ast-custom-button:hover,
.wp-block-button__link:hover,
.woocommerce .button:hover,
.elementor-button:hover,
.elementor-button-link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(108, 63, 197, 0.45) !important;
  color: #ffffff !important;
}

/* =====================================================================
   9. SIDEBAR
   ===================================================================== */
#secondary,
.ast-separate-container #secondary .widget {
  background: var(--jfo-card-bg);
  border-radius: var(--jfo-radius);
  box-shadow: var(--jfo-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  color: var(--jfo-purple);
  font-weight: 700;
  border-bottom: 2px solid var(--jfo-gradient);
  padding-bottom: 8px;
  background: var(--jfo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================================
   10. FOOTER
   ===================================================================== */
#colophon,
.site-footer,
.footer-widget-area,
.ast-footer-copyright {
  background: #1e1b2e !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.site-footer a,
.ast-footer-copyright a {
  color: var(--jfo-teal) !important;
}

.site-footer a:hover,
.ast-footer-copyright a:hover {
  color: var(--jfo-coral) !important;
}

.footer-widget-area .widget-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

/* =====================================================================
   11. MISC POLISH
   ===================================================================== */

/* Above-header bar */
.ast-above-header,
.ast-above-header-wrap {
  background: var(--jfo-purple-dark) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Horizontal rule */
hr {
  border-color: rgba(108, 63, 197, 0.15);
}

/* Pagination */
.ast-pagination .page-numbers,
.page-numbers {
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.ast-pagination .page-numbers.current,
.page-numbers.current {
  background: var(--jfo-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* Code blocks */
code, pre {
  background: #1e1b2e;
  color: var(--jfo-teal);
  border-radius: 6px;
}
