/*
╔════════════════════════════════════════════════════════════════════╗
║  ROOTED VITALITY, INC.                                             ║
║  File: styles/components.css                                       ║
║  Purpose: Reusable UI Components (Buttons, Cards, Forms, Modals)   ║
║  Holistic Wellness · Modern Connection Platform                    ║
║  rootedvitality.health | 2025                                         ║
╚════════════════════════════════════════════════════════════════════╝

TABLE OF CONTENTS
  1. BUTTONS & CTAs
  2. CARDS & CONTENT BOXES
  3. ARTICLE COMPONENTS
  4. FORMS & INPUTS
  5. MODALS & OVERLAYS
  6. NAVIGATION ELEMENTS
  7. TIMELINE & LISTS
  8. GLASS-MORPHISM EFFECTS

Extracted from: styles_legacy.css
*/

/* ========================================== */
/* 1. BUTTONS & CTAs */
/* ========================================== */
.btn,
.back-button,
.btn-primary,
.btn-secondary,
.hero-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn:hover,
.back-button:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.015);
}

.btn-primary,
.hero-cta {
    background: var(--rooted-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-minimal);
}

.btn-primary:hover,
.hero-cta:hover {
    background: #77883e;
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(92, 154, 114, 0.5);
    transform: translateY(-2px);
}

/* Enhanced hero-cta for better visual polish */
.hero-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border-radius: 6px;
    background: #77883e;
    box-shadow: 0 2px 8px rgba(92, 154, 114, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(251, 247, 236, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.hero-cta:hover {
    background: #6b7632;
    box-shadow: 0 6px 16px rgba(92, 154, 114, 0.4);
    transform: translateY(-3px);
}

.hero-cta:hover::before {
    left: 100%;
}

.btn-secondary,
.back-button {
    background: var(--glass-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--rooted-primary);
    color: var(--text-accent);
}

.btn-secondary:hover,
.back-button:hover {
    background: var(--rooted-primary);
    color: var(--color-white);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.back-button:focus-visible {
    outline: 2px solid var(--rooted-accent);
    outline-offset: 2px;
}

/* ========================================== */
/* UNIVERSAL BUTTON VARIANTS */
/* ========================================== */

/* Primary Button - Green background with white text */
.btn-success,
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: #77883e;
    background-image: repeating-linear-gradient(135deg, rgba(152,229,142,0.04) 0px, rgba(152,229,142,0.04) 2px, transparent 2px, transparent 12px);
    color: var(--text-light);
}

.btn-success:hover,
.btn-primary:hover {
    background: #5f7030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 154, 114, 0.25);
}

.btn-success:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(92, 154, 114, 0.15);
}

.btn-success:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid #77883e;
    outline-offset: 2px;
}

.btn-success:disabled,
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Neutral Button - White background with green border and text */
.btn-neutral {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-neutral:hover {
    background: rgba(92, 154, 114, 0.05);
    border-color: #5f7030;
    color: #5f7030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 154, 114, 0.15);
}

.btn-neutral:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(92, 154, 114, 0.1);
}

.btn-neutral:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-neutral:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Danger Button - Red/Warning background */
.btn-danger {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: #d32f2f;
    color: var(--text-light);
}

.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.15);
}

.btn-danger:focus-visible {
    outline: 2px solid #d32f2f;
    outline-offset: 2px;
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ghost Button - Transparent with border */
.btn-ghost {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    border: 2px solid #d0ccc5;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: #b0aca5;
    color: #2e2b28;
    background: #fafaf9;
}

.btn-ghost:active {
    transform: scale(0.98);
}

.btn-ghost:focus-visible {
    outline: 2px solid #77883e;
    outline-offset: 2px;
}

.btn-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================== */

/* 2. CARDS & CONTENT BOXES */
/* ========================================== */

/**
 * UNIVERSAL CARD DESIGN
 * Based on the timezone card design - simple, elegant, and professional
 * Two-column layout: content (left) + action/input (right)
 * Responsive: stacks to single column on mobile
 */
.universal-card {
  background: linear-gradient(135deg, var(--primary-opacity-08) 0%, var(--primary-opacity-03) 100%);
  border: 1px solid var(--primary-opacity-20);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.universal-card:hover {
  border-color: var(--primary-opacity-30);
  box-shadow: 0 2px 8px rgba(92, 154, 114, 0.08);
}

.universal-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .universal-card-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.universal-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rooted-dark);
}

.universal-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rooted-dark);
  line-height: 1.5;
}

.universal-card-info {
  flex: 1;
}

.universal-card-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/**
 * BASE CARD COMPONENT (for dashboard pages)
 * Provides universal card styling for collapsible cards, content cards, etc.
 * Combines with page-specific classes for extended functionality
 */
