
/* =========================================
   EMOJILAND - COMPLETE SITE DESIGN
   ========================================= */

:root {
  --primary: #7055ed;
  --primary-dark: #563bd0;
  --pink: #ff6597;
  --dark: #25223b;
  --muted: #77758b;
  --background: #ffffff;
  --soft: #f7f5ff;
  --border: #ece9f5;
  --radius: 20px;
  --shadow: 0 12px 35px rgba(60,43,120,.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Arial, Tahoma, sans-serif;
  background: var(--background);
  color: var(--dark);
  line-height: 1.7;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* HEADER */

.header {
  width: 100%;
  min-height: 76px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.header-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  font-size: 23px;
  background: linear-gradient(135deg,#7055ed,#ff6597);
}

.navigation, .nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navigation a, .nav a {
  color: #625f75;
  font-size: 14px;
  font-weight: 700;
  transition: .2s;
}

.navigation a:hover, .nav a:hover {
  color: var(--primary);
}

.language-button {
  border: 1px solid var(--border);
  border-radius: 30px;
  background: white;
  color: var(--primary);
  font-weight: 800;
  padding: 9px 17px;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
}

.language-button:hover {
  background: var(--soft);
  border-color: var(--primary);
}

/* HERO */

.hero {
  max-width: 1200px;
  margin: 15px auto 0;
  min-height: 390px;
  padding: 45px 35px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 25px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.small-title {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  font-size: clamp(36px,5vw,58px);
  line-height: 1.35;
  margin: 10px 0;
  letter-spacing: -1px;
}

.hero p {
  max-width: 540px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
  margin: 12px 0 23px;
}

.main-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: linear-gradient(110deg,var(--primary),#967bff);
  color: white;
  border: 0;
  border-radius: 14px;
  padding: 13px 25px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(112,85,237,.22);
  transition: transform .2s,box-shadow .2s;
}

.main-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(112,85,237,.3);
}

/* HERO ART */

.hero-art {
  height: 300px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle,#f0eaff 0%,#faf8ff 50%,transparent 72%);
}

.art-center {
  width: 175px;
  height: 175px;
  display: grid;
  place-items: center;
  border-radius: 45px;
  transform: rotate(-12deg);
  background: linear-gradient(135deg,#ffdfeb,#e7e0ff);
  color: white;
  font-size: 80px;
  box-shadow: var(--shadow);
}

.floating-emoji {
  position: absolute;
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  border-radius: 23px;
  background: white;
  font-size: 40px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.emoji-one { top: 15px; right: 15%; }
.emoji-two { bottom: 15px; right: 20%; animation-delay: .7s; }
.emoji-three { top: 40px; left: 12%; animation-delay: 1.2s; }
.emoji-four { bottom: 25px; left: 14%; animation-delay: 1.7s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* GENERAL SECTIONS */

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 35px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.maker-heading h2 {
  font-size: 29px;
  margin: 5px 0;
}

.section-heading input {
  width: 280px;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  outline: none;
}

.section-heading input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(112,85,237,.09);
}

/* CATEGORY CARDS */

.emoji-categories {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  width: 100%;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 195px;
  padding: 22px 18px;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(60,43,120,.06);
  transition: .25s ease;
  overflow: hidden;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #cfc4ff;
  box-shadow: var(--shadow);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.category-card h3 {
  font-size: 18px;
  margin: 5px 0;
}

.category-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 3px 0;
}

.category-arrow {
  color: var(--primary);
  font-size: 22px;
  margin-top: 5px;
}

/* STICKERS */

.stickers-section {
  background: var(--soft);
  max-width: 100%;
  padding-left: max(35px,calc((100% - 1130px)/2));
  padding-right: max(35px,calc((100% - 1130px)/2));
  margin-top: 15px;
  margin-bottom: 15px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.sticker-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(60,43,120,.05);
  transition: .2s;
}

.sticker-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.sticker-art {
  min-height: 140px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 65px;
}

.sticker-art.pink { background: #fff0f5; }
.sticker-art.purple { background: #f0eaff; }
.sticker-art.yellow { background: #fff8df; }
.sticker-art.blue { background: #eaf5ff; }

.sticker-card h3 {
  margin: 12px 0 3px;
}

.sticker-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 3px 0;
}

/* STICKER MAKER */

.maker-section {
  padding-top: 45px;
  padding-bottom: 50px;
}

.maker-heading {
  text-align: center;
  margin-bottom: 25px;
}

.maker-heading p {
  color: var(--muted);
}

.maker-box {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 25px;
  padding: 25px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.maker-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maker-controls label {
  font-weight: 800;
  margin-top: 5px;
}

.maker-controls input[type="text"],
.maker-controls select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
}

.maker-controls input[type="color"] {
  width: 100%;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 4px;
}

.maker-controls .main-button {
  margin-top: 12px;
}

.sticker-preview {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--soft);
  border-radius: 17px;
}

.sticker-preview canvas {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
}

/* TOOLS MARKET BANNER */

.tools-banner {
  position: relative;
  z-index: 2;
  max-width: 1130px;
  width: calc(100% - 40px);
  margin: 25px auto 45px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(110deg,#f0eaff,#fff0f5);
  border: 1px solid #e8defe;
  border-radius: 22px;
}

.tools-icon {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: white;
  border-radius: 18px;
  font-size: 35px;
}

.tools-banner div:nth-child(2) {
  flex: 1;
}

.tools-banner h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.tools-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tools-banner > a {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: white !important;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  transition: .2s;
}

.tools-banner > a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* FOOTER */

footer {
  background: #25223b;
  color: white;
  padding: 30px 20px 20px;
  text-align: center;
}

.footer-logo {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin: 15px auto;
}

.footer-links a {
  color: #e4dfff;
  font-size: 14px;
  transition: .2s;
}

.footer-links a:hover {
  color: #ffb6d0;
}

footer small {
  display: block;
  color: #bcb8d0;
  margin-top: 18px;
}

/* ABOUT PAGE */

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 16px 5%;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 15px rgba(0,0,0,.04);
}

.about-brand {
  color: var(--primary);
  font-size: 21px;
  font-weight: bold;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.about-actions a {
  color: var(--primary);
  font-weight: bold;
}

.about-actions button {
  border: 1px solid var(--border);
  background: white;
  padding: 8px 13px;
  border-radius: 9px;
}

.about-actions button.active {
  background: var(--primary);
  color: white;
}

.about-page {
  width: min(900px,92%);
  margin: 35px auto;
  padding: 35px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  line-height: 2;
}

.about-page h1 {
  color: var(--primary);
  font-size: clamp(26px,5vw,38px);
  margin: 0 0 20px;
}

.about-page h2 {
  color: var(--dark);
  font-size: 22px;
  margin-top: 25px;
}

.about-page p {
  color: #626174;
  font-size: 16px;
}

.about-icon {
  font-size: 55px;
  margin-bottom: 10px;
}

.about-home {
  display: inline-block;
  margin: 12px 5px 0;
  padding: 11px 24px;
  border-radius: 12px;
  background: var(--primary);
  color: white !important;
  font-weight: bold;
}

.about-footer {
  text-align: center;
  padding: 25px 15px;
  color: #777;
  font-size: 14px;
  background: var(--soft);
}

.about-footer a {
  color: var(--primary);
  margin: 0 7px;
}

/* GENERAL TOOL PAGES */

.tool-container,
.tool-page,
.page-container {
  width: min(1100px,92%);
  margin: 35px auto;
}

.tool-box,
.tool-card,
.tool-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(60,43,120,.06);
}

.tool-container h1,
.tool-page h1,
.page-container h1 {
  color: var(--primary);
}

input, select, textarea {
  max-width: 100%;
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.message {
  text-align: center;
  color: var(--primary);
  font-weight: bold;
}

/* RESPONSIVE */

@media (max-width:900px) {
  .header {
    padding: 12px 3%;
    gap: 12px;
  }

  .navigation, .nav {
    gap: 13px;
  }

  .navigation a, .nav a {
    font-size: 13px;
  }

  .hero {
    min-height: 350px;
    padding: 35px 25px;
  }

  .emoji-categories {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .sticker-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:650px) {
  .header {
    min-height: auto;
    padding: 10px 13px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .logo {
    font-size: 16px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .navigation, .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 5px 0;
  }

  .navigation a, .nav a {
    font-size: 12px;
  }

  .language-button {
    padding: 7px 12px;
    font-size: 13px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 35px 20px 15px;
    gap: 10px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero p {
    font-size: 14px;
    margin: 10px auto 20px;
  }

  .hero-art {
    width: 100%;
    height: 230px;
  }

  .art-center {
    width: 130px;
    height: 130px;
    font-size: 60px;
  }

  .floating-emoji {
    width: 58px;
    height: 58px;
    font-size: 30px;
    border-radius: 17px;
  }

  .content-section {
    padding: 28px 17px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2,
  .maker-heading h2 {
    font-size: 24px;
  }

  .section-heading input {
    width: 100%;
  }

  .emoji-categories {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .category-card {
    min-height: 165px;
    padding: 15px 9px;
  }

  .category-icon {
    font-size: 38px;
  }

  .category-card h3 {
    font-size: 14px;
  }

  .category-card p {
    font-size: 11px;
  }

  .stickers-section {
    padding: 28px 17px;
  }

  .sticker-grid {
    gap: 12px;
  }

  .sticker-card {
    padding: 10px;
  }

  .sticker-art {
    min-height: 105px;
    font-size: 48px;
  }

  .maker-box {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .tools-banner {
    flex-direction: column;
    text-align: center;
    padding: 22px 16px;
    gap: 12px;
  }

  .tools-banner > a {
    width: 100%;
  }

  .footer-links {
    gap: 10px 16px;
  }

  .about-page {
    padding: 23px 18px;
    margin: 22px auto;
  }

  .about-page p {
    font-size: 15px;
  }
}

@media (max-width:380px) {
  .emoji-categories {
    grid-template-columns: 1fr;
  }

  .sticker-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 30px;
  }
}
