/* living_with_good_items.css - Premium Simple Life Design */

:root {
  --simple-primary: #8c9986; /* Sage Green */
  --simple-secondary: #f4f5f3; /* Soft Light Gray */
  --simple-accent: #c9a96e; /* Gold/Brass for accents */
  --simple-text: #444b40; /* Deep Moss Green for text */
  --simple-bg: #ffffff;
  --simple-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* --- Global Texture --- */
body {
  background-color: var(--simple-bg);
  background-image: var(--paper-texture);
}

/* --- Hero Area --- */
.article-hero {
  background: var(--simple-gradient);
  padding: 6rem 2rem;
  border-radius: 40px;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(140, 153, 134, 0.1);
}

.article-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(140, 153, 134, 0.08) 0%,
    transparent 60%
  );
  animation: rotateHero 25s linear infinite;
  z-index: 0;
}

@keyframes rotateHero {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.article-hero .hero-inner {
  position: relative;
  z-index: 2;
}

/* --- Hero Particles --- */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--simple-accent);
  border-radius: 50%;
  opacity: 0.2;
  animation: floatParticle linear infinite;
}

.p1 { width: 6px; height: 6px; left: 10%; top: 20%; animation-duration: 15s; }
.p2 { width: 4px; height: 4px; left: 80%; top: 40%; animation-duration: 25s; animation-delay: -5s; }
.p3 { width: 8px; height: 8px; left: 30%; top: 70%; animation-duration: 20s; animation-delay: -2s; }
.p4 { width: 5px; height: 5px; left: 70%; top: 80%; animation-duration: 18s; animation-delay: -10s; }
.p5 { width: 7px; height: 7px; left: 50%; top: 30%; animation-duration: 22s; animation-delay: -7s; }

@keyframes floatParticle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.article-hero .sub-title {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: rgba(140, 153, 134, 0.15);
  color: var(--simple-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article-hero h1 {
  font-size: 3.2rem;
  color: var(--simple-text);
  font-family: "Kaisei Opti", serif;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.hero-icons {
  margin-top: 2rem;
  color: var(--simple-primary);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .article-hero { padding: 4rem 1rem; }
  .article-hero h1 { font-size: 2rem; }
}

.lead-text {
  font-size: 1.25rem;
  color: var(--simple-primary);
  font-weight: bold;
  text-align: center;
  margin-bottom: 4rem;
  line-height: 2;
}

#checker-result {
  display: none;
}

/* --- Content Blocks & Spacing --- */
.content-block {
  margin-bottom: 5rem;
}

.content-block h2 {
  font-family: "Kaisei Opti", serif;
  color: var(--simple-primary);
  font-size: 1.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1.5px solid rgba(140, 153, 134, 0.15);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  line-height: 1.4;
}

.content-block h2 i {
  font-size: 1.5rem;
  color: var(--simple-accent);
  opacity: 0.8;
}

.content-block h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--simple-text);
  font-size: 1.5rem;
  margin: 3.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-left: 4px solid var(--simple-accent);
  padding-left: 1.2rem;
}

.content-block p {
  line-height: 2.2;
  margin-bottom: 1.8rem;
  color: #4a4a4a;
}

/* --- Quote Emphasis --- */
.emphasis-quote {
  font-size: 1.35rem;
  line-height: 2.1;
  color: var(--simple-text);
  font-family: "Kaisei Opti", serif;
  text-align: center;
  padding: 4.5rem 3.5rem;
  margin: 6rem 0;
  border-radius: 35px;
  background: #fcfdfb;
  position: relative;
  box-shadow: 0 10px 40px rgba(140, 153, 134, 0.06);
}

.emphasis-quote::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(140, 153, 134, 0.1);
  border-radius: 28px;
  pointer-events: none;
}

.emphasis-quote i.fa-quote-left {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 70px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--simple-accent);
  font-size: 2.5rem;
}

/* --- Philosophy Box --- */
.philosophy-box {
  background: var(--simple-gradient);
  border-radius: 40px;
  padding: 5rem 3rem;
  text-align: center;
  margin: 6rem 0;
  border: 1px solid rgba(140, 153, 134, 0.15);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
}

.philosophy-box i.fa-lightbulb {
  font-size: 4rem;
  color: var(--simple-accent);
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 15px rgba(201, 169, 110, 0.3));
}

/* --- Experience Cards (Interactive Units) --- */
.experience-card {
  margin: 6rem 0;
  perspective: 1200px;
}

.card-inner {
  background: #fff;
  border-radius: 40px;
  padding: 4rem;
  border: 1px solid rgba(140, 153, 134, 0.15);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  background-image: var(--paper-texture);
}

.card-inner::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px dashed rgba(201, 169, 110, 0.15);
  border-radius: 30px;
  pointer-events: none;
}

