/* /styles/visionmapping.css */
/* Vision Mapping Layout & Styling */

/* ====== Tokens ====== */
:root {
  --vm-border-color: var(--brand-gold, #b08a48);
  /* SWITCHED TO PURE WHITE - Safer for tablets */
  --vm-bg-surface: #ffffff;      
  --vm-bg-surface-alt: #ffffff;  
  --vm-text-color: #000;
  --vm-radius-lg: 0.75rem;       
  --vm-radius-md: 0.5rem;        
  --vm-gap-lg: 1.5rem;
  --vm-gap-md: 1rem;
  --vm-gap-sm: 0.5rem;
  --vm-shadow-block: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================================
   1. Main Layout Containers
   ========================================= */

/* The Left Rail Container */
.visionmapping__panel {
  background-color: var(--vm-bg-surface) !important;
  color: #000000 !important;
  
  border: 1px solid var(--vm-border-color) !important; 
  border-radius: var(--vm-radius-lg);
  padding: var(--vm-gap-lg);
  box-shadow: var(--vm-shadow-block);
  min-height: 500px; 
  display: flex;
  flex-direction: column;
}
.vm-home-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.vm-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(176, 138, 72, 0.15) !important;
}

.activation-card {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.activation-card:hover {
  border-left-color: #b08a48;
}

.btn-route {
  background: transparent;
  border: 1px solid #b08a48;
  color: #b08a48;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  transition: all 0.2s;
}

.btn-route:hover {
  background: #b08a48;
  color: #fff;
}

.btn-audio {
  background: #f8f9fa;
  border: 1px solid #ddd;
  color: #555;
  font-size: 0.8rem;
  border-radius: 20px;
  transition: all 0.2s;
}

.btn-audio:hover {
  background: #eee;
  color: #333;
}

.brand-gold {
  color: #b08a48;
}

.vm-home-welcome-card {
  border-color: rgba(176, 138, 72, 0.3) !important;
}

.vm-home-heading {
  font-family: "Playfair Display", serif;
}

.vm-home-card-radius {
  border-radius: 12px;
}

.vm-home-icon-circle-sm {
  width: 32px;
  height: 32px;
}

.vm-home-icon-circle-lg {
  width: 60px;
  height: 60px;
}

.vm-home-text-micro {
  font-size: 0.65rem;
}

.vm-home-letterspace {
  letter-spacing: 0.5px;
}

.vm-home-open-library-btn {
  border-radius: 25px;
  border-color: #b08a48;
  color: #b08a48;
}
/* The Right Rail Container (History) */
.visionmapping__sidepanel {
  padding: 0;
  border: 0;
  background: transparent;
}

/* =========================================
   2. The "Controls" Toolbar (Top of Left Rail)
   ========================================= */
.vm__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vm-gap-md);
  padding-bottom: var(--vm-gap-lg);
  margin-bottom: var(--vm-gap-lg);
  border-bottom: 1px solid rgba(176, 138, 72, 0.2); 
}

.vm__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #000000 !important;
  margin: 0;
}

.vm__controls select {
  padding: 0.4rem 2rem 0.4rem 0.8rem; 
  border: 1px solid var(--vm-border-color);
  border-radius: var(--vm-radius-md);
  background-color: #ffffff !important; 
  color: #000000 !important;            
  font-size: 0.9rem;
  cursor: pointer;
  height: 36px;
}

/* The "Pull Card" Button */
#vmPull {
  margin-left: auto; 
  background-color: var(--vm-border-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--vm-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

#vmPull:hover {
  background-color: #9a773f; 
}

/* =========================================
   3. The "Card" Display (Main Content)
   ========================================= */
#vmCardZone {
  flex: 1;
}

/* Styling the generic "card" output from CardRenderer.js */
.vm-card-block, 
.visionmapping__panel .card { 
  background-color: #ffffff !important;
  color: #000000 !important;
  
  border: 1px solid #e0e0e0;
  border-left: 4px solid var(--vm-border-color); 
  border-radius: var(--vm-radius-md);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

/* Card Title */
.vm-card-block h2, 
.visionmapping__panel h2 {
  font-size: 1.5rem;
  font-weight: 700 !important;
  color: #000000 !important;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

/* Section Headers */
.vm-card-block h3, 
.visionmapping__panel h3,
.visionmapping__panel h4 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vm-border-color) !important; 
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Body Text */
.vm-card-block p,
.visionmapping__panel p {
  font-size: 1rem;
  line-height: 1.6;
  color: #000000 !important;
  margin-bottom: 1rem;
}

/* =========================================
   4. Inputs & Recording (Inside the Card)
   ========================================= */
.visionmapping__panel textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: var(--vm-radius-md);
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  
  /* Pure White Background */
  background-color: #ffffff !important;
  color: #000000 !important;
  
  min-height: 120px;
  resize: vertical;
  transition: all 0.2s;
  display: block;
  margin-bottom: 0.5rem;
}

