/* =========================
   🌐 Import Gamified Font
========================= */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

.main-content {
  margin-left: 250px;
  padding: 30px;
  min-height: 100vh;
  background-color: #e9e0ff;
  box-sizing: border-box;
}

/* Header */
.main-content header {
  display: flex;
  justify-content: left;
  align-items: center;
}

.gamified-header {
  font-family: 'Bungee', cursive;
  font-size: 40px;
  color: #3d2e91;
  text-align: center;
  text-shadow: 0 0 3px #9a8cfc, 0 0 6px #e9e0ff;
}

.shop-instruction {
  font-size: 18px;
  color: rgba(61, 46, 145, 0.4); /* mas visible violet */
  margin: -40px 0 20px 100px;    /* lapit sa header */
  text-align: left;
  font-family: 'Fredoka One', cursive;
}

/* Pyramid Container */
.shop-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  margin: 20px auto;
  padding: 40px;
  max-width: 1200px;
}

/* Each row ng pyramid */
.shop-row {
  display: flex;
  justify-content: center; 
  gap: 60px; /* mas wide pagitan ng mga cards */
}

.shop-item {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  width: 400px;
  border: 3px solid #9a8cfc;
  transition: transform 0.2s ease;
}

.shop-item:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}

.shop-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.shop-item h3 {
  font-size: 20px;
  color: #3d2e91;
  margin: 15px 0 8px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #6a5acd;
  margin-bottom: 18px;
}

/* Buy Button */
.buy-btn {
  background: linear-gradient(90deg, #9a8cfc, #6a5acd);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.buy-btn:hover {
  background: linear-gradient(90deg, #6a5acd, #483d8b);
  transform: scale(1.05);
}

.shop-header {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 30px;
  position: relative;  
  padding: 10px 20px;
}

.coin-display {
  font-size: 20px;
  font-weight: bold;
  color: #3d2e91;
  background: #fff;
  border: 2px solid #9a8cfc;
  border-radius: 10px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;   
  top: 50%;             
  right: 20px;          
  transform: translateY(-50%); 
}

/* Small notification box */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #3d2e91;
  border: 2px solid #9a8cfc;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: 'Fredoka One', cursive;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2000;
}

/* Notification types */
.notification.success {
  background: linear-gradient(135deg, #a0ff9a, #6ac47a);
  color: #fff;
  border: none;
}

.notification.error {
  background: linear-gradient(135deg, #ff7a7a, #d94848);
  color: #fff;
  border: none;
}


/* ===== Modal Wrapper ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 500px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* ===== Title ===== */
.modal-content h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #3d2e91;
  text-shadow: 0 0 3px #9a8cfc;
}

/* ===== Item description ===== */
#modalItemDesc {
  font-size: 15px;
  margin: 8px 0 12px;
  color: #555;
}

/* ===== Price ===== */
#modalItemPrice {
  font-size: 18px;
  font-weight: bold;
  color: #6a5acd;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-direction: column; /* stacked na buttons */
  gap: 15px;              /* pagitan sa taas-baba */
  margin-top: 25px;
  width: 100%;
}

.modal-actions button {
  display: block;
  width: 100%;             
  padding: 25px 0;          /* mas malaki ang taas */
  border-radius: 50px;      /* mas round */
  text-align: center;      
  cursor: pointer;
  font-size: 24px;          /* mas malaking text */
  font-weight: bold;
  transition: all 0.25s ease;
  box-sizing: border-box;  

  border: none;       
  outline: none;      
  background: none;   
  box-shadow: none;   
}

.modal-actions button:focus {
  outline: none;
  box-shadow: none;
}

/* ===== Confirm Button (Buy this Sticker) ===== */
#confirmPurchase {
  background: linear-gradient(135deg, #9a8cfc, #6a5acd);
  color: #fff;
  border: none;
  outline: none;
  box-shadow: 0 4px 10px rgba(154, 140, 252, 0.5);
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 0;
  width: 60%;             /* mas compact kaysa full width */
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;         /* center sa modal */
  margin: 0 auto 10px auto; /* top 0, bottom 10px, center horizontally */

}

#confirmPurchase:hover {
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(154, 140, 252, 0.7);
}

/* ===== Cancel Button ===== */
#cancelPurchase {
  background: linear-gradient(135deg, #f0f0f0, #ddd);
  color: #6a5acd;
  border: none;
  outline: none;
  box-shadow: 0 3px 8px rgba(106, 90, 205, 0.3);
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 0;
  width: 60%;             /* mas compact kaysa full width */
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;         /* center sa modal */
}

#cancelPurchase:hover {
  background: linear-gradient(135deg, #e0e0e0, #ccc);
  transform: scale(1.03);
  box-shadow: 0 5px 12px rgba(106, 90, 205, 0.4);
}



