@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Special+Elite&family=Courier+Prime:wght@400;700&family=IM+Fell+English:ital@0;1&display=swap');

/* ══════════════════════════════════════════
   VARIABLES
   ══════════════════════════════════════════ */
:root {
  --bg:          #f0ebe0;
  --bg2:         #e8e2d4;
  --panel-bg:    #f5f1e8;
  --panel-bg2:   #edeae0;
  --border:      #b8b09a;
  --border-dark: #8a8070;
  --green:       #4a6a3a;
  --green-light: #7a9a6a;
  --green-pale:  #d4e4c8;
  --text:        #3a3428;
  --text-soft:   #6a6050;
  --tape-pink:   rgba(220, 170, 170, 0.45);
  --tape-green:  rgba(170, 200, 160, 0.4);
  --tape-beige:  rgba(200, 185, 155, 0.5);
  --window-bar:  #d8d4c8;
  --tag-bg:      #dde8cc;
  --tag-border:  #a8c088;
  --heart:       #c08080;
}

/* ══════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
  min-height: 100vh;
  /* Subtle paper texture via CSS */
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(200,190,165,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(180,200,160,0.12) 0%, transparent 55%);
}

/* ══════════════════════════════════════════
   OUTER FRAME
   ══════════════════════════════════════════ */
.page-frame {
  max-width: 1300px;
  margin: 24px auto;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px 36px;
  position: relative;
  box-shadow:
    0 2px 0 var(--border-dark),
    4px 6px 24px rgba(100,90,70,0.13);
}

/* corner decorative dots */
.page-frame::before,
.page-frame::after {
  content: '✿';
  position: absolute;
  color: var(--green-light);
  font-size: 18px;
  opacity: 0.4;
}
.page-frame::before { top: 10px; left: 18px; }
.page-frame::after  { bottom: 10px; right: 18px; }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.fr-header {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 16px;
  align-items: start;
  margin-bottom: 28px;
  min-height: 220px;
}

/* Left decorative cluster */
.header-left {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}

.deco-flowers-left {
  width: 180px;
  height: 190px;
  background: var(--panel-bg2);
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  position: relative;
  opacity: 0.85;
}

.deco-heart {
  position: absolute;
  bottom: 24px;
  left: 10px;
  font-size: 26px;
  color: var(--heart);
  filter: drop-shadow(1px 1px 2px rgba(150,80,80,0.3));
}

.tape-strip {
  position: absolute;
  padding: 3px 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--text-soft);
  border-radius: 2px;
  transform-origin: center;
  letter-spacing: 0.5px;
}
.tape-pink   { background: var(--tape-pink); }
.tape-green  { background: var(--tape-green); }
.tape-beige  { background: var(--tape-beige); }

.tape-grow {
  bottom: 32px;
  right: -10px;
  transform: rotate(-8deg);
  border: 1px solid rgba(180,140,140,0.3);
  text-align: center;
  line-height: 1.4;
  font-style: italic;
}

/* Center title */
.header-center {
  text-align: center;
  padding-top: 8px;
  position: relative;
}

.fr-title {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 1px 2px 4px rgba(60,80,40,0.1);
}

.fr-subtitle {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

/* heart deco behind title */
.header-heart-bg {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  color: var(--green-pale);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.header-center > *:not(.header-heart-bg) { position: relative; z-index: 1; }

/* Vine/branch divider */
.vine-divider {
  font-size: 18px;
  color: var(--green-light);
  letter-spacing: 4px;
  opacity: 0.7;
  margin: 6px 0;
}

/* sparkles */
.sparkles {
  font-size: 14px;
  color: var(--green);
  opacity: 0.6;
  letter-spacing: 8px;
}

/* Right side: notes window + photo */
.header-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.photo-placeholder-header {
  width: 155px;
  height: 145px;
  background: var(--panel-bg2);
  border: 2px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-soft);
  text-align: center;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.07);
  position: relative;
}
/* paper clip deco */
.photo-placeholder-header::before {
  content: '📎';
  position: absolute;
  top: -14px;
  right: 16px;
  font-size: 18px;
  opacity: 0.6;
}

/* ══════════════════════════════════════════
   WINDOW COMPONENT (OS retro style)
   ══════════════════════════════════════════ */
.win {
  background: var(--panel-bg);
  border: 1.5px solid var(--border);
  border-radius: 6px 6px 4px 4px;
  box-shadow: 2px 3px 8px rgba(100,90,70,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.win-bar {
  background: var(--window-bar);
  border-bottom: 1.5px solid var(--border);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--text-soft);
}

.win-icon { font-size: 12px; }

.win-title { flex: 1; }

.win-btns {
  display: flex;
  gap: 3px;
  font-size: 9px;
  color: var(--text-soft);
}
.win-btns span {
  border: 1px solid var(--border);
  padding: 0 3px;
  background: var(--panel-bg);
  cursor: default;
  line-height: 1.4;
}

.win-body {
  padding: 10px 12px;
  flex: 1;
  position: relative;
}

/* Notes window specifically */
.notes-win {
  width: 220px;
}
.notes-win .win-body {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-soft);
  background: #faf8f2;
  /* lined paper lines */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 21px,
    rgba(180,170,140,0.2) 21px,
    rgba(180,170,140,0.2) 22px
  );
  min-height: 90px;
}
.notes-win .win-body::after {
  content: '❋';
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 14px;
  color: var(--green-light);
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   MAIN CONTENT GRID
   ══════════════════════════════════════════ */
.fr-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}

