/* ==========================================================================
   SCRAPBOOK / COLLAGE DESIGN SYSTEM
   ========================================================================== */
:root {
  --bg-dark: #121316;
  --paper-cream: #f4ebd9;
  --paper-white: #fefefe;
  --paper-receipt: #f0ebd8;
  --paper-yellow: #fff3a1;
  --tape-color: rgba(240, 230, 200, 0.65);
  --ink-black: #1a1a1a;
  --pencil-gray: #4a4a4a;
  --red-accent: #e63946;
  --blue-accent: #1d3557;
  --green-accent: #2a9d8f;

  --font-typewriter: 'Special Elite', monospace;
  --font-hand: 'Caveat', cursive;
  --font-marker: 'Permanent Marker', cursive;
  --font-sans: 'Space Grotesk', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink-black);
  font-family: var(--font-sans);
  min-height: 100vh;
  padding-bottom: 3rem;
  overflow-x: hidden;
}

/* Header */
.desk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: relative;
  z-index: 100;
}

.header-tape {
  background: var(--paper-yellow);
  padding: 0.3rem 1rem;
  font-family: var(--font-marker);
  transform: rotate(-3deg);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.header-title {
  color: #fff;
  font-family: var(--font-typewriter);
  font-size: 1.6rem;
}

.header-title span {
  color: var(--red-accent);
}

.desk-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.desk-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.desk-nav a:hover {
  color: var(--paper-yellow);
}

/* Canvas Layout */
.scrapbook-canvas {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.8rem;
  position: relative;
}

.scrap-item {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scrap-item:hover {
  transform: scale(1.01) rotate(0deg) !important;
  z-index: 50 !important;
}

.tape-strip {
  position: absolute;
  background: var(--tape-color);
  height: 25px;
  width: 90px;
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 10;
}

.top-tape {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

.corner-tape {
  top: -10px;
  right: -20px;
  transform: rotate(25deg);
}

/* Profile Card */
.id-card-wrapper {
  grid-column: span 5;
  transform: rotate(-2deg);
}

.paper-clip {
  width: 15px;
  height: 45px;
  border: 3px solid #888;
  border-radius: 10px;
  position: absolute;
  top: -15px;
  left: 30px;
  z-index: 15;
}

.id-card {
  background: var(--paper-cream);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 5px 8px 15px rgba(0,0,0,0.4);
}

.id-photo-frame {
  width: 100px;
  height: 90px;
  background: #fff;
  padding: 5px;
  margin-bottom: 0.8rem;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.id-photo {
  width: 100%;
  height: 100%;
  background: var(--blue-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: var(--font-marker);
  font-size: 1.1rem;
}

.id-details h2 {
  font-family: var(--font-typewriter);
  font-size: 1.3rem;
}

.id-role {
  font-size: 0.85rem;
  color: var(--pencil-gray);
  margin-bottom: 0.5rem;
}

.id-tags {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.id-tag {
  font-size: 0.65rem;
  background: #e0d5c1;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-typewriter);
}

.id-languages {
  font-size: 0.78rem;
  color: var(--pencil-gray);
}

.id-languages ul {
  padding-left: 1.2rem;
  margin-top: 0.2rem;
}

.red-arrow-annotation {
  position: absolute;
  right: -20px;
  top: -20px;
  font-family: var(--font-hand);
  color: var(--red-accent);
  font-size: 1.6rem;
  font-weight: bold;
  transform: rotate(12deg);
}

/* Smartwatch Card */
.smartwatch-card {
  grid-column: span 7;
  transform: rotate(1deg);
}

.watch-bezel {
  background: #2b2c30;
  border: 4px solid #444;
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 6px 10px 20px rgba(0,0,0,0.5);
  position: relative;
}

.watch-crown {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 20px;
  background: #666;
  border-radius: 3px;
}

.watch-screen {
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem;
}

.watch-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.watch-title {
  color: var(--paper-yellow);
  font-weight: bold;
}

.watch-body {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #ddd;
}

/* Experience Receipt */
.receipt-card {
  grid-column: span 6;
  background: var(--paper-receipt);
  padding: 1.8rem 1.4rem;
  box-shadow: 4px 8px 20px rgba(0,0,0,0.4);
  transform: rotate(-1deg);
  font-family: var(--font-typewriter);
}

.receipt-sub { text-align: center; font-size: 0.85rem; }
.receipt-title {
  text-align: center;
  font-size: 1.5rem;
  text-transform: lowercase;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed #888;
  padding-bottom: 0.5rem;
}

.receipt-table-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.receipt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.receipt-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 0.8rem;
}

.item-name { font-size: 0.95rem; color: #000; }
.item-meta { font-size: 0.75rem; color: #555; }
.item-desc { font-family: var(--font-sans); font-size: 0.8rem; color: #333; margin-top: 0.2rem; }
.item-date { font-size: 0.75rem; font-weight: bold; color: var(--red-accent); }

/* Education Note */
.torn-note-card {
  grid-column: span 6;
  background: var(--paper-white);
  padding: 1.8rem 1.8rem 1.8rem 3rem;
  box-shadow: 4px 6px 15px rgba(0,0,0,0.3);
  transform: rotate(1deg);
  border-left: 3px solid var(--red-accent);
}

.notebook-holes {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 12px;
  background-image: radial-gradient(#333 35%, transparent 40%);
  background-size: 12px 24px;
}

.handwritten-heading {
  font-family: var(--font-typewriter);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.edu-level { font-size: 0.95rem; font-weight: bold; color: var(--blue-accent); }
.edu-school { font-size: 0.85rem; margin-top: 0.2rem; }
.edu-detail { font-size: 0.8rem; color: #666; }

.results-box {
  background: var(--paper-cream);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.results-title { font-size: 0.85rem; display: block; margin-bottom: 0.5rem; }
.scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  font-size: 0.78rem;
  list-style: none;
}

.activities-tag { font-size: 0.8rem; color: var(--pencil-gray); }

/* Projects Card */
.projects-card {
  grid-column: span 12;
  background: var(--paper-cream);
  padding: 1.8rem;
  box-shadow: 4px 8px 18px rgba(0,0,0,0.4);
  transform: rotate(-0.5deg);
}

.wooden-tag {
  background: #c8963e;
  color: #fff;
  padding: 4px 14px;
  font-family: var(--font-marker);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 1rem;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.project-entry {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
  border-left: 3px solid var(--green-accent);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.project-entry h4 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--blue-accent);
}

.project-entry p {
  font-size: 0.8rem;
  color: #444;
  line-height: 1.4;
  margin-top: 0.3rem;
}

/* Software / Certs */
.software-card {
  grid-column: span 6;
  background: #1a1a1a;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  transform: rotate(1deg);
}

.sd-card-badge {
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  color: var(--paper-yellow);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.cert-tile {
  background: #2a2a2a;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #444;
  display: flex;
  flex-direction: column;
}

.cert-tile strong { font-size: 0.8rem; color: #fff; }
.cert-tile span { font-size: 0.7rem; color: #aaa; margin-top: 0.2rem; }
.cert-tile small { font-size: 0.65rem; color: var(--paper-yellow); margin-top: 0.3rem; }

/* Volunteering */
.volunteering-card {
  grid-column: span 6;
  background: var(--paper-white);
  padding: 1.5rem;
  box-shadow: 3px 6px 15px rgba(0,0,0,0.3);
  transform: rotate(-1deg);
}

.card-heading {
  font-family: var(--font-typewriter);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.vol-entry { margin-bottom: 1rem; }
.vol-entry h4 { font-size: 0.9rem; color: var(--blue-accent); }
.vol-entry p { font-size: 0.8rem; color: #444; margin-top: 0.3rem; line-height: 1.4; }

/* Honors Post-it */
.postit-card {
  grid-column: span 6;
  background: var(--paper-yellow);
  padding: 1.5rem;
  box-shadow: 5px 8px 15px rgba(0,0,0,0.3);
  transform: rotate(1.5deg);
}

.pin {
  width: 12px;
  height: 12px;
  background: var(--red-accent);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.postit-card h3 {
  font-family: var(--font-marker);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.postit-card ul {
  list-style: square;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Sports Card */
.sports-card {
  grid-column: span 6;
  background: var(--paper-cream);
  padding: 1.5rem;
  box-shadow: 4px 6px 15px rgba(0,0,0,0.3);
  transform: rotate(-1deg);
}

.sports-card h3 {
  font-family: var(--font-marker);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.teams-line { font-size: 0.78rem; color: #444; margin-bottom: 1rem; }

.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.sports-col { font-size: 0.75rem; }
.sports-col ul { padding-left: 1rem; margin-top: 0.4rem; }
.win-title { color: #d4af37; }
.runner-title { color: #888; }
.bronze-title { color: #cd7f32; }

/* Footer */
.desk-footer {
  text-align: center;
  color: #777;
  font-size: 0.8rem;
  margin-top: 3rem;
  font-family: var(--font-typewriter);
}

@media (max-width: 900px) {
  .scrapbook-canvas { grid-template-columns: 1fr; }
  .scrap-item { grid-column: span 1 !important; transform: rotate(0deg) !important; }
  .sports-grid { grid-template-columns: 1fr; }
}
