/* clean_your_desk.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");
  --chaos-opacity: 0.15;
}

/* --- Global Texture & Dynamic Background --- */
body {
  background-color: var(--simple-bg);
  transition: background-color 0.8s ease;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  background-image: var(--paper-texture);
  z-index: -2;
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: radial-gradient(var(--simple-primary) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  opacity: var(--chaos-opacity);
  z-index: -1;
  pointer-events: none;
  transition: none;
  transform: translateZ(0);
}

/* --- 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;
}

@media (max-width: 768px) {
  .article-hero h1 {
    font-size: 2rem;
  }
}

.hero-icons {
  margin-top: 2rem;
  color: var(--simple-primary);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* --- Content Blocks --- */
.content-block {
  margin-bottom: 4rem;
  line-height: 2.2;
}

.content-block p {
  margin-bottom: 2rem;
  color: var(--simple-text);
}

.content-block h2 {
  font-family: "Kaisei Opti", serif;
  color: var(--simple-primary);
  font-size: 2.2rem;
  margin: 5rem 0 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(140, 153, 134, 0.15);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
}

.content-block h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--simple-accent);
}

.content-block h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--simple-text);
  font-size: 1.6rem;
  margin: 4rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 5px solid var(--simple-primary);
  padding-left: 1.5rem;
}

/* --- Steps --- */
.steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 4rem 0;
}

.step-box {
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  border: 1px solid rgba(140, 153, 134, 0.1);
  position: relative;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.step-box:hover {
  transform: translateY(-10px) rotateY(5deg) rotateX(2deg);
  box-shadow: 0 30px 60px rgba(140, 153, 134, 0.15);
  border-color: var(--simple-primary);
}

.step-box .step-label {
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--simple-primary);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(140, 153, 134, 0.3);
}

