
/* ==================================
   ZUNE MARKETPLACE 2.0
   GLOBAL DESIGN SYSTEM
================================== */

:root {
  --primary: #087A55;
  --primary-dark: #065D40;
  --secondary: #E6A52E;
  --background: #F5F7F6;
  --surface: #FFFFFF;
  --text: #17221D;
  --text-muted: #718078;
  --border: #E3EAE6;
  --danger: #D65D52;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.07);

  --verified-account: #F28C28;
  --verified-store: #2586CE;
  --admin-badge: #159447;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: 0.3s ease;
}

/* THEMES */

[data-theme="emerald"] {
  --primary: #087A55;
  --primary-dark: #065D40;
  --secondary: #E6A52E;
  --background: #F5F7F6;
  --surface: #FFFFFF;
  --text: #17221D;
  --text-muted: #718078;
  --border: #E3EAE6;
}

[data-theme="luxury"] {
  --primary: #C69B36;
  --primary-dark: #9C7623;
  --secondary: #E6BD65;
  --background: #171717;
  --surface: #242424;
  --text: #FFFFFF;
  --text-muted: #B8B8B8;
  --border: #3B3B3B;
}

[data-theme="ocean"] {
  --primary: #1676C5;
  --primary-dark: #105B99;
  --secondary: #35A8D8;
  --background: #F1F7FC;
  --surface: #FFFFFF;
  --text: #152B3D;
  --text-muted: #71879A;
  --border: #DCE9F3;
}

[data-theme="royal"] {
  --primary: #7546B8;
  --primary-dark: #59338E;
  --secondary: #A77BE0;
  --background: #F7F3FC;
  --surface: #FFFFFF;
  --text: #291B3B;
  --text-muted: #83758F;
  --border: #E8DDF3;
}

[data-theme="nature"] {
  --primary: #426B3D;
  --primary-dark: #304F2D;
  --secondary: #B89A58;
  --background: #F6F5EC;
  --surface: #FFFFFF;
  --text: #263426;
  --text-muted: #78816F;
  --border: #E5E5D7;
}

[data-theme="blossom"] {
  --primary: #D94F83;
  --primary-dark: #B93668;
  --secondary: #F18A9D;
  --background: #FFF5F7;
  --surface: #FFFFFF;
  --text: #39232D;
  --text-muted: #947985;
  --border: #F3DFE6;
}


[data-theme="sunset"] {
  --primary: #D65B3C;
  --primary-dark: #A83F2B;
  --secondary: #F0A34A;
  --background: #FFF5ED;
  --surface: #FFFFFF;
  --text: #3A241E;
  --text-muted: #92776D;
  --border: #F0DDD2;
}

[data-theme="minimal"] {
  --primary: #424B57;
  --primary-dark: #252D36;
  --secondary: #9AA4AF;
  --background: #F4F5F6;
  --surface: #FFFFFF;
  --text: #20252B;
  --text-muted: #737C86;
  --border: #E1E4E8;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  transition:
    background var(--transition),
    color var(--transition);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* APP CONTAINER */

#app {
  min-height: 100vh;
  width: 100%;
}

/* ZUNE LOGO */

.zune-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -3px;
  user-select: none;
}

.z-letter {
  color: #087A55;
}

.u-letter {
  color: #E6A52E;
}

.n-letter {
  color: #2586CE;
}

.e-letter {
  color: #D94F83;
}

/* LOGO WAVE ANIMATION */

.zune-logo.wave .z-letter {
  animation: zuneWave 0.55s ease;
}

.zune-logo.wave .u-letter {
  animation: zuneWave 0.55s ease 0.12s;
}

.zune-logo.wave .n-letter {
  animation: zuneWave 0.55s ease 0.24s;
}

.zune-logo.wave .e-letter {
  animation: zuneWave 0.55s ease 0.36s;
}

@keyframes zuneWave {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* LOADING SCREEN */

.app-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  background: var(--background);
  color: var(--text-muted);
}

.app-loading p {
  font-size: 14px;
  letter-spacing: 1px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* FORM ELEMENTS */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* BADGES - FIXED COLORS */

.badge-verified-account {
  background: var(--verified-account);
  color: #FFFFFF;
}

.badge-verified-store {
  background: var(--verified-store);
  color: #FFFFFF;
}

.badge-admin {
  background: var(--admin-badge);
  color: #FFFFFF;
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* MOBILE RESPONSIVE */

@media (max-width: 600px) {
  .zune-logo {
    font-size: 36px;
  }

  .btn {
    width: 100%;
  }
}

/* ==================================
   RESPONSIVE FIT & HIGH-QUALITY MOBILE DISPLAY
   Safe global rules for phones, tablets and desktop
================================== */

html {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

#app {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

#app *,
#app *::before,
#app *::after {
  min-width: 0;
}

#app img,
#app video,
#app canvas,
#app iframe {
  max-width: 100%;
}

#app img {
  height: auto;
  image-rendering: auto;
}

#app button,
#app a,
#app input,
#app select,
#app textarea {
  max-width: 100%;
  touch-action: manipulation;
}

#app button,
#app a {
  -webkit-tap-highlight-color: transparent;
}

#app h1,
#app h2,
#app h3,
#app p,
#app label,
#app a,
#app button {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  html,
  body {
    font-size: 16px;
  }

  #app {
    min-height: 100vh;
    min-height: 100dvh;
  }

  #app .btn {
    min-height: 46px;
    padding-left: 14px;
    padding-right: 14px;
  }

  #app input,
  #app select,
  #app textarea {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .zune-logo {
    font-size: clamp(28px, 9vw, 36px);
    letter-spacing: -2px;
  }

  #app .btn {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  #app {
    max-width: 100%;
  }
}

