/*
Theme Name: SmartSchlaf Theme
Theme URI: https://smartschlaf.demo
Author: SmartSchlaf Team
Description: Custom WordPress theme for SmartSchlaf, converted from React.
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartschlaf
*/

/* Base Styles from original index.html */
body {
  background-color: white;
  color: #37352f;
  overflow-x: hidden;
  /* Prevent horizontal scroll on mobile */
}

/* Fallback for backdrop filters */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Popup (Blocking Overlay) */
#smartschlaf-consent-popup {
  position: fixed;
  inset: 0;
  /* Full screen */
  background-color: rgba(0, 0, 0, 0.85);
  /* Darker for blocking feel */
  /* Dark backdrop */
  backdrop-filter: blur(8px);
  z-index: 9999;
}

/* Inner Banner Card */
#smartschlaf-consent-popup>div {
  width: 100%;
  background-color: white;
  border-top: 1px solid #e1e1e0;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* New Page Transition Animation */
@keyframes slideInSmooth {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  /* Start hidden */
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-page-transition {
  animation: slideInSmooth 0.4s cubic-bezier(0.2, 0.0, 0.2, 1) forwards;
}

/* =========================================
   Editorial Typography (SmartSchlaf)
/* =========================================
   Unified Typography (Matches "About Me" 1:1)
   ========================================= */

/* Main Article Title (H1) - Scaled relative to H2 */
h1.entry-title {
  font-weight: 800;
  font-size: 2.25rem;
  /* ~36px */
  line-height: 1.2;
  margin-bottom: 1rem;
  /* 16px */
  color: #111;
  font-family: "Outfit", sans-serif;
}

/* Content Container */
.smartschlaf-typography {
  color: #1f2937;
  /* text-gray-800 matches About Me */
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* H2: Matches "About Me" Section H2 (text-3xl) */
.smartschlaf-typography h2 {
  font-size: 1.875rem;
  /* ~30px (text-3xl) */
  font-weight: 700;
  /* font-bold */
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  /* 16px strict */
  line-height: 1.3;
  color: #111;
}

/* H3: Scaled down (text-2xl equivalent) */
.smartschlaf-typography h3 {
  font-size: 1.5rem;
  /* ~24px (text-2xl) */
  font-weight: 600;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  /* 16px strict */
  line-height: 1.4;
  color: #111;
}

/* H4-H6: Hierarchy support */
.smartschlaf-typography h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  /* 16px strict */
}

/* Paragraphs: STRICT "About Me" Match */
/* text-gray-800, leading-relaxed, space-y-4 equivalent */
.smartschlaf-typography p {
  margin-bottom: 1rem !important;
  /* 16px strict */
  line-height: 1.625;
  /* leading-relaxed */
  font-size: 1rem;
  /* 16px Default */
  color: #1f2937;
  /* text-gray-800 */
}

/* Lists */
.smartschlaf-typography ul,
.smartschlaf-typography ol {
  margin-bottom: 1rem;
  /* 16px strict */
  padding-left: 1.5em;
  color: #1f2937;
}

.smartschlaf-typography li {
  margin-bottom: 0.5rem;
  line-height: 1.625;
  font-size: 1rem;
}

/* Links in content */
.smartschlaf-typography a {
  color: #EB5757;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.smartschlaf-typography a:hover {
  text-decoration: underline;
  color: #c93a3a;
}

/* Blockquotes */
.smartschlaf-typography blockquote {
  border-left: 4px solid #EB5757;
  padding-left: 1.25rem;
  font-style: italic;
  color: #4b5563;
  /* text-gray-600 */
  margin: 2rem 0;
}

/* Images */
.smartschlaf-typography img {
  border-radius: 0.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* NO Desktop Overrides for scale - maintain 1:1 consistency as requested */