
/* ---------------------------
   🌸 Love Garden Global Styles
---------------------------- */

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background-color: #1e1e2f;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }
  
  body.loaded {
    opacity: 1;
  }
  
  .fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  h1, h2 {
    margin: 1.5rem 0 1rem;
    font-size: 2.2rem;
  }
  
  /* ---------------------------
     Forms & Inputs
  ---------------------------- */
  
  form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }
  
  input[type="text"],
  input[type="file"],
  select {
    color: black;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }
  
  input:focus,
  select:focus {
    outline: none;
    box-shadow: 0 0 5px #ca84ff;
  }
  
  /* ---------------------------
     Buttons
  ---------------------------- */
  
  .btn {
    display: inline-block;
    background-color: #9000ff;
    color: white !important;
    padding: 10px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
  }
  
  .btn:hover {
    background-color: #ca84ff;
  }
  
  .btn-danger {
    background-color: #ff0000;
  }
  
  .btn-danger:hover {
    background-color: #ff5e5e;
  }
  
  .btn-lexi {
    background-color: #ff69b4;
  }
  
  .btn-lexi:hover {
    background-color: #ff85c1;
  }
  
  .btn-david {
    background-color: #6495ed;
  }
  
  .btn-david:hover {
    background-color: #7caaff;
  }
  
  .btn-submit {
    background-color: #0059ff;
  }
  
  .btn-submit:hover {
    background-color: #9bbeff;
  }
  
  .btn-music {
    background: linear-gradient(to right, #6f42c1, #d63384);
  }
  
  .btn-music:hover {
    opacity: 0.9;
  }

/* ---------------------------
     Navbar Styles
  ---------------------------- */
  .theme-navbar {
    transition: background-color 0.3s ease;
  }
  
  .theme-navbar-dark {
    background: rgba(30, 30, 47, 0.9); /* rich dark */
  }
  
  .theme-navbar-light {
    background: #fff1f5; /* soft pink / blush */
  }
  

  /* ---------------------------
     Feedback & Effects
  ---------------------------- */
  
  .correct-answer {
    animation: glow 1.5s ease-in-out;
  }
  
  @keyframes glow {
    0% { box-shadow: 0 0 5px #28a745; }
    50% { box-shadow: 0 0 20px #28a745; }
    100% { box-shadow: 0 0 5px #28a745; }
  }
  
  .wrong-answer {
    animation: shake 0.5s ease-in-out;
  }
  
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
  }
  
  #hint-box {
    display: none;
    background-color: rgba(255, 255, 0, 0.2);
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-style: italic;
  }
  
  /* ---------------------------
     Garden & Notes
  ---------------------------- */
  
  .garden {
    position: relative;
    width: 100%;
    height: 60vh;
    margin-top: 2rem;
    overflow: hidden;
    background-color: #2a2a3d;
    border: 6px solid #fff5e1;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    z-index: 1;
  }
  
  .garden::before,
  .garden::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 12px;
    background-image: repeating-linear-gradient(
      to right,
      #fff5e1,
      #fff5e1 8px,
      transparent 8px,
      transparent 12px
    );
    z-index: 2;
    pointer-events: none;
  }
  
  .garden::before {
    top: 0;
    left: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  
  .garden::after {
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
  .flower {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.2s ease-in-out;
  }
  
  .flower:hover {
    transform: scale(1.4);
    z-index: 10;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  .note {
    display: none;
    position: absolute;
    top: 2.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 10px;
    padding: 10px;
    max-width: 90vw;
    width: max-content;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    font-size: 0.9rem;
    word-wrap: break-word;
  }
  
  .note.visible { display: block; }
  .note.align-center { left: 50%; transform: translateX(-50%); }
  .note.align-left { left: 0; transform: translateX(0); }
  .note.align-right { right: 0; left: auto; transform: translateX(0); }
  
  .close-note {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    padding: 0;
  }
  
  .close-note:hover {
    color: red;
    transform: scale(1.2);
  }


  /* ---------------------------
     Manage Notes Cards
  ---------------------------- */
  .card-note {
    background-color: #fffdf7;
    background-image: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 100% 24px;
    border: 1px solid #ffeec2;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: 'Georgia', serif;
    position: relative;
  }
  
  
  .card-note .card-text {
    font-size: 1.1rem;
    font-style: italic;
  }
  
  .card-note .blockquote-footer {
    font-size: 0.9rem;
    color: #bbb;
  }
  
    
  /* ---------------------------
     Upload Card
  ---------------------------- */
  .upload-card {
    background-color: var(--upload-bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    background-image: var(--upload-texture);
    background-size: 100% auto;
    background-repeat: repeat;
  }

  body.bg-light .upload-card {
    --upload-bg: #fdfcf7;
    --upload-texture: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  }

  body.bg-dark .upload-card {
    --upload-bg: #2b2b3a;
    --upload-texture: none;
  }
  
   /* ---------------------------
     Gallery Modal
  ---------------------------- */
  .modal-content.bg-dark {
    background-color: #1e1e2f !important;
  }
  
  body.bg-light .modal-content.bg-dark {
    background-color: #fefefe !important;
    color: #111;
  }
  
  .card-body .card-text {
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  /* Default (dark mode) */
  #prev-btn,
  #next-btn {
    color: white !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    font-size: 2.5rem;
    z-index: 1050;
    cursor: pointer;
  }

  /* Light mode override */
  body.bg-light #prev-btn,
  body.bg-light #next-btn {
    color: #333 !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  }



  /* ---------------------------
     Mobile Responsiveness
  ---------------------------- */
  
  @media screen and (max-width: 600px) {
    .note {
      font-size: 1rem;
      padding: 12px;
      top: 3rem;
      max-width: 95vw;
      width: auto;
    }
  
    .flower {
      font-size: 2.2rem;
    }
  
    .close-note {
      top: 6px;
      right: 8px;
      font-size: 1.2rem;
    }
  }
  
  /* ---------------------------
     Advent Calendar Experience
  ---------------------------- */
  .advent-hero {
    background: linear-gradient(135deg, rgba(8, 30, 63, 0.95), rgba(74, 15, 66, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .advent-hero .hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.6;
  }

  .advent-hero .hero-video-bg video,
  .advent-hero .hero-video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05) brightness(0.8);
  }

  .advent-hero .hero-video-bg img {
    object-position: center 65%; /* shift upward to reveal more foreground */
  }

  .advent-hero > *:not(.hero-video-bg) {
    position: relative;
    z-index: 2;
  }
  
  .advent-wreath {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.0rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .wreath-candle {
    width: 14px;
    height: 44px;
    border-radius: 8px;
    position: relative;
    display: inline-block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
  }
  .wreath-candle::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 94, 0.9), rgba(255, 153, 0, 0.1));
    animation: candle-flicker 1.8s ease-in-out infinite;
  }
  
  @keyframes candle-flicker {
    0%, 100% { opacity: 0.7; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, -2px); }
  }
  
  .wreath-candle.hope { background: linear-gradient(180deg, #7d5fb2, #402c62); }
  .wreath-candle.joy { background: linear-gradient(180deg, #c65b8c, #7a2a4c); }
  
  .advent-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.75rem;
  }

  .advent-preview-alert {
    margin-top: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.15);
    color: #fff3cd;
    border: 1px solid rgba(255, 193, 7, 0.5);
  }
  
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    perspective: 1200px;
  }
  
  .calendar-door {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 140px;
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    transform-origin: left center;
    transform-style: preserve-3d;
  }
  
  .calendar-door:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }
  
  .calendar-door.today {
    border-color: #ffb347;
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.4);
  }
  
  .calendar-door.locked {
    opacity: 0.6;
    border-style: dashed;
    cursor: not-allowed;
  }
  
  .calendar-door.active {
    border-color: #8fd3fe;
    box-shadow: 0 0 25px rgba(143, 211, 254, 0.4);
  }

  .calendar-door.opening {
    animation: door-open 0.6s ease forwards;
  }

  @keyframes door-open {
    0% { transform: rotateY(0deg); box-shadow: 0 0 0 rgba(0,0,0,0); }
    45% { transform: rotateY(-28deg); box-shadow: 0 14px 24px rgba(0, 0, 0, 0.4); }
    100% { transform: rotateY(0deg); box-shadow: 0 0 0 rgba(0,0,0,0); }
  }

  .door-panel {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(24, 35, 64, 0.95), rgba(54, 21, 48, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f8f1e5;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.35);
    pointer-events: none;
  }

  .door-panel .panel-number {
    font-size: 1.8rem;
    font-weight: 700;
  }

  .door-panel .panel-status {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.35rem;
  }

  .calendar-door.available .door-panel {
    display: none;
  }
  
  .door-number {
    font-size: 1.4rem;
    font-weight: 700;
  }
  
  .door-label {
    display: block;
    margin-top: 0.25rem;
    font-weight: 600;
  }
  
  .door-theme {
    font-size: 0.85rem;
    opacity: 0.8;
  }
  
  .advent-detail-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
    min-height: 320px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.25);
  }
  
  .detail-invitation {
    border-color: rgba(255, 215, 141, 0.6);
  }

  .advent-manage-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .advent-day-list .list-group-item.active {
    background: linear-gradient(135deg, #8f67f6, #e072c0);
    border-color: transparent;
  }

  .advent-entry-form textarea,
  .advent-entry-form input,
  .advent-entry-form select {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
  }

  .advent-entry-form textarea:focus,
  .advent-entry-form input:focus,
  .advent-entry-form select:focus {
    border-color: #ffb347;
    box-shadow: 0 0 0 0.2rem rgba(255, 179, 71, 0.25);
  }
  
  @media (max-width: 992px) {
    .advent-layout {
      grid-template-columns: 1fr;
    }
    .advent-detail-card {
      order: -1;
    }
  }
  