.card-base {
  background: var(--rooted-light);
  border: 1px solid var(--card-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-subtle);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-base:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--card-border-accent);
}

.card-base--collapsed {
  box-shadow: none;
  border: 1px solid var(--primary-opacity-15);
  background: transparent;
}

.card-base--collapsed:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--text-accent);
}

.card-base--inactive {
  opacity: 0.6;
  background-color: var(--text-light);
  border-color: var(--status-inactive);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--card-border-light);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-bottom-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.card-header:hover {
  background: var(--card-bg-gradient-light);
}

.card-base--collapsed .card-header {
  border-bottom-color: transparent;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.card-base--collapsed .card-body {
  max-height: 0;
  padding: 0 1.5rem;
  overflow: hidden;
  opacity: 0;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(92, 154, 114, 0.1);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.card-base--collapsed .card-footer {
  max-height: 0;
  padding: 0 1.5rem;
  border-top: none;
}

.card-divider-subtle {
  height: 1px;
  background: var(--card-border-light);
  margin: 0;
}

/**
 * UNIVERSAL TIPS SECTION
 * Used across all dashboard pages (client, practitioner)
 * Provides consistent styling for Tips sections with info icon
 */
.tips-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 28px;
}

.tips-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--rooted-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  -webkit-text-fill-color: #ffffff;
}

.tips-section__title {
  margin: 0;
  line-height: 1;
  color: var(--text-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips-list li {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-left: 0.25rem;
}

.tips-list li::before {
  content: "✓";
  color: var(--text-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Timezone select input styling */
.timezone-select {
  padding: 0.875rem 1rem;
  border: 1.5px solid #d0ccc5;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--rooted-dark);
  background: var(--rooted-neutral);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timezone-select:hover {
  border-color: var(--text-accent);
  box-shadow: 0 2px 6px rgba(92, 154, 114, 0.1);
}

.timezone-select:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(92, 154, 114, 0.15);
}

.timezone-current-time {
  padding: 0.75rem 1rem;
  background: var(--rooted-neutral);
  border: 1px solid #e0dcd5;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-accent);
  font-weight: 600;
}

/* ========================================== */

.box-highlight,
.highlight-box {
    background: linear-gradient(135deg, var(--card-bg-gradient-light) 0%, var(--card-bg-gradient-accent) 100%);
    backdrop-filter: blur(6px);
    border: 1.5px solid var(--card-border-primary);
    border-left: 4px solid var(--card-accent-color);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: var(--spacing-md) 0;
    font-style: italic;
    box-shadow: var(--card-shadow-subtle);
    animation: fadeUp 0.8s ease 0.2s both;
    transition: all 0.3s ease;
}

.box-highlight:hover,
.highlight-box:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-primary);
}

.box-plant,
.plant-card,
.season-card {
    background: linear-gradient(135deg, var(--card-bg-gradient-light) 0%, var(--card-bg-gradient-accent-soft) 100%);
    backdrop-filter: blur(6px);
    border: 1.5px solid var(--card-border-primary);
    border-left: 4px solid var(--card-accent-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: var(--spacing-md) 0;
    box-shadow: var(--card-shadow-subtle);
    animation: fadeUp 0.8s ease 0.2s both;
    transition: all 0.3s ease;
}

.box-plant:hover,
.plant-card:hover,
.season-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-primary);
}

.box-plant h3,
.plant-card h3,
.season-card h3 {
    margin-top: 0;
    color: var(--card-accent-color);
}

.checklist-box {
    background: var(--glass-white);
    backdrop-filter: blur(6px);
    border-left: 4px solid var(--rooted-accent);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(92, 154, 114, 0.25);
    margin: var(--spacing-md) 0;
    box-shadow: var(--shadow-minimal);
    animation: fadeUp 0.8s ease 0.2s both;
}

.checklist-box h3 {
    margin-top: 0;
    color: var(--color-button);
}

.article-card {
    background: var(--glass-white);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(92, 154, 114, 0.25);
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    animation: fadeUp 0.8s ease 0.1s both;
    color: var(--color-text);
}

.article-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: scale(1.015) translateY(-2px);
}

.article-card p,
.article-card span,
.article-card div {
    color: var(--color-text);
}

.article-card a {
    color: var(--color-button);
    font-weight: var(--font-weight-bold);
}

.article-card a:hover {
    color: var(--text-accent);
}

/* ========================================== */
/* 3. ARTICLE COMPONENTS */
/* ========================================== */
.article-header {
    margin-bottom: var(--spacing-lg);
    animation: fadeUp 0.8s ease 0.1s both;
}

.article-title {
    color: var(--color-button);
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-bottom: 0.5rem;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--rooted-accent);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.article-content {
    background: var(--glass-white);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(92, 154, 114, 0.25);
    padding: var(--spacing-xl) clamp(1rem, 5vw, 3rem);
    box-shadow: var(--shadow-medium);
    line-height: 1.8;
    animation: fadeUp 0.8s ease 0.2s both;
}