/* Cards area */
.cards-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Each column: flor + piedra */
.card-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* Star sticker on some columns */
.card-col::before {
  content: attr(data-sticker);
  position: absolute;
  top: -14px;
  right: 6px;
  font-size: 18px;
  opacity: 0.7;
  z-index: 10;
  pointer-events: none;
}

/* Flor card */
.card-flor {
  flex: 0 0 auto;
  height: 248px;
  overflow: hidden;
}

.card-flor .win-bar { background: #dde8cc; border-color: #b0c898; }
.card-flor .win-bar .win-icon { color: var(--green); }

.card-flor .win-body {
  background: #faf8f2;
  height: 220px;
  overflow: hidden;
}

/* Piedra card */
.card-piedra {
  flex: 0 0 auto;
  height: 248px;
  overflow: hidden;
}

.card-piedra .win-bar { background: #d8e8f4; border-color: #90b8d8; }
.card-piedra .win-bar .win-icon { color: #4a80a8; }

.card-piedra .win-body {
  background: #f4f8fc;
  height: 220px;
  overflow: hidden;
}

/* Image placeholder inside cards */
.card-img-placeholder {
  width: 90px;
  height: 90px;
  background: var(--panel-bg2);
  border: 1px dashed var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text-soft);
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.card-img-placeholder.large {
  width: 90px;
  height: 90px;
}

/* win-body en cards: columna vertical */
.card-flor .win-body,
.card-piedra .win-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Tag label */
.card-tag {
  display: inline-block;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 2px;
  padding: 2px 8px;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--green);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.card-tag-stone {
  background: #daeaf6;
  border-color: #90b8d8;
  color: #3a6a90;
}

/* Card description text */
.card-desc {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Heart like button */
.card-heart {
  text-align: right;
  margin-top: 6px;
  font-size: 14px;
  color: var(--border);
  opacity: 0.7;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}
.card-heart:hover { color: var(--heart); opacity: 1; }

/* Small sparkle decoration inside cards */
.card-sparkle {
  position: absolute;
  font-size: 12px;
  color: var(--green-light);
  opacity: 0.5;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   RIGHT SIDEBAR
   ══════════════════════════════════════════ */
.fr-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Now playing */
.now-playing-win {
  width: 100%;
}
.now-playing-win .win-bar { background: #d8e4cc; border-color: #a8c090; }

.np-content {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.np-album {
  width: 42px;
  height: 42px;
  background: var(--panel-bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-soft);
  text-align: center;
  flex-shrink: 0;
}

.np-info { font-size: 11px; line-height: 1.6; color: var(--text); }
.np-artist { color: var(--text-soft); font-size: 10px; }

.np-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.np-controls .play { color: var(--green); font-size: 16px; }

.np-bar {
  width: 100%;
  height: 4px;
  background: var(--panel-bg2);
  border-radius: 2px;
  overflow: hidden;
}
.np-bar-fill {
  width: 35%;
  height: 100%;
  background: var(--green-light);
  border-radius: 2px;
}

/* Sticky note */
.sticky-note {
  background: #ede8d8;
  border: 1px solid #cec8b4;
  border-radius: 2px;
  padding: 12px 14px;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  line-height: 1.85;
  color: var(--text-soft);
  position: relative;
  box-shadow: 2px 3px 6px rgba(100,90,70,0.1);
}
.sticky-note::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tape-beige);
  border-bottom: 1px solid rgba(160,150,120,0.3);
}

/* Flowers deco right */
.sidebar-deco {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
}

.sidebar-flower-img {
  width: 60px;
  height: 70px;
  background: var(--panel-bg2);
  border: 1px dashed var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-soft);
  text-align: center;
}

/* Links i love */
.links-box {
  background: #faf8f2;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
}

.links-box-title {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.links-box a {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--green);
  text-decoration: none;
  padding: 1px 0;
  line-height: 1.8;
}
.links-box a::before { content: '♡ '; color: var(--heart); }
.links-box a:hover { text-decoration: underline; }

.leaf-deco-sb {
  text-align: right;
  font-size: 20px;
  margin-top: 4px;
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   FOOTER BUTTON
   ══════════════════════════════════════════ */
.fr-footer {
  text-align: center;
  margin-top: 30px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 32px;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 2px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 2px 3px 0 var(--border);
}
.back-btn:hover {
  background: var(--green-pale);
  box-shadow: 1px 2px 0 var(--border-dark);
}

/*tamaño imagenes*/
.card-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 6px;
}
.back-btn .btn-icon { font-size: 16px; }