/* ================================
   LAYOUT.CSS - GLOBAL PREMIUM STYLES
   Header + Footer + Base pentru toate paginile
   ================================ */

/* === CSS VARIABLES (ROOT) === */
:root {
  /* Original colors from app.blade.php */
  --color-sage-green: #A8B6A1;
  --color-deep-sage: #6F7D67;
  --color-warm-cream: #F9F6F2;
  --color-warm-cream-dark: #EFE9E1;
  --color-warm-gray: #AAA39C;
  --color-text-primary: #2C2B2A;
  --color-text-secondary: #6A6866;
  --color-text-muted: #AAA39C;
  --color-bg-primary: #F9F6F2;
  --color-bg-secondary: #FFFFFF;
  --color-bg-accent: #A8B6A1;
  --color-border: #E8E3DC;
  --color-border-accent: #A8B6A1;
  --color-success: #6F7D67;
  --color-error: #C97D7D;
  --color-warning: #D6B28C;
  
  /* Premium palette */
  --cream-primary: #F9F6F2;
  --cream-dark: #EFE9E1;
  --sage-primary: #A8B6A1;
  --sage-hover: #8F9C83;
  --sage-dark: #6F7D67;
  --gold-warm: #D6B28C;
  --gold-dark: #C39A72;
  --lavender-soft: #F0E8F0;
  --peach-soft: #FFE5D9;
  --mint-soft: #E8F5F0;
  
  /* Text Colors */
  --text-primary: #2C2B2A;
  --text-secondary: #6A6866;
  --text-muted: #AAA39C;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 20px;
  
  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(31, 41, 55, 0.04);
  --shadow-sm: 0 4px 12px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 20px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 41, 55, 0.12);
  --shadow-xl: 0 24px 60px rgba(31, 41, 55, 0.16);
  
  /* Glow Effects */
  --glow-sage: 0 0 40px rgba(168, 182, 161, 0.4);
  --glow-gold: 0 0 40px rgba(214, 178, 140, 0.4);
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: 
    radial-gradient(1200px 800px at 80% -10%, var(--cream-dark), transparent 60%),
    radial-gradient(900px 600px at -10% 100%, var(--cream-dark), transparent 60%),
    linear-gradient(180deg, var(--cream-primary), #F5F8F4 60%);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Specific h1 and h2 styles from app.blade.php (NOT for navigation) */
h1:not(.nav-brand-name) {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(36px, 5.5vw, 64px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.06 !important;
  color: var(--text-primary) !important;
}

h2:not(.nav-brand-tag) {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

/* === CONTAINER === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================
   NAVIGATION PREMIUM (STICKY)
   ================================ */

.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 246, 242, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(168, 182, 161, 0.15);
  transition: all var(--transition-smooth);
}

.nav-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-primary);
  line-height: 1;
  margin-left: -1px;
}

.nav-brand-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage-dark);
  line-height: 1;
}

/* Desktop Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--sage-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage-primary);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

/* CTA Button */
.nav-cta {
  padding: 0.75rem 1.75rem;
  background: var(--sage-primary);
  color: white;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(168, 182, 161, 0.25);
  transition: all var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--sage-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 182, 161, 0.35);
}

/* Blog Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-smooth);
}

.nav-dropdown:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 182, 161, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
  padding: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
  background: rgba(168, 182, 161, 0.1);
  color: var(--sage-dark);
  transform: translateX(4px);
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(168, 182, 161, 0.15);
  margin: 0.5rem 0;
}

/* Mobile Menu Button */
.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(168, 182, 161, 0.1);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-smooth);
}

.nav-mobile-toggle:hover {
  background: rgba(168, 182, 161, 0.2);
}

.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sage-dark);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(249, 246, 242, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 182, 161, 0.2);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-20px);
  transition: all var(--transition-smooth);
}

.nav-mobile.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-link {
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition-smooth);
}

.nav-mobile-link:hover {
  background: rgba(168, 182, 161, 0.1);
  color: var(--sage-dark);
  transform: translateX(4px);
}

.nav-mobile .nav-cta {
  margin-top: 1rem;
  text-align: center;
  display: block;
}

/* Mobile Dropdown */
.nav-mobile-dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.nav-mobile-dropdown-toggle:hover {
  background: rgba(168, 182, 161, 0.1);
}

.nav-mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
}

.nav-mobile-dropdown-menu.show {
  display: flex;
}

.nav-mobile-dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition-smooth);
}

.nav-mobile-dropdown-item:hover {
  background: rgba(168, 182, 161, 0.08);
  color: var(--sage-dark);
}

/* ================================
   FOOTER PREMIUM
   ================================ */

.footer {
  padding: 4rem 0 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(168, 182, 161, 0.2);
  margin-top: 8rem;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sage-primary);
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 400px;
}

.footer-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  display: inline-block;
}

.footer-link:hover {
  color: var(--sage-dark);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 182, 161, 0.1);
  border-radius: 50%;
  color: var(--sage-dark);
  transition: all var(--transition-smooth);
}

.footer-social-link:hover {
  background: var(--sage-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(168, 182, 161, 0.3);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 182, 161, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-badges img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-legal-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--sage-dark);
}

/* ================================
   COMMON COMPONENTS
   ================================ */

/* CTA Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.cta-primary {
  background: var(--sage-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(168, 182, 161, 0.25);
}

.cta-primary:hover {
  background: var(--sage-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 182, 161, 0.35);
}

.cta-secondary {
  background: rgba(168, 182, 161, 0.1);
  color: var(--sage-dark);
  border: 1px solid rgba(168, 182, 161, 0.3);
}

.cta-secondary:hover {
  background: rgba(168, 182, 161, 0.2);
  border-color: var(--sage-primary);
}

.cta-full {
  width: 100%;
}

/* Decorative Elements */
.decorative-line {
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-sage-green), transparent);
  margin: 18px auto;
  border-radius: 2px;
}

.decorative-line-small {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-sage-green), transparent);
  display: inline-block;
}

/* Brand Text */
.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  opacity: 0.9;
  margin-bottom: 20px;
}

.brand-label {
  font: 500 14px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.brand-line {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-sage-green), transparent);
  display: inline-block;
}

/* Subtitle */
.subtitle {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* Lead Text */
.lead {
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 58ch;
  margin: 0 auto;
}

/* Prose (Content Formatting) */
.prose {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.2;
}

.prose h1 {
  font-size: 2.25em;
}

.prose h2 {
  font-size: 1.875em;
}

.prose h3 {
  font-size: 1.5em;
}

.prose h4 {
  font-size: 1.25em;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose a {
  color: var(--color-sage-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-deep-sage);
}

.prose strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  border-left: 4px solid var(--color-sage-green);
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

.prose code {
  background-color: var(--color-warm-cream);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: var(--color-warm-cream);
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
  .nav-container {
    padding: 1rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
  
  .container {
    padding: 0 1.5rem;
  }
}
