/* ===== Gianluca's Website ===== */
/* A fun, colorful family site — SUMMER edition ☀️ */
/* Summer colors: sky blue, sunshine yellow, grass green & watermelon pink */

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

body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #aee9ff 0%, #d6f5c8 100%);
  color: #175c2e;
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== Forest banner at the top ===== */
.forest {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  display: block;
  border-bottom: 6px solid #2e9e4f;
}

.forest svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Pterodactyl that follows the cursor around the forest */
.dino {
  position: absolute;
  top: 0;
  left: 0;
  line-height: 0;
  pointer-events: none;
  will-change: transform;
  z-index: 5;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25));
}

.dino svg {
  display: block;
}

/* Flapping wings */
.dino .wing {
  transform-box: fill-box;
  transform-origin: 4% 55%;
  animation: ptero-flap 0.55s ease-in-out infinite;
}

.dino .wing-far {
  animation-delay: -0.06s;
}

@keyframes ptero-flap {
  0%, 100% { transform: rotate(-16deg); }
  50%      { transform: rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dino .wing { animation: none; }
}

/* ===== Header & Title ===== */
.site-title {
  text-align: center;
  padding: 24px 16px 8px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #0aa2e0;
  text-shadow: 2px 2px 0 #ffe14d, 4px 4px 0 #34c759;
  letter-spacing: 1px;
}

.tagline {
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: #1f8a4c;
  margin-bottom: 16px;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 20px;
}

nav a {
  text-decoration: none;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #34c759, #1f9e46);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #157a34;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #157a34;
}

nav a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #157a34;
}

nav a.current {
  background: linear-gradient(180deg, #ffe14d, #ffc400);
  color: #7a5b00;
  box-shadow: 0 4px 0 #d19a00;
}

/* ===== Main content ===== */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.card {
  background: #ffffff;
  border: 4px solid #ffd23f;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(10, 162, 224, 0.18);
}

.greeting {
  text-align: center;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: #0aa2e0;
  margin-bottom: 8px;
}

.greeting-emoji {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  color: #ff7a00;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 12px;
}

p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 12px;
}

ul {
  padding-left: 26px;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

li {
  margin-bottom: 8px;
}

/* ===== Fun fact highlight ===== */
.fun-fact-box {
  background: linear-gradient(180deg, #fff6c9, #ffe98a);
  border: 3px dashed #ffb300;
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
}

#fun-fact {
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  color: #a35a00;
  font-weight: bold;
  margin: 0;
}

/* ===== Featured book ===== */
.book-feature {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.book-cover-img {
  flex: 0 0 auto;
  width: 220px;
  max-width: 70vw;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.35);
  border: 4px solid #fff;
}

.book-info {
  flex: 1 1 280px;
  min-width: 260px;
}

.buy-btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(180deg, #ffb300, #ff8c00);
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #cc6f00;
  margin-top: 12px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #cc6f00;
}

.buy-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #cc6f00;
}

/* ===== Big "Hire Me" button ===== */
.hire-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(180deg, #ffb300, #ff8c00);
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 16px 42px;
  border-radius: 999px;
  box-shadow: 0 5px 0 #cc6f00;
  margin-top: 12px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.hire-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #cc6f00;
}

.hire-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #cc6f00;
}

.hire-price {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #1f8a4c;
  margin-top: 6px;
}

.hire-price strong {
  color: #e65c00;
  font-size: 1.5rem;
}

/* ===== For Sale items (Pokémon) ===== */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.item {
  background: linear-gradient(180deg, #eaf7ff, #c9ecff);
  border: 3px solid #ffcb05; /* Pokémon yellow */
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(59, 76, 202, 0.2);
}

.item img {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.item .emoji {
  font-size: 3.5rem;
}

.item h3 {
  color: #3b4cca; /* Pokémon blue */
  margin: 10px 0 4px;
  font-size: 1.3rem;
}

.type-label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: bold;
  color: #175c2e;
  background: #d6f5c8;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.card-value {
  font-size: 0.9rem;
  color: #5b6b7b;
  margin-bottom: 6px;
}

.price {
  display: inline-block;
  background: #ffcb05;
  color: #3b4cca;
  font-weight: bold;
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  margin-top: 6px;
  font-size: 1.2rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 0 #d1a600;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.price:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #d1a600;
}

.price:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d1a600;
}

.buy-hint {
  font-size: 0.8rem;
  color: #3b4cca;
  margin-top: 6px;
}

/* ===== Sold card ===== */
.img-wrap {
  position: relative;
  display: inline-block;
}

.sold-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  background: #e63900;
  color: #fff;
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.item.sold img {
  opacity: 0.65;
  filter: grayscale(35%);
}

.sold-tag {
  display: inline-block;
  background: #9aa4ae;
  color: #fff;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 999px;
  margin-top: 6px;
  font-size: 1.2rem;
}

/* ===== Click-to-enlarge (lightbox) ===== */
.zoomable {
  cursor: zoom-in;
  transition: transform 0.1s ease;
}

.zoomable:hover {
  transform: scale(1.03);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
  padding: 20px;
  text-align: center;
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 4px solid #fff;
}

.lightbox .close-hint {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1;
}

/* ===== "How to buy" pop-up ===== */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
}

.popup.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-box {
  position: relative;
  background: #ffffff;
  border: 5px solid #ffcb05;
  border-radius: 24px;
  padding: 28px 26px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  animation: popIn 0.18s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.popup-box h2 {
  margin-bottom: 14px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  color: #cc4400;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  color: #1f8a4c;
  font-size: 0.95rem;
  background: #d6f5c8;
  border-top: 4px solid #34c759;
}
