/*
Theme Name: Author's Haven
Description: Custom WordPress theme for Dr. Velma Osborne.
Version: 1.0.0
*/

:root {
  --background: hsl(42 45% 97%);
  --foreground: hsl(180 35% 15%);

  --card: hsl(0 0% 100%);
  --card-foreground: hsl(180 35% 15%);

  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(180 35% 15%);

  --primary: hsl(178 45% 20%);
  --primary-foreground: hsl(42 45% 97%);

  --secondary: hsl(42 55% 60%);
  --secondary-foreground: hsl(180 35% 15%);

  --muted: hsl(42 35% 90%);
  --muted-foreground: hsl(180 15% 45%);

  --accent: hsl(42 75% 55%);
  --accent-foreground: hsl(180 35% 15%);

  --destructive: hsl(0 84.2% 60.2%);
  --destructive-foreground: hsl(210 40% 98%);

  --border: hsl(180 20% 85%);
  --input: hsl(180 20% 90%);
  --ring: hsl(178 45% 20%);

  --radius: 0.5rem;
  
  --gradient-hero: linear-gradient(135deg, hsl(178 45% 20%), hsl(178 55% 28%));
  --gradient-accent: linear-gradient(90deg, hsl(42 75% 55%), hsl(42 85% 65%));
  --shadow-elegant: 0 20px 60px -20px hsl(180 35% 15% / 0.25);

  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-background: hsl(0 0% 98%);
  --sidebar-foreground: hsl(240 5.3% 26.1%);
  --sidebar-primary: hsl(240 5.9% 10%);
  --sidebar-primary-foreground: hsl(0 0% 98%);
  --sidebar-accent: hsl(240 4.8% 95.9%);
  --sidebar-accent-foreground: hsl(240 5.9% 10%);
  --sidebar-border: hsl(220 13% 91%);
  --sidebar-ring: hsl(217.2 91.2% 59.8%);
}