.article-content h2 {
    color: var(--color-button);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.article-content h3 {
    color: var(--text-accent);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.article-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.article-content p {
    color: var(--color-text);
}

/* ========================================== */
/* 4. FORMS & INPUTS */
/* ========================================== */

/* Unified form input styling - prevent browser dark mode interference */
input,
textarea,
select {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(92, 154, 114, 0.25);
    border-radius: var(--radius-sm);
    background: var(--glass-light);
    backdrop-filter: blur(4px);
    color: var(--color-text);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* EXCEPTION: Checkboxes - use native appearance */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    cursor: pointer;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    accent-color: var(--rooted-primary);
}

/* Checkboxes - hover state */
input[type="checkbox"]:hover {
    opacity: 0.8;
}

/* Checkboxes - focus state */
input[type="checkbox"]:focus,
input[type="checkbox"]:focus-visible {
    outline: 2px solid #77883e;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(119, 136, 62, 0.2);
}

/* Radio buttons */
input[type="radio"] {
    border-radius: 50%;
}

/* Radio buttons - use native appearance */
input[type="radio"] {
    border-radius: 50%;
}

/* Prevent browser autofill styling - BUT NOT FOR CHECKBOXES/RADIOS */
input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill,
input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:hover,
input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:focus,
input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--glass-light) inset;
    -webkit-text-fill-color: var(--color-text);
    color: var(--color-text);
}

textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--glass-light) inset;
    -webkit-text-fill-color: var(--color-text);
    color: var(--color-text);
}

/* Ensure placeholder text is visible */
input::placeholder,
textarea::placeholder {
    color: var(--text-muted-light);
    opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: var(--text-muted-light);
    opacity: 1;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: var(--text-muted-light);
    opacity: 1;
}

/* Focus state - EXCLUDING checkboxes/radios */
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(92, 154, 114, 0.1);
    background: var(--glass-light);
    color: var(--color-text);
}

label {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    display: block;
    margin-bottom: 0.5rem;
}

.form-helper {
    font-size: 0.85rem;
    color: #7a7370;
    margin-top: 0.4rem;
    font-weight: 500;
    display: block;
}

/* ========================================== */
/* 5. MODALS & OVERLAYS */
/* ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 43, 40, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--glass-overlay);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(92, 154, 114, 0.25);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-elevated);
    animation: fadeUp 0.3s ease;
}

/* ========================================== */
/* 6. NAVIGATION ELEMENTS */
/* ========================================== */
.nav-link {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--glass-white);
    color: var(--text-accent);
}

.nav-link.active {
    background: var(--rooted-primary);
    color: var(--color-white);
}

/* ========================================== */
/* 7. TIMELINE & LISTS */
/* ========================================== */
.timeline {
    background: var(--glass-white);
    backdrop-filter: blur(6px);
    border: 1px solid var(--rooted-accent);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin: var(--spacing-md) 0;
    box-shadow: inset 0 1px 3px rgba(212, 196, 124, 0.15), var(--shadow-minimal);
}

.timeline h3 {
    margin-top: 0;
    color: var(--text-accent);
}

.timeline-item {
    margin-bottom: 1rem;
    border-left: 3px solid var(--rooted-accent);
    padding-left: 1rem;
}

.timeline-item strong {
    color: var(--text-accent);
    font-weight: var(--font-weight-semibold);
}

/* ========================================== */
/* 8. GLASS-MORPHISM EFFECTS */
/* ========================================== */
.glass-panel {
    background: var(--glass-white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(92, 154, 114, 0.25);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
}

.hero-section {
    position: relative;
    animation: fadeUp 0.8s ease 0.1s both;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 60% 40%, rgba(92, 154, 114, 0.1), transparent);
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-xl);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ========================================== */
/* RESPONSIVE COMPONENTS */
/* ========================================== */
@media (max-width: 1024px) {
    .article-card,
    .article-content,
    .box-plant,
    .season-card {
        box-shadow: var(--shadow-minimal);
    }
}

@media (max-width: 768px) {
    .article-content {
        padding: var(--spacing-md) 1rem;
    }
    
    .btn,
    .btn-primary,
    .btn-secondary,
    .back-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .highlight-box,
    .plant-card,
    .season-card,
    .checklist-box {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 1rem 0.75rem;
    }
    
    .btn,
    .btn-primary,
    .btn-secondary,
    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .highlight-box,
    .plant-card,
    .season-card,
    .checklist-box {
        padding: 0.75rem;
        margin: 0.75rem 0;
        font-size: 0.9rem;
    }
}

/* ========================================== */
/* UNIVERSAL HEADER & FOOTER (INJECTED) */
/* ========================================== */