.exp-header {
  font-family: "Kaisei Opti", serif;
  font-size: 1.6rem;
  color: var(--simple-accent);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
}

.exp-intro, .exp-desc {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Checker */
.checker-body { text-align: center; }
#checker-question { 
  font-size: 1.3rem; 
  font-weight: 700; 
  margin-bottom: 3rem; 
  min-height: 4rem;
}
.checker-actions { display: flex; justify-content: center; gap: 2rem; }
.exp-btn-choice {
  padding: 15px 50px;
  border-radius: 40px;
  border: 1px solid var(--simple-primary);
  background: transparent;
  color: var(--simple-primary);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.exp-btn-choice:hover { background: var(--simple-primary); color: #fff; }
#checker-result { text-align: center; padding: 2rem; animation: fadeIn 0.8s; }
.exp-btn-retry { margin-top: 2rem; color: var(--simple-accent); background: none; border: none; text-decoration: underline; cursor: pointer; }

/* Puzzle */
.puzzle-area { display: flex; justify-content: space-around; align-items: center; margin: 4rem 0; gap: 2rem; flex-wrap: wrap; }
.messy-items { 
  width: 250px; height: 200px; background: rgba(0,0,0,0.03); border-radius: 20px; 
  display: flex; flex-wrap: wrap; gap: 15px; padding: 25px; align-items: center; justify-content: center;
}
.noise-item { 
  padding: 10px 20px; background: #fff; border: 1px solid #ddd; border-radius: 8px; 
  cursor: grab; font-size: 0.9rem; box-shadow: 3px 3px 10px rgba(0,0,0,0.05);
}
.basket-box {
  width: 280px; height: 280px; border: 2px dashed var(--simple-primary); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(140, 153, 134, 0.03); transition: 0.3s;
}
.basket-box.drag-over { background: rgba(140, 153, 134, 0.1); transform: scale(1.05); }
.basket-icon { font-size: 5rem; color: var(--simple-primary); margin-bottom: 1rem; }
.exp-hint { text-align: center; color: #999; font-size: 0.85rem; }

/* Simulator */
.sim-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.sim-preview { background: #fff; padding: 15px; border-radius: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.preview-mock { height: 300px; border-radius: 15px; position: relative; overflow: hidden; background: #eee; }
.mock-shelf { 
  width: 100%; height: 100%; background: url('../../images/living_room_sample.png') no-repeat center/cover; 
  filter: grayscale(0.5); transition: 0.5s;
}
/* Fallback if image not found */
.mock-shelf { background-color: #dcdcdc; }

.mock-light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; transition: 0.5s; }
.ctrl-group { margin-bottom: 2.5rem; }
.ctrl-group label { display: block; margin-bottom: 1rem; font-weight: 700; color: #555; }
.sim-slider { width: 100%; height: 6px; -webkit-appearance: none; background: #eee; border-radius: 3px; outline: none; }
.sim-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--simple-accent); border-radius: 50%; cursor: pointer; }

/* Timer */
.timer-body { text-align: center; }
.timer-display { font-size: 6rem; font-weight: 800; color: var(--simple-accent); margin: 3rem 0; font-family: "Outfit", sans-serif; }
#start-btn { 
  padding: 15px 45px; background: var(--simple-primary); color: #fff; border: none; border-radius: 40px; 
  font-weight: 700; cursor: pointer; box-shadow: 0 10px 25px rgba(140, 153, 134, 0.3);
}
.silence-fullscreen {
  position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; flex-direction: column; 
  align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.silence-fullscreen.active { opacity: 1; visibility: visible; }
.zen-circle { width: 300px; height: 300px; border: 1px solid var(--simple-accent); border-radius: 50%; animation: zenBreath 5s infinite ease-in-out; }
@keyframes zenBreath { 0%, 100% { transform: scale(0.85); opacity: 0.2; } 50% { transform: scale(1.1); opacity: 0.6; } }

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

/* --- Extra Section Styles (Extracted from Inline) --- */
.video-section-inner {
  display: flex;
  flex-direction: column;
}

.video-section-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  border-bottom: none !important;
  margin-bottom: 2.5rem !important;
  font-family: "Kaisei Opti", serif;
  color: var(--simple-accent);
}

.video-section-title i {
  color: var(--simple-accent);
  opacity: 0.8;
}

.final-summary {
  max-width: 800px;
  margin: 6rem auto 4rem;
  line-height: 2.2;
  font-size: 1.15rem;
  color: #555;
  text-align: center;
  border-top: 1px solid rgba(140, 153, 134, 0.2);
  padding-top: 4rem;
}

.article-footer {
  margin-top: 6rem;
}

.cta-philosophy {
  background: var(--simple-gradient);
  border-radius: 40px;
  padding: 5rem 3rem;
  text-align: center;
  border: 1px solid rgba(140, 153, 134, 0.15);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
}

.cta-philosophy i {
  font-size: 4rem;
  color: var(--simple-accent);
  margin-bottom: 2.5rem;
}

.cta-philosophy h3 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-family: 'Kaisei Opti', serif;
  color: var(--simple-text);
}

.cta-philosophy p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a4a4a;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.nav-btn-prev, .nav-btn-home {
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.nav-btn-prev {
  color: #666;
}

.nav-btn-prev:hover {
  color: var(--simple-primary);
}

.nav-btn-home {
  background: var(--simple-primary);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(140, 153, 134, 0.2);
}

.nav-btn-home:hover {
  background: #7a8874;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 153, 134, 0.3);
}

/* Sidebar Specifics */
.sidebar-advice-card {
  background: #fffcf8;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px dashed var(--simple-accent);
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.sidebar-advice-card .card-header {
  color: var(--simple-accent);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'Kaisei Opti', serif;
  font-size: 1.1rem;
}

.sidebar-advice-card p {
  font-size: 0.95rem;
  line-height: 2;
  color: #555;
}

.sidebar-title {
  font-size: 1.25rem;
  font-family: 'Kaisei Opti', serif;
  margin-bottom: 1.5rem;
  color: var(--simple-primary);
  border-left: 4px solid var(--simple-accent);
  padding-left: 1rem;
}

.recommendations-list {
  list-style: none;
  padding: 0;
}

.recommendations-list li {
  margin-bottom: 1.2rem;
}

.recommendations-list a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.recommendations-list a:hover {
  color: var(--simple-primary);
}

.accent-icon { color: #8C9986; }
.blue-icon { color: #557A95; }
.red-icon { color: #BF877A; }

/* --- Nav Buttons --- */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.list-btn:hover {
  background: #7a8874 !important;
}

/* --- Scroll Highlight Marker --- */
.scroll-marker {
  background: linear-gradient(120deg, rgba(201, 169, 110, 0.25) 0%, rgba(201, 169, 110, 0.25) 100%);
  background-repeat: no-repeat;
  background-size: 0% 12px;
  background-position: 0 88%;
  transition: background-size 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0 3px;
  display: inline;
}

.scroll-marker.is-active {
  background-size: 100% 12px;
}

.movie-summary-section .card-inner {
  border: none !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04); /* More subtle shadow since border is gone */
}

.movie-summary-section .card-inner::before {
  display: none !important;
}

.video-theater-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 20px;
  background: #1a1a1a;
  padding: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s;
}

.video-theater-container:hover {
  transform: translateY(-5px);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
}

.video-frame video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}

.video-overlay, .video-replay-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all 0.4s ease;
}

.video-overlay { background: rgba(0, 0, 0, 0.4); }
.video-replay-overlay { background: rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; backdrop-filter: blur(5px); }

.video-theater-container.is-playing .video-overlay { opacity: 0; visibility: hidden; }
.video-theater-container.is-finished .video-replay-overlay { opacity: 1; visibility: visible; }

.play-circle {
  width: 80px; height: 80px; background: var(--simple-accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.6); position: relative;
}

.play-circle i { color: white; font-size: 2.5rem; margin-left: 5px; }

.play-circle::after {
  content: ""; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
  border: 2px solid var(--simple-accent); border-radius: 50%; animation: pulseVideo 2s infinite;
}

@keyframes pulseVideo { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.video-title-label {
  color: #fff;
  padding: 1.2rem 0.5rem 0.5rem;
  font-size: 1.1rem;
  font-family: "Kaisei Opti", serif;
  text-align: left;
  letter-spacing: 0.05em;
}

.play-text { color: white; margin-top: 1.5rem; font-weight: 700; letter-spacing: 0.15em; font-family: "Kaisei Opti", serif; }
.play-trigger { display: flex; flex-direction: column; align-items: center; }

/* Cinema Mode */
body.cinema-mode { overflow: hidden; }

.cinema-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px); z-index: 9998; opacity: 0;
  animation: fadeInBackdrop 0.5s forwards;
}

@keyframes fadeInBackdrop { to { opacity: 1; } }

.video-theater-container.cinema-active {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90vw; max-width: 1000px; z-index: 10000; margin: 0; padding: 0;
  background: #000; box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

.video-theater-container.cinema-active::after {
  content: "× CLOSE";
  position: absolute; top: -40px; right: 0; color: #fff;
  font-weight: 700; font-size: 0.9rem; opacity: 0.7;
}

.replay-trigger { text-align: center; color: var(--simple-accent); }
.replay-trigger i { font-size: 3rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .video-theater-container { margin: 1rem; padding: 10px; }
  .play-circle { width: 60px; height: 60px; }
  .play-circle i { font-size: 1.8rem; }
}

/* --- Responsive Sidebar --- */
@media (max-width: 1024px) {
  .layout-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 5rem;
  }
}
