/* ============================== */
/* SCROLLBAR */
/* ============================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 240, 230, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4a5a5 0%, #b8938f 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c49393 0%, #a67d7a 100%);
}

/* ============================== */
/* BODY & BACKGROUND */
/* ============================== */

body {
  margin: 0;
  padding: 0;
  font-family: 'Crimson Text', serif;
  background-color: black;
  background-image: url('imagespoetry/poetrybg.jpg');
  background-size: 28%;
  background-position: right;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

/* Soft overlay for dreamier effect }*/
/* body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, rgba(240, 240, 245, 0.3) 100%);
  z-index: -1;
  pointer-events: none;
}*/

/* ============================== */
/* HEADER - MINIMAL & ELEGANT */
/* ============================== */
.poetry-header {
  text-align: center;
  padding: 40px 20px 30px 20px;
  background: transparent;
  border-bottom: none;
  position: relative;
  z-index: 50;
}

.poetry-header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 72px;
  font-weight: 600;
  color: #5a4a42;
  letter-spacing: 2px;
  margin: 0 0 25px 0;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* Navigation - handwritten style */
.simple-nav {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline-block;
  opacity: 1;
}

.simple-nav a {
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  font-weight: 500;
  color: #6b5b54;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: lowercase;
  margin: 0 20px;
  transition: all 0.3s ease;
  position: relative;
}

.simple-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4a5a5, #b8938f);
  transition: width 0.3s ease;
}

.simple-nav a:hover {
  color: #8b6f66;
  border-bottom: none;
}

.simple-nav a:hover::after {
  width: 100%;
}

/* ============================== */
/* POSTCARDS CONTAINER - SCATTERED AESTHETIC */
/* ============================== */
.postcards-container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 60px 100px 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