/* ======================================================
   ROOTED VITALITY HEADER — Premium Navigation
   ====================================================== */

.rv-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(249, 245, 232, 0.88) 0%,
        rgba(251, 247, 236, 0.85) 50%,
        rgba(248, 244, 231, 0.82) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 8px 24px rgba(46, 43, 40, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 50px rgba(92, 154, 114, 0.08);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: headerFade 0.6s ease forwards;
    border-bottom: 1px solid rgba(92, 154, 114, 0.1);
    background-attachment: fixed;
}


@keyframes headerFade {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { 
        background-position: -1000px 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        background-position: 1000px 0;
        opacity: 0;
    }
}

.rv-header-scrolled {
    background: linear-gradient(
        180deg,
        rgba(247, 242, 229, 0.86) 0%,
        rgba(249, 245, 232, 0.83) 50%,
        rgba(246, 241, 228, 0.80) 100%
    );
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    box-shadow: 
        0 12px 32px rgba(46, 43, 40, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 60px rgba(92, 154, 114, 0.10);
}

.rv-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rv-logo-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rv-logo,
.rv-logo-public,
.rv-logo-client,
.rv-logo-practitioner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    flex-shrink: 0;
}

.rv-logo-image {
    height: 62px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.rv-logo:hover .rv-logo-image,
.rv-logo-container:hover .rv-logo-image {
    transform: scale(1.08);
}

.rv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.rv-brand-name {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.3px;
    color: #4a4540;
    line-height: 0.95;
    transition: color 0.3s ease;
}

.rv-logo:hover .rv-brand-name,
.rv-logo-container:hover .rv-brand-name {
    color: var(--text-accent);
}

/* Desktop navigation - nav + icons in a row */
.rv-nav {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    flex: 1;
}

.rv-nav a {
    font-family: var(--font-sans);
    color: #6b6359;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.rv-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #77883e;
    transition: width 0.3s ease;
}

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

.rv-nav a:hover {
    color: var(--text-accent);
}

.rv-nav a:focus {
    outline: 2px solid #77883e;
    outline-offset: 4px;
    border-radius: 4px;
}

.rv-nav .cta {
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    background: #e8d9a3;
    color: #5c5a54;
    border: 2px solid #e8d9a3;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(92, 154, 114, 0.12);
}

.rv-nav .cta:hover {
    background: #f0e3b5;
    border-color: #f0e3b5;
    color: #4a4540;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 154, 114, 0.2);
}

.rv-nav .cta:focus {
    outline: 2px solid #77883e;
    outline-offset: 4px;
}

/* Desktop: notifications and avatar menu visible on right - flex container */
.rv-notifications-menu {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.rv-avatar-menu {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

/* Desktop: hamburger hidden */
.rv-menu-toggle {
    display: none;
}

/* ======================================================
   HEADER: DESKTOP ICON STYLING
   ====================================================== */

.rv-nav-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: transparent;
    color: var(--text-accent);
    border: 2px solid var(--rooted-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: var(--font-sans);
}

.rv-login-btn,
.rv-dashboard-btn,
.rv-logout-btn {
    background: transparent;
    color: var(--text-accent);
    border: 2px solid var(--rooted-primary);
}

.rv-login-btn:hover,
.rv-dashboard-btn:hover,
.rv-logout-btn:hover {
    background: var(--rooted-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 154, 114, 0.2);
}

.rv-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #6b6359;
    cursor: pointer;
    padding: 0.625rem;
    height: 48px;
    width: 48px;
    margin-left: 1rem;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.rv-menu-toggle:hover {
    transform: scale(1.15);
    color: var(--text-accent);
}

/* ======================================================
   PUBLIC HEADER VARIANT (Phase 1)
   ====================================================== */

.rv-header-public {
    background: linear-gradient(
        180deg,
        rgba(249, 245, 232, 0.88) 0%,
        rgba(251, 247, 236, 0.85) 50%,
        rgba(248, 244, 231, 0.82) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(92, 154, 114, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 50px rgba(92, 154, 114, 0.08);
}

.rv-header-public .rv-nav-link {
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    color: #6b6359;
    transition: text-decoration 0.3s ease, color 0.3s ease;
}

.rv-header-public .rv-nav-link:hover {
    text-decoration: underline;
    color: var(--text-accent);
}

.rv-header-public .rv-btn-accent {
    background: var(--rooted-accent);
    color: #2e2b28;
    padding: 0.6rem 1.3rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rv-header-public .rv-btn-accent:hover {
    background: #e8d9a3;
    text-decoration: none;
    transform: translateY(-2px);
}

.rv-header-public .rv-nav-login {
    color: #6b6359;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.rv-header-public .rv-nav-login:hover {
    color: var(--text-accent);
}

.rv-header-public .rv-nav-login:focus-visible {
    outline: 2px solid #d4c47c;
    outline-offset: 2px;
}

/* Public Header Logo Sizing */
.rv-logo-public {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rv-logo-public .rv-logo-img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.rv-logo-public:hover .rv-logo-img {
    transform: scale(1.08);
}

.rv-logo-public .rv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.rv-logo-public .rv-brand-name {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
    color: #4a4540;
    line-height: 0.95;
    transition: color 0.3s ease;
}

.rv-logo-public:hover .rv-brand-name {
    color: var(--text-accent);
}

/* ======================================================
   CLIENT HEADER VARIANT (Phase 2)
   ====================================================== */

.rv-header-client {
    background: linear-gradient(
        180deg,
        rgba(249, 245, 232, 0.88) 0%,
        rgba(251, 247, 236, 0.85) 50%,
        rgba(248, 244, 231, 0.82) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(92, 154, 114, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 50px rgba(92, 154, 114, 0.08);
}

/* Client Header Logo Sizing */
.rv-logo-client {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rv-logo-client .rv-logo-img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.rv-logo-client:hover .rv-logo-img {
    transform: scale(1.08);
}

.rv-logo-client .rv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.rv-logo-client .rv-brand-name {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
    color: #4a4540;
    line-height: 0.95;
    transition: color 0.3s ease;
}

.rv-logo-client:hover .rv-brand-name {
    color: var(--text-accent);
}

.rv-header-client .rv-nav-link {
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    color: #6b6359;
    transition: text-decoration 0.3s ease, color 0.3s ease;
}

.rv-header-client .rv-nav-link:hover {
    text-decoration: underline;
    color: var(--text-accent);
}

.rv-header-client .rv-nav-link:focus {
    outline: 2px solid #77883e;
    outline-offset: 4px;
}

.rv-header-client .rv-practitioner-btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #2d2d2d;
    transition: color 0.3s ease;
}

.rv-header-client .rv-practitioner-btn:hover {
    color: var(--text-accent);
}

.rv-header-client .rv-practitioner-btn:focus {
    outline: 2px solid #77883e;
    outline-offset: 4px;
}

/* Desktop button - visible by default */
.rv-header-client .rv-practitioner-btn-desktop {
    display: block;
}

/* Mobile button - hidden by default */
.rv-header-client .rv-practitioner-btn-mobile {
    display: none;
}

/* Sign Out Button - Remove default button border */
.rv-header-client .rv-sign-out-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    color: #6b6359;
    transition: text-decoration 0.3s ease, color 0.3s ease;
}

.rv-header-client .rv-sign-out-btn:hover {
    text-decoration: underline;
    color: var(--text-accent);
}

.rv-header-client .rv-sign-out-btn:focus {
    outline: 2px solid #77883e;
    outline-offset: 4px;
}

/* Notifications Bell Icon Button */
.rv-nav-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s ease;
    color: #6b6359;
}

.rv-nav-icon-btn:hover {
    opacity: 0.7;
}

.rv-nav-icon-btn:focus-visible {
    outline: 2px solid #d4c47c;
    outline-offset: 2px;
}

.rv-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    stroke: #6b6359;
    color: #6b6359;
}

.rv-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #d4c47c;
    color: #4a3c2a;
    border-radius: 10px;
    border: 2px solid var(--rooted-light);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    box-shadow: 0 2px 8px rgba(212, 196, 124, 0.4);
    transition: all 0.2s ease;
    opacity: 0;
}

.rv-notification-badge.active {
    opacity: 1;
    display: flex;
}

/* Avatar Menu Button */
.rv-avatar-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.rv-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.rv-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.rv-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #77883e 0%, #4a8360 100%);
    color: var(--text-light);
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.rv-avatar-btn:hover {
    box-shadow: 0 0 0 2px #77883e;
}

.rv-avatar-btn:focus {
    outline: 2px solid #77883e;
    outline-offset: 2px;
}

/* Avatar Dropdown Menu */
.rv-avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--rooted-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
}

.rv-avatar-dropdown.show {
    display: flex;
}

.rv-dropdown-item {
    padding: 0.8rem 1.2rem;
    color: #2e2b28;
    text-decoration: none;
    display: block;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.rv-dropdown-item:hover {
    background: rgba(92, 154, 114, 0.05);
    color: var(--text-accent);
}

.rv-dropdown-item:focus {
    background: rgba(92, 154, 114, 0.1);
    outline: 2px solid #77883e;
    outline-offset: -2px;
}

.rv-dropdown-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rv-logout-item {
    color: #c75555;
}

.rv-logout-item:hover {
    background: rgba(199, 85, 85, 0.05);
    color: #a64242;
}

/* Notifications Dropdown Menu */
.rv-notifications-menu {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.rv-notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--rooted-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    width: 340px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
    max-height: 450px;
}

.rv-notifications-dropdown.show {
    display: flex;
}

.rv-notifications-header {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(92, 154, 114, 0.03);
}

.rv-notifications-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2e2b28;
}

.rv-notifications-list {
    flex: 1;
    overflow-y: auto;
}

.rv-notifications-empty {
    padding: 1.8rem 1.1rem;
    text-align: center;
    color: var(--rooted-dark);
    font-size: 0.9rem;
    margin: 0;
}

.rv-notifications-item {
    display: block;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.rv-notifications-item:hover {
    background: rgba(92, 154, 114, 0.05);
    border-left-color: var(--text-accent);
}

.rv-notifications-item.unread {
    background: rgba(212, 196, 124, 0.1);
    border-left-color: #d4c47c;
}

.rv-notifications-title {
    font-weight: 600;
    color: #2e2b28;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.rv-notifications-message {
    color: var(--rooted-dark);
    font-size: 0.85rem;
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.rv-notifications-time {
    color: var(--rooted-dark);
    font-size: 0.75rem;
    margin: 0;
}

/* ======================================================
   PRACTITIONER HEADER VARIANT (Phase 3)
   ====================================================== */

.rv-header-practitioner {
    background: linear-gradient(
        180deg,
        rgba(249, 245, 232, 0.88) 0%,
        rgba(251, 247, 236, 0.85) 50%,
        rgba(248, 244, 231, 0.82) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(92, 154, 114, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 50px rgba(92, 154, 114, 0.08);
}

/* Practitioner Header Logo Sizing */
.rv-logo-practitioner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rv-logo-practitioner .rv-logo-img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.rv-logo-practitioner:hover .rv-logo-img {
    transform: scale(1.08);
}

.rv-logo-practitioner .rv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.rv-logo-practitioner .rv-brand-name {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
    color: #4a4540;
    line-height: 0.95;
    transition: color 0.3s ease;
}

.rv-logo-practitioner:hover .rv-brand-name {
    color: var(--text-accent);
}

/* Practitioner Header Navigation */
.rv-header-practitioner .rv-nav-link {
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    color: #6b6359;
    transition: text-decoration 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
}

.rv-header-practitioner .rv-nav-link:hover {
    text-decoration: underline;
    color: var(--text-accent);
}

.rv-header-practitioner .rv-nav-link.active {
    text-decoration: underline;
    color: var(--text-accent);
}

.rv-header-practitioner .rv-nav-link:focus {
    outline: 2px solid #77883e;
    outline-offset: 4px;
}

/* Practitioner Avatar Menu (reuses Phase 2 dropdown styles) */
.rv-header-practitioner .rv-avatar-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.rv-header-practitioner .rv-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.rv-header-practitioner .rv-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.rv-header-practitioner .rv-avatar-btn:hover {
    box-shadow: 0 0 0 2px #77883e;
}

.rv-header-practitioner .rv-avatar-btn:focus {
    outline: 2px solid #77883e;
    outline-offset: 2px;
}

/* ======================================================
   ROOTED VITALITY FOOTER
   ====================================================== */

.rv-footer {
    background: #77883e;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 1rem 0;
    margin-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Reduce diagonal line visibility in footer */
.rv-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(92, 154, 114, 0.3);
    pointer-events: none;
    z-index: 1;
}

.rv-footer-inner {
    width: 100%;
    margin: 0;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.rv-footer-section {
    display: flex;
    flex-direction: column;
}

.rv-footer-brand {
    align-items: flex-start;
}

.rv-footer-logo {
    margin-bottom: 0.5rem;
    height: 80px;
    display: flex;
    align-items: center;
}

.rv-footer-logo-img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.rv-footer-branding {
    margin-bottom: 1.5rem;
}

.rv-footer-title {
    font-family: 'Poppins', var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.rv-footer-contact {
    font-size: 0.9rem;
    line-height: 1.6;
}

.rv-footer-phone,
.rv-footer-email {
    margin: 0.3rem 0;
    color: rgba(251, 247, 236, 0.95);
}

.rv-footer-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.rv-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(251, 247, 236, 0.2);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.rv-social-link:hover {
    background: #d4c47c;
    color: var(--text-accent);
    transform: translateY(-2px);
}

.rv-footer-heading {
    font-family: 'Poppins', var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.2rem 0;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.rv-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.rv-footer-nav a {
    color: rgba(251, 247, 236, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.rv-footer-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #d4c47c;
    transition: width 0.3s ease;
}

.rv-footer-nav a:hover::before {
    width: 100%;
}

.rv-footer-nav a:hover {
    color: #d4c47c;
}

/* Button styled as footer link */
.rv-footer-link-btn {
    background: none;
    border: none;
    color: rgba(251, 247, 236, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: left;
}

.rv-footer-link-btn::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #d4c47c;
    transition: width 0.3s ease;
}

.rv-footer-link-btn:hover::before {
    width: 100%;
}

.rv-footer-link-btn:hover {
    color: #d4c47c;
}

.rv-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(251, 247, 236, 0.2);
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.rv-footer-copyright {
    font-size: 0.8rem;
    color: rgba(251, 247, 236, 0.7);
    margin: 0;
    letter-spacing: 0.2px;
}

.rv-footer-help-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #d4c47c;
    color: var(--text-accent);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rv-footer-help-btn:hover {
    background: var(--rooted-light);
    color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 247, 236, 0.3);
}

.rv-footer-socials-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.rv-footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(251, 247, 236, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rv-footer-social-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.rv-footer-social-btn:hover {
    background: rgba(251, 247, 236, 0.3);
    transform: translateY(-2px);
}

.rv-footer-plant {
    display: none;
}

/* ========================================== */
/* HEADER/FOOTER RESPONSIVE */
/* ========================================== */
@media (max-width: 768px) {
    .rv-header-inner {
        padding: 0.8rem 1rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .rv-logo-image {
        height: 52px;
    }
    
    .rv-brand-name {
        font-size: 1.28rem;
    }
    
    .rv-logo,
    .rv-logo-public,
    .rv-logo-client,
    .rv-logo-practitioner {
        order: 0;
        flex-shrink: 0;
        margin-right: auto;
    }
    
    .rv-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--rooted-light);
        padding: 1.2rem 1.5rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(46, 43, 40, 0.1);
        gap: 0.8rem;
        width: 100%;
        border-top: 1px solid rgba(92, 154, 114, 0.15);
    }
    
    .rv-nav.open {
        display: flex;
    }
    
    .rv-nav a {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
    
    .rv-menu-toggle {
        display: block;
        order: 1;
    }
    
    .rv-notifications-menu {
        order: 2;
    }
    
    .rv-avatar-menu {
        order: 3;
    }
    
    .rv-nav .cta,
    .rv-nav-btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
    }
    
    /* Hide desktop button on mobile */
    .rv-header-client .rv-practitioner-btn-desktop {
        display: none;
    }
    
    /* Show mobile button in hamburger menu */
    .rv-header-client .rv-practitioner-btn-mobile {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
        border-top: 1px solid rgba(92, 154, 114, 0.2);
        margin-top: 0.4rem;
    }
    
    .rv-footer-inner {
        grid-template-columns: auto 1fr 1fr;
        gap: 2rem;
        padding: 2rem 1rem 1.5rem;
    }
    
    .rv-footer-logo {
        height: 60px;
    }
    
    .rv-footer-title {
        font-size: 1.5rem;
    }
    
    .rv-footer-plant {
        width: 300px;
        height: 350px;
        right: -50px;
        top: -40px;
    }
    
    .rv-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .rv-footer-help-btn {
        width: 100%;
        text-align: center;
    }
    
    .rv-footer-socials-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100%;
        max-width: 240px;
    }
    
    .rv-footer-social-btn {
        width: 56px !important;
        height: 56px !important;
    }
}

@media (max-width: 480px) {
    .rv-header-inner {
        padding: 0.75rem;
    }
    
    .rv-logo-image {
        height: 46px;
    }
    
    .rv-brand-name {
        font-size: 1.15rem;
    }
    
    .rv-menu-toggle {
        font-size: 1.7rem;
    }
    
    .rv-nav {
        padding: 1rem 1.2rem;
    }
    
    .rv-footer-inner {
        padding: 1.5rem 0.75rem 1rem;
        gap: 1.5rem;
        grid-template-columns: auto 1fr 1fr;
    }
    
    .rv-footer-logo {
        height: 50px;
    }
    
    .rv-footer-title {
        font-size: 1.3rem;
    }
    
    .rv-footer-plant {
        width: 200px;
        height: 250px;
        right: -60px;
        top: -20px;
    }
    
    .rv-footer-bottom {
        padding: 1.2rem 0.75rem;
        gap: 0.8rem;
    }
    
    .rv-footer-socials-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100%;
        max-width: 220px;
    }
    
    .rv-footer-social-btn {
        width: 52px !important;
        height: 52px !important;
    }
}

/* ========================================== */
/* AUTH MODAL — LOGIN/REGISTER OVERLAY */
/* ========================================== */

.rv-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(46, 43, 40, 0.55);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2000;
}

.rv-auth-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.rv-auth-modal {
    background: rgba(247, 245, 241, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: modalPop 0.4s ease;
    position: relative;
}

@keyframes modalPop {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rv-auth-modal h2 {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rv-auth-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--rooted-dark);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-auth-close:hover {
    color: var(--text-accent);
}

.rv-auth-close:focus {
    outline: 2px solid var(--rooted-primary);
    outline-offset: 2px;
}

.rv-auth-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 1.5rem 0;
}

.rv-auth-tab {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--rooted-dark);
    transition: all 0.3s ease;
}

.rv-auth-tab:hover {
    border-color: var(--text-accent);
    background: rgba(92, 154, 114, 0.08);
}

.rv-auth-tab.active {
    border-color: var(--text-accent);
    background: rgba(92, 154, 114, 0.12);
    color: var(--text-accent);
}

#rvAuthForm {
    margin-top: 1rem;
}

.rv-auth-modal label {
    display: block;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rooted-dark);
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.rv-auth-modal input[type="email"],
.rv-auth-modal input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(46, 43, 40, 0.2);
    border-radius: 6px;
    background: var(--rooted-light) !important;
    font-size: 1rem;
    color: var(--rooted-dark) !important;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.rv-auth-modal input[type="email"]:focus,
.rv-auth-modal input[type="password"]:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 6px rgba(92, 154, 114, 0.4);
    outline: none;
}

.rv-auth-modal input[type="checkbox"] {
    margin-right: 0.4rem;
    cursor: pointer;
    accent-color: var(--text-accent);
}

.rv-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.rv-auth-actions label {
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.rv-forgot {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.rv-forgot:hover {
    color: var(--rooted-accent);
    text-decoration: underline;
}

.rv-auth-submit {
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--rooted-primary);
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.rv-auth-submit:hover {
    background: var(--rooted-accent);
    color: var(--rooted-dark);
}

.rv-auth-submit:active {
    transform: scale(0.98);
}

.rv-auth-submit:focus {
    outline: 2px solid var(--rooted-primary);
    outline-offset: 2px;
}

.rv-auth-footer {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(46, 43, 40, 0.1);
    font-size: 0.9rem;
    color: var(--rooted-dark);
}

/* ========================================== */
/* NOTIFICATION TOAST */
/* ========================================== */

.rv-notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #77883e 0%, #5e6e30 100%);
    color: var(--text-light);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(119, 136, 62, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 360px;
    width: calc(100% - 48px);
    z-index: 10000;
    animation: toastSlideIn 0.3s ease-out;
    opacity: 0;
    transform: translateY(100px);
    pointer-events: auto;
}

.rv-notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.rv-notification-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rv-notification-toast-title {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.rv-notification-toast-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

.rv-notification-toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-light);
    font-size: 20px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.rv-notification-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .rv-notification-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
}

/* ========================================== */
/* CONTACT MODAL STYLING */
/* ========================================== */

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-info__subtitle {
    color: var(--text-muted-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.contact-method {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.contact-method:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-method h4 {
    font-size: 1rem;
    color: var(--text-accent);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-link {
    display: inline-block;
    color: #d4c47c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--text-accent);
}

.contact-text {
    color: var(--text-muted-secondary);
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

/* ========================================== */
/* REVIEWS STYLING */
/* ========================================== */

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--glass-overlay);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow-subtle);
}

.review-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-opacity-20);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-client-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.review-client-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rooted-dark);
    margin: 0;
}

.review-source-badge,
.review-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-source-badge {
    background: var(--primary-opacity-10);
    color: var(--text-accent);
}

.review-source-badge.platform {
    background: var(--status-success-opacity);
    color: var(--status-success);
}

.review-source-badge.external {
    background: var(--primary-opacity-15);
    color: var(--text-accent);
}

.review-category-badge {
    background: var(--primary-opacity-10);
    color: var(--text-accent);
    text-transform: capitalize;
    letter-spacing: normal;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
}

.review-stars .star {
    color: #d4af37;
}

.review-stars .star.empty {
    color: #ccc;
    opacity: 0.4;
}

.review-text {
    color: var(--card-text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.review-photos-gallery {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.review-photo-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid var(--card-border-light);
}

.review-photo-thumbnail:hover {
    transform: scale(1.05);
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-opacity-05);
}

.review-date {
    font-size: 0.85rem;
    color: var(--card-text-secondary);
    font-style: italic;
}

.review-link-container {
    margin: 1.5rem 0;
}

.review-link-container label {
    display: block;
    font-weight: 500;
    color: var(--rooted-dark);
    margin-bottom: 0.5rem;
}

.review-link-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    background: var(--glass-overlay);
    color: var(--rooted-dark);
    font-size: 0.9rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.copy-input-group {
    display: flex;
    gap: 0.5rem;
}

.copy-input-group .review-link-input {
    flex: 1;
}

/* Empty state for no reviews */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--glass-overlay);
    border: 1px dashed var(--card-border-light);
    border-radius: var(--radius-md);
}

.empty-icon {
    color: var(--primary-opacity-30);
    margin-bottom: 1rem;
}






/* FORCE: Black text in dark mode for maximum readability */








