/* ===== GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

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

body {
  font-family: 'Nunito', Arial, sans-serif;
  background: #111827;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-back {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s;
}

.navbar-back:hover { color: #fff; }

.navbar-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.navbar-icon {
  font-size: 1.6rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  padding: 28px 20px 10px;
}

.page-header .big-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 8px;
  animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 0.95rem;
  opacity: 0.6;
  font-weight: 600;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SOUND BUTTON (velika dugmad za zvukove) ===== */
.sound-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 20px;
  padding: 18px 10px;
  cursor: pointer;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.sound-btn .btn-emoji {
  font-size: 2.6rem;
  line-height: 1;
  transition: transform 0.15s;
}

.sound-btn:active {
  transform: scale(0.92);
}

.sound-btn.playing .btn-emoji {
  animation: bounce 0.3s ease infinite alternate;
}

@keyframes bounce {
  from { transform: scale(1); }
  to   { transform: scale(1.25); }
}

/* ===== FOOTER NAV ===== */
.bottom-nav {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  transition: background 0.2s;
}

.back-home-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== APP FOOTER ===== */
.app-footer {
  text-align: center;
  padding: 20px 20px 32px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,0.07);
  max-width: 480px;
  margin: 0 auto;
}

.app-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.app-footer a:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sound-btn .btn-emoji { font-size: 2rem; }
}