/* ============================== */
/* POSTCARD BASE - HANDWRITTEN NOTES STYLE */
/* ============================== */
.postcard {
  width: 320px;
  min-height: 280px;
  border-radius: 3px;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: visible;
  transform: rotate(var(--rotation, 0deg));
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.postcard::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 15px;
  background: rgba(210, 180, 160, 0.4);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.postcard:hover {
  transform: rotate(var(--rotation, 0deg)) translateY(-8px) scale(1.03);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ============================== */
/* POSTCARD CONTENT */
/* ============================== */
.postcard-content {
  z-index: 2;
  position: relative;
}

.postcard-title {
  font-family: 'Dancing Script', cursive;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.postcard-date {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.5px;
  opacity: 0.75;
}

.postcard-language {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 14px;
  margin: 5px 0 0 0;
  letter-spacing: 0.5px;
  opacity: 0.65;
  font-style: italic;
}

/* ============================== */
/* POSTCARD STYLE VARIATIONS - WATERCOLOR INSPIRED */
/* ============================== */

/* Style 1: Soft lavender */
.postcard-style-1 {
  background: linear-gradient(135deg, #f5ebf5 0%, #ede4f0 100%);
  color: #5a4a5a;
  --rotation: -3deg;
}

.postcard-style-1::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(200, 180, 220, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Style 2: Peachy pink */
.postcard-style-2 {
  background: linear-gradient(135deg, #fef0e8 0%, #f5e8e0 100%);
  color: #5a4842;
  --rotation: 2deg;
}

.postcard-style-2::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(240, 180, 160, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* Style 3: Mint green */
.postcard-style-3 {
  background: linear-gradient(135deg, #eef5f0 0%, #e5f0ea 100%);
  color: #4a5a4a;
  --rotation: -1deg;
}

.postcard-style-3::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(160, 200, 180, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Style 4: Dusty rose */
.postcard-style-4 {
  background: linear-gradient(135deg, #f7eff0 0%, #f0e7e9 100%);
  color: #5a4650;
  --rotation: 3deg;
}

.postcard-style-4::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: radial-gradient(circle, rgba(220, 170, 180, 0.14) 0%, transparent 70%);
  border-radius: 50%;
}

/* Style 5: Cream yellow */
.postcard-style-5 {
  background: linear-gradient(135deg, #fef8ed 0%, #f5f0e5 100%);
  color: #5a5242;
  --rotation: -2deg;
}

.postcard-style-5::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 65px;
  height: 65px;
  background: radial-gradient(circle, rgba(230, 200, 140, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* ============================== */
/* POEM MODAL */
/* ============================== */
.poem-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(90, 75, 70, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 30px;
  overflow-y: auto;
  animation: fadeIn 0.4s ease;
}

.poem-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================== */
/* VINTAGE PAPER - JOURNAL PAGE STYLE */
/* ============================== */
.poem-paper {
  position: relative;
  width: 100%;
  max-width: 950px;
  background: 
    linear-gradient(135deg, #fdfaf5 0%, #f8f3ed 50%, #f5f0e8 100%);
  padding: 70px 60px 70px 90px;  /* Changed from: padding: 70px 60px; */
  border-radius: 3px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.05);
  border: 2px solid #e8ddd0;
  animation: slideUp 0.5s ease;
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Notebook lines effect */
.poem-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 60px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(220, 180, 160, 0.3) 2%, 
    rgba(220, 180, 160, 0.3) 98%, 
    transparent 100%);
  pointer-events: none;
}

/* Aged paper stains */
.poem-paper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 8% 8%, rgba(210, 180, 150, 0.08) 0%, transparent 25%),
    radial-gradient(ellipse at 92% 12%, rgba(200, 170, 160, 0.06) 0%, transparent 20%),
    radial-gradient(ellipse at 95% 90%, rgba(220, 190, 170, 0.07) 0%, transparent 22%);
  pointer-events: none;
  border-radius: 3px;
}

/* ============================== */
/* POEM DISPLAY */
/* ============================== */
.poem-display {
  position: relative;
  z-index: 2;
  text-align: center;
}

.poem-title {
  font-family: 'Dancing Script', cursive;
  font-size: 48px;
  font-weight: 700;
  color: #5a4a42;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.poem-date {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 18px;
  color: #8b7564;
  letter-spacing: 1px;
  margin: 0 0 40px 0;
  display: block;
  border-bottom: 2px dashed rgba(210, 180, 160, 0.4);
  padding-bottom: 25px;
}

.poem-text {
  font-family: 'Crimson Text', serif;
  font-size: 20px;
  font-style: italic;
  color: #4a3f38;
  line-height: 2;
  text-align: center;
  margin: 0;
  white-space: pre-wrap;
}

/* Multi-column layout for long poems */
.poem-text.long-poem {
  column-count: 2;
  column-gap: 60px;
  column-rule: 2px dashed rgba(210, 180, 160, 0.3);
  text-align: left;
}

.poem-text.very-long-poem {
  column-count: 3;
  column-gap: 50px;
  column-rule: 2px dashed rgba(210, 180, 160, 0.3);
  text-align: left;
}

/* ============================== */
/* CLOSE BUTTON */
/* ============================== */
.close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  background: rgba(255, 250, 245, 0.9);
  border: 2px solid #d4a5a5;
  font-size: 28px;
  color: #8b6f66;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
  color: #5a4a42;
  background: rgba(255, 250, 245, 1);
  border-color: #b8938f;
  transform: scale(1.15) rotate(90deg);
}

/* ============================== */
/* RESPONSIVE DESIGN */
/* ============================== */
@media (max-width: 1024px) {
  .postcards-container {
    gap: 35px;
    padding: 60px 40px 80px 40px;
  }

  .postcard {
    width: 300px;
    min-height: 260px;
  }

  .postcard-title {
    font-size: 32px;
  }

  .postcard-date {
    font-size: 17px;
  }

  .postcard-language {
    font-size: 15px;
  }

  .poem-paper {
    max-width: 800px;
    padding: 60px 50px 60px 80px;
  }

  .poem-text.long-poem,
  .poem-text.very-long-poem {
    column-count: 2;
    column-gap: 50px;
  }
}

@media (max-width: 768px) {
  .poetry-header h1 {
    font-size: 56px;
  }

  .simple-nav a {
    font-size: 20px;
    margin: 0 12px;
  }

  .postcards-container {
    gap: 30px;
    padding: 50px 30px 70px 30px;
    margin: 60px auto;
  }

  .postcard {
    width: 280px;
    min-height: 240px;
    padding: 30px 25px;
  }

  .postcard-title {
    font-size: 30px;
  }

  .postcard-date {
    font-size: 16px;
  }

  .postcard-language {
    font-size: 14px;
  }

  .poem-modal {
    padding: 20px;
  }

  .poem-paper {
    max-width: 95%;
    padding: 50px 35px 50px 70px;
  }

  .poem-title {
    font-size: 38px;
  }

  .poem-text {
    font-size: 18px;
    line-height: 1.9;
  }

  .poem-text.long-poem,
  .poem-text.very-long-poem {
    column-count: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .poetry-header {
    padding: 30px 15px 25px 15px;
  }

  .poetry-header h1 {
    font-size: 44px;
  }

  .simple-nav a {
    font-size: 18px;
    margin: 0 10px;
  }

  .postcards-container {
    gap: 25px;
    padding: 40px 20px 60px 20px;
    margin: 40px auto;
  }

  .postcard {
    width: 100%;
    max-width: 320px;
    min-height: 220px;
    padding: 28px 22px;
  }

  .postcard-title {
    font-size: 28px;
  }

  .postcard-date {
    font-size: 15px;
  }

  .postcard-language {
    font-size: 13px;
  }

  .poem-modal {
    padding: 15px;
    align-items: flex-start;
    padding-top: 60px;
  }

  .poem-paper {
    max-width: 100%;
    padding: 40px 25px 40px 60px;
  }

  .poem-title {
    font-size: 32px;
  }

  .poem-text {
    font-size: 17px;
    line-height: 1.8;
  }

  .close-btn {
    top: 15px;
    right: 15px;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
}