/* ============================================================
   Duckz Music – Unified Neon Brand Styles
   Based on the main website branding
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: #0B0B0B;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --cyan: #00E5FF;
  --cyan-dark: #00B8D4;
  --yellow: #DFFF00;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --border: rgba(0, 229, 255, 0.15);
  --border-strong: rgba(0, 229, 255, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.35);
  --glow-cyan-strong: 0 0 30px rgba(0, 229, 255, 0.55);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Headings */
h1, h2, h3, h4, .font-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Neon text effects */
.neon-text {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6), 0 0 20px rgba(0, 229, 255, 0.3);
}

.neon-yellow {
  text-shadow: 0 0 10px rgba(223, 255, 0, 0.6), 0 0 20px rgba(223, 255, 0, 0.3);
}

/* Buttons */
.btn-primary,
button[type="submit"],
button.btn {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: var(--bg);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary:hover,
button[type="submit"]:hover,
button.btn:hover {
  box-shadow: var(--glow-cyan-strong);
  transform: translateY(-2px);
}

.btn-primary:active,
button[type="submit"]:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Form elements */
input[type="text"],
input[type="url"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300E5FF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select option {
  background: var(--bg-card);
  color: var(--text);
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Cards / Boxes */
.card,
.form-box,
.confirmation-message,
.box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.form-box:hover {
  border-color: var(--border-strong);
}

/* Wish list items */
.wish-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
}

.wish-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
  transform: translateX(4px);
}

.wish-item p {
  margin: 0;
  font-size: 1rem;
  flex: 1;
}

.wish-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.delete-button {
  color: rgba(255, 100, 100, 0.7);
  cursor: pointer;
  font-size: 1.4rem !important;
  transition: all 0.2s ease;
  padding: 0.25rem;
  border-radius: 50%;
}

.delete-button:hover {
  color: #ff5555;
  background: rgba(255, 80, 80, 0.15);
  transform: scale(1.15);
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Footer / Social */
#footer-ele,
.footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#footer-ele p,
.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

#socialmedia-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

#socialmedia-nav a {
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
  display: flex;
}

#socialmedia-nav a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-dark);
}

/* Utility */
.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* ============================================================
   Page-specific layouts
   ============================================================ */

/* --- INDEX / FORM PAGE --- */
body.page-form {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(223, 255, 0, 0.04) 0%, transparent 50%),
    var(--bg);
}

#wish {
  width: 100%;
  max-width: 480px;
}

#form-box {
  width: 100%;
}

#form-box h1,
.page-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

form label {
  margin-top: 1rem;
}

form label:first-of-type {
  margin-top: 0;
}

form button[type="submit"] {
  width: 100%;
  margin-top: 1.75rem;
  padding: 1rem;
  font-size: 1.05rem;
}

/* --- CONFIRM PAGE --- */
body.page-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 55%),
    var(--bg);
}

.confirmation-message {
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.confirmation-message h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.confirmation-message .check-icon {
  color: var(--cyan);
  font-size: 2rem;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

.confirmation-message p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- MANAGER / QR PAGE --- */
body.page-manager {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
    var(--bg);
}

.box {
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.box > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.box input {
  margin-bottom: 0.75rem;
}

.box button {
  width: 100%;
  margin-top: 0.5rem;
}

#qrResult {
  margin-top: 1.5rem;
}

#qrResult img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  box-shadow: var(--glow-cyan);
}

.box .tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.box .tip code {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8rem;
  word-break: break-all;
}

/* --- WISHES LIST PAGE --- */
body.page-wishes {
  padding: 2rem 1rem 3rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 40%),
    var(--bg);
}

body.page-wishes h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

#wish-list {
  max-width: 640px;
  margin: 0 auto;
}

#wish-list > p {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Empty / error states */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 480px) {
  #form-box,
  .confirmation-message,
  .box {
    padding: 1.5rem;
  }

  body.page-wishes h1 {
    font-size: 1.6rem;
  }

  .wish-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .wish-actions {
    align-self: flex-end;
  }
}