.category-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.tag-trash { background: #fee2e2; color: #dc2626; } /* Red */
.tag-maybe { background: #fef3c7; color: #d97706; } /* Amber */
.tag-need { background: #dcfce7; color: #16a34a; } /* Green */

/* --- Featured List (Grid) --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-item {
  background: var(--simple-secondary);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: #fff;
  border-color: var(--simple-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--simple-primary);
  margin-bottom: 1.5rem;
  display: block;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--simple-text);
  font-weight: 800;
}

/* --- Emphasis Quote --- */
.emphasis-quote {
  font-family: "Kaisei Opti", serif;
  font-size: 1.6rem;
  line-height: 2;
  text-align: center;
  padding: 5rem 3rem;
  margin: 6rem 0;
  background: #f9faf8;
  border-radius: 40px;
  position: relative;
  color: var(--simple-text);
}

.emphasis-quote i {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--simple-accent);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.quote-sub {
  display: block;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  opacity: 0.7;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.highlight-marker {
  background: linear-gradient(transparent 70%, rgba(201, 169, 110, 0.3) 70%);
  font-weight: 700;
}

/* --- Golden Zone Diagram --- */
.golden-zone-container {
  background: #fdfdfd;
  border-radius: 30px;
  padding: 3rem;
  margin: 3rem 0;
  border: 1px solid #f0f0f0;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desk-diagram {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1.6 / 1;
  background: #fff;
  border: 8px solid #eee;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.zone {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.4s ease;
  cursor: help;
}

.zone-golden {
  width: 50%;
  height: 80%;
  background: rgba(140, 153, 134, 0.15);
  border: 2px dashed var(--simple-primary);
  top: 10%;
  right: 5%;
  z-index: 3;
}

.zone-second {
  width: 80%;
  height: 60%;
  background: rgba(201, 169, 110, 0.1);
  border: 2px dashed var(--simple-accent);
  bottom: 5%;
  left: 5%;
  z-index: 2;
}

.zone:hover {
  transform: scale(1.05);
  background: rgba(140, 153, 134, 0.25);
}

.diagram-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 600px) {
  .diagram-legend {
    grid-template-columns: 1fr;
  }
  .golden-zone-container {
    padding: 1.5rem;
  }
}

.legend-item {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.dot-primary { background: var(--simple-primary); }
.dot-accent { background: var(--simple-accent); }

/* --- Paper Letter Style --- */
.paper-letter {
  background: #fffcf8 !important;
  background-image: 
    linear-gradient(#f0e9d2 1px, transparent 1px);
  background-size: 100% 3rem;
  padding: 4rem !important;
  border-radius: 10px !important;
  box-shadow: 2px 2px 0 #ddd, 4px 4px 0 #eee, 0 10px 30px rgba(0,0,0,0.05) !important;
  border: 1px solid #ede4c9 !important;
  position: relative;
}

.paper-letter::before {
  content: "";
  position: absolute;
  top: 0; left: 40px; width: 2px; height: 100%;
  background: rgba(220, 38, 38, 0.1);
}

.story-accent {
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  color: var(--simple-primary);
  font-style: italic;
  font-size: 1.2rem;
}

/* --- Text Glow Effect --- */
.glow-text {
  transition: all 1s ease;
  position: relative;
  display: inline-block;
}

.glow-text.is-visible {
  color: var(--simple-primary);
  text-shadow: 0 0 15px rgba(140, 153, 134, 0.4);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  from { text-shadow: 0 0 10px rgba(140, 153, 134, 0.2); }
  to { text-shadow: 0 0 25px rgba(140, 153, 134, 0.6); }
}

/* --- Golden Zone Diagram Interactive --- */
.golden-zone-container.is-focusing .legend-item {
  opacity: 0.3;
  filter: blur(1px);
  transition: all 0.4s ease;
}

.golden-zone-container.focus-primary .legend-item-primary,
.golden-zone-container.focus-accent .legend-item-accent {
  opacity: 1;
  filter: blur(0);
  transform: scale(1.05);
}

.zone {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 5;
}

.zone:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(140, 153, 134, 0.3);
}

/* ==========================================
   PREMIUM VIDEO THEATER (SUMMARY)
   ========================================== */
.movie-summary-section {
  background: linear-gradient(to bottom, #ffffff, rgba(140, 153, 134, 0.05));
  border: 1px solid rgba(140, 153, 134, 0.1);
  padding: 4rem 2rem;
  border-radius: 30px;
  margin-top: 6rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.movie-summary-section h3 {
  color: var(--simple-primary);
  font-family: "Kaisei Opti", serif;
  font-size: 2.2rem;
  margin: 0 0 2rem 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.video-theater-container {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  border-radius: 24px;
  background: #1a1a1a;
  padding: 15px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.4s ease;
}

.video-theater-container:hover {
  transform: translateY(-5px);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  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.35);
  backdrop-filter: blur(3px);
}

.video-replay-overlay {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(8px);
}

.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: 90px;
  height: 90px;
  background: var(--simple-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.5);
  position: relative;
}

.play-circle i {
  color: white;
  font-size: 2.8rem;
  margin-left: 8px;
}

.play-circle::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--simple-accent);
  border-radius: 50%;
  animation: videoPulse 2s infinite;
}

@keyframes videoPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.play-text {
  color: white;
  margin-top: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  font-family: "Outfit", sans-serif;
}

.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;
  opacity: 0.8;
}

.play-trigger, .replay-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.replay-trigger i {
  font-size: 3.5rem;
  color: var(--simple-accent);
  margin-bottom: 1rem;
}

.replay-trigger span {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* --- Cinema Mode (Video Modal) Styling --- */
body.cinema-mode {
  overflow: hidden;
}

.cinema-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  animation: fadeInBackdrop 0.4s ease forwards;
}

@keyframes fadeInBackdrop {
  to { opacity: 1; }
}

.video-theater-container.cinema-active {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  max-width: 1100px;
  z-index: 10000;
  margin: 0; padding: 0;
  border-radius: 15px;
  background: #000;
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.9);
}

.video-theater-container.cinema-active::after {
  content: "× CLOSE";
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 1rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .play-circle { width: 70px; height: 70px; }
  .play-circle i { font-size: 2.2rem; }
  .video-theater-container.cinema-active { width: 95vw; }
}

/* --- Flap Card (Flip Card) --- */
.flap-card-section {
  margin: 5rem 0;
  display: flex;
  justify-content: center;
}

.flap-card-container {
  perspective: 1200px;
  width: 100%;
  max-width: 450px;
  height: 320px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .flap-card-container {
    height: 380px;
  }
}

.flap-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flap-card-container:hover .flap-card {
  transform: rotateY(180deg);
}

.flap-front, .flap-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.flap-front {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--simple-text);
  border: 1px solid rgba(0,0,0,0.05);
}

.flap-back {
  background: linear-gradient(135deg, var(--simple-primary) 0%, #aab7a4 100%);
  color: #fff;
  transform: rotateY(180deg);
}

.flap-card i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.flap-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: "Kaisei Opti", serif;
}

.flap-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

.hint-badge {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--simple-accent);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}

/* Sidebar Advice Styling */
.sidebar-advice {
  background: #fffcf8 !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(201, 169, 110, 0.2) !important;
  position: relative;
  font-family: "Zen Maru Gothic", sans-serif;
}

.sidebar-advice::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(201, 169, 110, 0.4);
  pointer-events: none;
}

.sidebar-advice .header {
  color: var(--simple-accent) !important;
  font-size: 1.1rem !important;
  margin-bottom: 1.5rem !important;
  justify-content: center;
}

.page-nav-3btn {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #ebebeb;
}