.dark {
  --background: hsl(180 35% 12%);
  --foreground: hsl(42 45% 95%);

  --card: hsl(180 30% 15%);
  --card-foreground: hsl(42 45% 95%);

  --popover: hsl(180 30% 15%);
  --popover-foreground: hsl(42 45% 95%);

  --primary: hsl(42, 75%, 55%);
  --primary-foreground: hsl(180 35% 12%);

  --secondary: hsl(178 45% 25%);
  --secondary-foreground: hsl(42 45% 95%);

  --muted: hsl(180 25% 20%);
  --muted-foreground: hsl(42 25% 70%);

  --accent: hsl(42 75% 55%);
  --accent-foreground: hsl(180 35% 12%);

  --destructive: hsl(0 62.8% 30.6%);
  --destructive-foreground: hsl(210 40% 98%);

  --border: hsl(180 25% 25%);
  --input: hsl(180 25% 25%);
  --ring: hsl(42 75% 55%);
  
  --gradient-hero: linear-gradient(135deg, hsl(178 45% 18%), hsl(178 55% 25%));
  --gradient-accent: linear-gradient(90deg, hsl(42 75% 50%), hsl(42 85% 60%));
  --shadow-elegant: 0 20px 60px -20px hsl(0 0% 0% / 0.5);

  --sidebar-background: hsl(240 5.9% 10%);
  --sidebar-foreground: hsl(240 4.8% 95.9%);
  --sidebar-primary: hsl(224.3 76.3% 48%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(240 3.7% 15.9%);
  --sidebar-accent-foreground: hsl(240 4.8% 95.9%);
  --sidebar-border: hsl(240 3.7% 15.9%);
  --sidebar-ring: hsl(217.2 91.2% 59.8%);
}


/* Updated utilities using CSS variables */

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

.shadow-elegant {
  box-shadow: var(--shadow-elegant);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

.elegant-hover:hover{
  border-color: var(--accent);
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
}

/* Optional shortcuts */
.bg-background {
  background-color: hsl(var(--background));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.border-border {
  border-color: hsl(var(--border));
}


/* =============================
   BACKGROUND UTILITIES
   ============================= */
.bg-background {
  background-color: var(--background);
}

.bg-card {
  background-color: var(--card);
}

.bg-popover {
  background-color: var(--popover);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-muted {
  background-color: var(--muted);
}

.bg-accent {
  background-color: var(--accent);
}

.bg-destructive {
  background-color: var(--destructive);
}

/* Sidebar backgrounds */
.bg-sidebar-background {
  background-color: var(--sidebar-background);
}
.bg-sidebar-accent {
  background-color: var(--sidebar-accent);
}
.bg-sidebar-primary {
  background-color: var(--sidebar-primary);
}

/* Gradients */
.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}


/* =============================
   TEXT UTILITIES
   ============================= */
.text-foreground {
  color: var(--foreground);
}

.text-card-foreground {
  color: var(--card-foreground);
}

.text-popover-foreground {
  color: var(--popover-foreground);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.text-secondary-foreground {
  color: var(--secondary-foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-accent-foreground {
  color: var(--accent-foreground);
}

.text-destructive-foreground {
  color: var(--destructive-foreground);
}

/* Sidebar text */
.text-sidebar-foreground {
  color: var(--sidebar-foreground);
}
.text-sidebar-accent-foreground {
  color: var(--sidebar-accent-foreground);
}
.text-sidebar-primary-foreground {
  color: var(--sidebar-primary-foreground);
}


/* =============================
   BORDER UTILITIES
   ============================= */
.border-border {
  border-color: var(--border);
}

.border-input {
  border-color: var(--input);
}

.border-accent {
  border-color: var(--accent);
}

.border-sidebar-border {
  border-color: var(--sidebar-border);
}


/* =============================
   RING / OUTLINE UTILITIES
   ============================= */
.ring-ring {
  outline-color: var(--ring);
}


/* =============================
   SHADOW UTILITIES
   ============================= */
.shadow-elegant {
  box-shadow: var(--shadow-elegant);
}


/* =============================
   TRANSITIONS
   ============================= */
.transition-smooth {
  transition: var(--transition-smooth);
}


/* =============================
   RADIUS UTILITIES
   ============================= */
.rounded-theme {
  border-radius: var(--radius);
}
.rounded-theme-md {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-theme-sm {
  border-radius: calc(var(--radius) - 4px);
}


/* =============================
   SIDEBAR RING
   ============================= */
.ring-sidebar {
  outline-color: var(--sidebar-ring);
}

.text-accent{
  color: var(--accent);
}
.fill-accent{
  fill: var(--accent);
}

/* Nav Menu */
#menu-main-menu a{
  display: block;
  padding: .75rem .5rem;
  border-radius: 10px;
  font-weight: 700;
  color: hsl(var(--foreground));
  transition-property: var(--transition-smooth);
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
}
#menu-main-menu a:hover{
  background: var(--muted);
  color: var(--accent);
}
#mobile-menu a{
  display: block;
  padding: 5px 0;
}


/* Contact Form CSS */
.wpcf7-form .input-field {
  width: 100%;                 
  padding: 0.75rem 1rem;        
  border-radius: var(--radius);  
  background-color: var(--muted);  
  border: 1px solid var(--border);
  color: var(--foreground);     
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.2s ease;    
}
.wpcf7-form .input-field::placeholder {
  color: var(--muted-foreground); 
}
.wpcf7-form .input-field:focus {
  outline: none;                 
  border-color: var(--accent);   
  box-shadow: 0 0 0 2px var(--accent);
}
.wpcf7-form .btn-send {
  width: 100%;              
  padding: 0.75rem 1.5rem;    
  border-radius: var(--radius);    
  background-color: var(--accent);
  color: var(--accent-foreground); 
  font-weight: 600;               
  display: inline-flex;            
  align-items: center;            
  justify-content: center;         
  box-shadow: var(--shadow-elegant); 
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;   
}
.wpcf7-form .btn-send:hover {
  background-color: hsl(42 75% 55% / 0.9); 
}
.wpcf7-form label{
  display: block;
  margin-bottom: 10px;
}
.wpcf7-form br{
  display: none;
}
.wpcf7-form p{
  margin-bottom: 20px;
}

/* Optional: make CF7 response messages match your theme */
.wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

.wpcf7-mail-sent-ok {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-elegant);
}

.wpcf7-validation-errors {
  background-color: rgba(248, 113, 113, 0.15);
  color: #b91c1c;
}

.wpcf7-not-valid {
  border-color: #dc2626;
}

.wpcf7-not-valid-tip {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc2626;
}

/* Contact Form CSS End */

/* Image styling with border radius */
.author-carousel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px; /* <-- BORDER RADIUS ADDED */
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Ensure slide wrapper respects the border radius */
.swiper-slide {
  overflow: hidden;        /* Keeps corners clean */
  border-radius: 16px;     /* <-- BORDER RADIUS APPLIED */
}

/* Swiper container padding */
.swiper {
  padding-bottom: 50px;
}

/* Swiper arrows */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent, #e67e22);
}

/* Pagination dots */
.swiper-pagination-bullet {
  background: var(--accent, #e67e22);
  opacity: 0.8;
}

.swiper-pagination-bullet-active {
  background: var(--foreground, #333);
}


/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.lightbox.hidden {
  display: none;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

/* Buttons */
.close-btn,
.prev-btn,
.next-btn {
  position: absolute;
  background: transparent;
  color: white;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px;
  transition: opacity 0.2s;
}

.close-btn { top: 20px; right: 30px; }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.prev-btn:hover,
.next-btn:hover,
.close-btn:hover {
  opacity: 0.7;
}
/****** About the Author Collage End *******/