.visionmapping__panel textarea:focus {
  background-color: #ffffff !important;
  border-color: var(--vm-border-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(176, 138, 72, 0.1);
}

/* The "Start Recording" Button */
.visionmapping__panel button.btn-outline-secondary,
.visionmapping__panel button[id^="record"] {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.25rem;
  cursor: pointer;
}

.visionmapping__panel button.btn-outline-secondary:hover {
  border-color: var(--vm-border-color);
  color: var(--vm-border-color);
}

/* =========================================
   5. History List (Right Rail)
   ========================================= */
.vm-history-list {
  display: flex;
  flex-direction: column; 
  gap: 0.5rem;
}

.vm-history-item {
  background: #fff;
  border: 1px solid #eee;
  border-left: 3px solid transparent;
  padding: 0.75rem 1rem;
  border-radius: var(--vm-radius-md);
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.vm-history-item:hover {
  border-color: var(--vm-border-color);
  background: #f8f9fa; /* Safe light grey hover */
}

.vm-history-item.active {
  border-left-color: var(--vm-border-color);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =========================================
   6. Mobile Responsiveness
   ========================================= */



   /* ===== ONBOARDING TOUR ===== */

.vm-tour-highlight {
  position: relative;
  z-index: 1055;
  box-shadow: 0 0 0 3px rgba(176, 138, 72, 0.4);
  border-radius: 8px;
}

.vm-tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1050;
}

.vm-tour-box {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 450px;
  background: #fff;
  border: 1px solid #b08a48;
  border-radius: 12px;
  padding: 1.5rem;
  z-index: 1060;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.vm-tour-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .vm__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  #vmPull {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
  
  .visionmapping__panel {
    padding: var(--vm-gap-md);
  }
}
/* --- Override Borders for Cleaner Layout --- */

/* Remove the gold border from the main panel (Left Rail) */
#visionMappingMount.visionmapping__panel,
.visionmapping__panel {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Remove the divider line from the side panel (Right Rail) */
#visionMappingSide.visionmapping__sidepanel,
.visionmapping__sidepanel {
    border-left: none;
    border: none;
    background: transparent;
}

/* Ensure the main container wrapper doesn't have the border */
#privateColumns .container {
    border: none;
    box-shadow: none;
}
/* Add to bottom of visionmapping.css */

/* Hide the container borders when there is no content inside */
#visionMappingMount:empty, 
#visionMappingSide:empty,
.visionmapping__panel:empty {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 0 !important; /* Collapses the height */
}
/* --- THEME BACKGROUND SUPPORT --- */
#theme-background-layer {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100vh;
  z-index: -1; /* Puts it behind everything */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
}

/* Make sure panels are slightly see-through so we see the image */
body.theme-golden-flakes .visionmapping__panel,
body.theme-golden-flakes .visionmapping__sidepanel,
body.theme-golden-flakes .card {
  background-color: rgba(255, 255, 255, 0.85) !important; /* 85% opacity white */
  backdrop-filter: blur(5px); /* Optional: Blurs the image behind text for readability */
}

/* Custom grid classes removed. Using native Bootstrap flex from myprofile.html */

/* BACKGROUND LAYER - BLEACHED */
#theme-background-layer {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100vh;
  z-index: -1; 
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* KEY CHANGE: Fade image to 25% so it is just a texture */
  opacity: 0.20; 
  
  transition: background-image 60.0s ease-in-out;
}

/* Ensure the body behind the image is parchment color */
body {
    background-color: #f4f1ea;
}
/* --- Self Confidence App Overrides --- */
.vm-breath-circle {
    width: 250px;
    height: 250px;
}

.vm-floating-mic {
    width: 45px;
    height: 45px;
    z-index: 10;
}

/* --- Activation Card Redesign --- */
.border-brand-gold {
    border: 1px solid #b08a48 !important;
}
.vm-act-card-mini {
    border-radius: 1.5rem !important; 
    padding: 0.6rem 1.25rem !important; 
}
.vm-act-icon-box {
    width: 38px;
    height: 38px;
    border: 1px solid #b08a48 !important;
    background-color: transparent !important;
    flex-shrink: 0;
}
.vm-act-icon-box-sm {
    width: 28px;
    height: 28px;
    border: 1px solid #b08a48 !important;
    background-color: transparent !important;
    flex-shrink: 0;
}
.vm-text-sm {
    font-size: 0.9rem !important;
}
.vm-text-xs {
    font-size: 0.75rem !important;
}
