
/* =========================================================
   LAKO DO ENGLESKOG — PREMIUM GLASS / CRYSTAL UI
   Kockaste kartice • Providno staklo • Refleksije
   Električno plava • Hladno belo svetlo • Duboka pozadina
========================================================= */

/* 1. GLOBALNA PALETA */

:root {
  --primary: #48a0ff;
  --primary-dark: #1761db;
  --primary-light: #c4e4ff;

  --text: #f1f7ff;
  --muted: #a2b8d5;

  --background: #050d19;
  --surface: rgba(15, 35, 61, 0.55);

  --border: rgba(190, 222, 255, 0.22);
  --glass: rgba(155, 203, 255, 0.075);
  --glass-strong: rgba(185, 220, 255, 0.15);

  --success: #75f0b0;
  --success-light: rgba(47, 205, 128, 0.12);

  /* Kartice su potpuno kockaste */
  --radius: 0px;
  --radius-small: 0px;

  --shadow: 0 18px 45px rgba(0, 0, 0, 0.27), 0 3px 12px rgba(0, 0, 0, 0.17);

  --shadow-hover:
    0 28px 65px rgba(0, 0, 0, 0.42), 0 0 30px rgba(48, 139, 255, 0.17);

  --transition: 0.3s ease;
}

/* 2. RESET I OSNOVA */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;

  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;

  background:
    radial-gradient(
      ellipse at 8% 5%,
      rgba(15, 105, 242, 0.24),
      transparent 33%
    ),
    radial-gradient(
      ellipse at 95% 18%,
      rgba(0, 190, 255, 0.14),
      transparent 30%
    ),
    radial-gradient(
      ellipse at 50% 65%,
      rgba(18, 76, 151, 0.13),
      transparent 45%
    ),
    linear-gradient(145deg, #030914 0%, #0a1a30 48%, #040b16 100%);

  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

body::before {
  top: 15%;
  left: -220px;
  background: rgba(0, 100, 255, 0.16);
}

body::after {
  right: -210px;
  bottom: 4%;
  background: rgba(0, 190, 255, 0.11);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  font-weight: 800;
}

p {
  line-height: 1.7;
}

button,
input,
select {
  max-width: 100%;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.flip-card:focus-visible {
  outline: 3px solid #8bd4ff;
  outline-offset: 4px;
}

/* 3. ZAGLAVLJE */

.site-header {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 27px 0;

  color: #fff;

  background:
    radial-gradient(
      ellipse at 80% 0%,
      rgba(78, 167, 255, 0.19),
      transparent 40%
    ),
    linear-gradient(
      112deg,
      rgba(5, 19, 41, 0.98),
      rgba(13, 53, 105, 0.96) 58%,
      rgba(5, 23, 47, 0.98)
    );

  border-bottom: 1px solid rgba(184, 220, 255, 0.25);

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.site-header::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -35%;
  width: 55%;
  height: 300%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.09),
    transparent
  );

  transform: rotate(25deg);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -45px;
  width: 270px;
  height: 270px;

  border: 1px solid rgba(202, 231, 255, 0.17);
  border-radius: 50%;

  box-shadow:
    0 0 0 24px rgba(202, 231, 255, 0.025),
    0 0 0 52px rgba(202, 231, 255, 0.018);

  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  gap: 15px;
  max-width: 100%;

  color: #fff;
  text-decoration: none;

  transition: opacity var(--transition);
}

.brand:hover {
  color: #fff;
  opacity: 0.93;
}

.brand-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;

  width: 60px;
  height: 60px;

  font-size: 31px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.19),
    rgba(115, 178, 255, 0.045)
  );

  border: 1px solid rgba(220, 241, 255, 0.3);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 8px 25px rgba(0, 0, 0, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  margin-top: 5px;
  color: #c5e1ff;
  font-size: 0.9rem;
}

/* 4. UVOD */

.intro {
  padding: 44px 0 28px;
}

.intro h1 {
  max-width: 850px;
  margin: 0 auto 16px;

  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.15;

  text-shadow:
    0 0 30px rgba(58, 147, 255, 0.22),
    0 3px 15px rgba(0, 0, 0, 0.25);
}

.intro-text {
  max-width: 650px;
  margin: 0 auto;
  color: #b0c6e2;
  font-size: 1.06rem;
}

/* 5. PANEL ZA PRETRAGU */

.search-panel {
  position: relative;
  overflow: hidden;
  padding: 26px !important;

  background: linear-gradient(
    135deg,
    rgba(174, 214, 255, 0.11),
    rgba(64, 125, 197, 0.045) 55%,
    rgba(255, 255, 255, 0.018)
  );

  border: 1px solid rgba(195, 224, 255, 0.2);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);

  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.search-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );

  pointer-events: none;
}

.search-panel .row {
  row-gap: 17px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #dfedff;
  font-size: 0.93rem;
  font-weight: 750;
}

.form-control {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 15px;

  color: #f3f8ff;
  background: rgba(3, 14, 29, 0.68);

  border: 1px solid rgba(179, 213, 255, 0.24);
  border-radius: 0;
  outline: none;

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.form-control:hover {
  border-color: rgba(116, 180, 255, 0.57);
}

.form-control:focus {
  background: rgba(5, 22, 45, 0.95);
  border-color: #579fff;

  box-shadow:
    0 0 0 3px rgba(57, 132, 255, 0.13),
    0 0 22px rgba(57, 132, 255, 0.11);
}

.form-control::placeholder {
  color: #829ab9;
}

.form-control option {
  color: #fff;
  background: #10213b;
}

.stats {
  margin: 8px 0 0;
  color: #a9c0dd;
  font-size: 0.9rem;
}

.status {
  margin: 5px 0 0;
  color: #79edb5;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* 6. DUGMAD */

.btn {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 47px;
  padding: 11px 17px;

  border: 1px solid transparent;
  border-radius: 0;

  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;

  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  color: #fff;

  background: linear-gradient(130deg, #58aaff 0%, #2879f5 45%, #1451cb 100%);

  border-color: rgba(177, 216, 255, 0.5);

  box-shadow:
    0 7px 20px rgba(24, 93, 226, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.btn-primary:hover {
  color: #fff;

  background: linear-gradient(130deg, #78bcff, #3987ff 48%, #1e61df);

  box-shadow:
    0 10px 28px rgba(24, 93, 226, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.btn-secondary {
  color: #dcedff;

  background: linear-gradient(
    135deg,
    rgba(177, 215, 255, 0.12),
    rgba(110, 161, 225, 0.045)
  );

  border-color: rgba(188, 219, 255, 0.25);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(105, 164, 255, 0.18);
  border-color: rgba(176, 216, 255, 0.48);

  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.controls .row {
  row-gap: 12px;
}

/* 7. NASLOVI SEKCIJA */

.section-heading {
  margin-top: 8px;
}

.section-heading h2 {
  margin-bottom: 5px;
  color: #f0f7ff;
  font-size: 1.65rem;
  font-weight: 850;

  text-shadow: 0 3px 22px rgba(55, 127, 255, 0.15);
}

.section-heading p {
  margin-bottom: 19px;
  color: #a8bfdc;
  font-size: 0.96rem;
}

/* =========================================================
   8. PREMIUM KOCKASTE GLASS KARTICE
   CEO STIL KARTICE JE DEFINISAN U OVOM ODELJKU
========================================================= */

.word-column {
  display: flex;
  min-width: 0;
  margin-bottom: 27px;
}

/* Spoljašnje stakleno telo */

.word-card {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  width: 100%;
  min-width: 0;

  overflow: hidden;

  /* Nema radiusa — čiste, arhitektonske ivice */
  border-radius: 0;

  background:
    radial-gradient(
      ellipse at 5% 0%,
      rgba(122, 192, 255, 0.17),
      transparent 43%
    ),
    radial-gradient(
      ellipse at 100% 100%,
      rgba(0, 158, 255, 0.1),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      rgba(188, 222, 255, 0.12) 0%,
      rgba(93, 154, 221, 0.055) 30%,
      rgba(8, 25, 47, 0.56) 72%,
      rgba(121, 184, 255, 0.09) 100%
    );

  border: 1px solid rgba(193, 224, 255, 0.27);

  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.31),
    0 5px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.23),
    inset 1px 0 0 rgba(255, 255, 255, 0.09),
    inset -1px 0 0 rgba(115, 184, 255, 0.055);

  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);

  transform: translateZ(0);

  transition:
    transform 0.4s cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.4s ease;
}

/* Gornja ivica: svetlost koja imitira prelom stakla */

.word-card::before {
  content: "";
  position: absolute;
  z-index: 5;

  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.85) 28%,
    rgba(183, 222, 255, 0.7) 57%,
    rgba(255, 255, 255, 0.12)
  );

  pointer-events: none;
}

/* Široka dijagonalna refleksija preko površine */

.word-card::after {
  content: "";
  position: absolute;
  z-index: 3;

  top: -65%;
  left: -110%;

  width: 68%;
  height: 230%;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.018) 23%,
    rgba(255, 255, 255, 0.13) 48%,
    rgba(190, 226, 255, 0.045) 67%,
    transparent 100%
  );

  transform: rotate(24deg);
  pointer-events: none;

  transition: left 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.word-card:hover {
  transform: translateY(-6px);

  border-color: rgba(156, 208, 255, 0.57);

  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.39),
    0 0 32px rgba(40, 128, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(115, 184, 255, 0.1);
}

.word-card:hover::after {
  left: 145%;
}

.word-card.is-flipped {
  border-color: rgba(130, 192, 255, 0.45);
}

/* 9. OKRETANJE KARTICE */

.flip-card {
  position: relative;
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 270px;

  perspective: 1500px;
  -webkit-perspective: 1500px;

  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.flip-card-inner {
  display: grid;

  width: 100%;
  min-height: 270px;

  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;

  transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* JS zadržava postojeći način okretanja */

.word-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: relative;
  isolation: isolate;

  grid-area: 1 / 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 0;
  min-height: 270px;

  padding: 30px 24px;

  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Prednja strana — hladno, providno staklo */

.flip-front {
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(119, 190, 255, 0.2),
      transparent 44%
    ),
    radial-gradient(
      ellipse at 100% 100%,
      rgba(0, 169, 255, 0.1),
      transparent 43%
    ),
    linear-gradient(
      145deg,
      rgba(217, 237, 255, 0.065),
      rgba(49, 101, 162, 0.025) 52%,
      rgba(4, 18, 36, 0.15)
    );
}

.flip-front::before {
  content: "";
  position: absolute;
  z-index: -1;

  top: 0;
  left: 0;
  right: 0;

  height: 43%;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.015) 35%,
    transparent
  );

  pointer-events: none;
}

/* Poleđina — bogatiji plavi kristalni preliv */

.flip-back {
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(67, 159, 255, 0.22),
      transparent 47%
    ),
    radial-gradient(
      ellipse at 0% 100%,
      rgba(0, 200, 255, 0.12),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      rgba(43, 98, 163, 0.29),
      rgba(9, 29, 55, 0.45) 56%,
      rgba(35, 86, 145, 0.23)
    );

  border-top: 1px solid rgba(255, 255, 255, 0.15);

  transform: rotateY(180deg);
}

.flip-back::before {
  content: "";
  position: absolute;
  z-index: -1;

  top: 0;
  left: 7%;
  width: 86%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );

  pointer-events: none;
}

/* 10. TEKST NA KARTICAMA */

.word-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 0 20px;
  padding: 7px 13px;

  color: #cbe5ff;

  background: linear-gradient(
    135deg,
    rgba(155, 203, 255, 0.13),
    rgba(81, 144, 224, 0.045)
  );

  border: 1px solid rgba(179, 216, 255, 0.28);
  border-radius: 0;

  font-size: 0.71rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.105em;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.word-english,
.word-translation,
.example-english,
.example-serbian {
  display: block;

  width: 100%;
  max-width: 100%;
  margin: 0;

  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.55;

  text-align: center;

  overflow-wrap: anywhere;
  word-break: normal;
}

.word-english {
  margin-bottom: 10px;
  color: #fff;

  text-shadow:
    0 0 20px rgba(100, 176, 255, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.word-translation {
  color: #82f1b9;

  text-shadow: 0 0 17px rgba(64, 230, 157, 0.13);
}

.example-english {
  color: #f1f7ff;
}

.example-serbian {
  margin-top: 12px;
  color: #82f1b9;
}

.word-pronunciation,
.example-pronunciation {
  width: 100%;
  margin: 9px 0 0;

  color: #acd2ff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.word-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 19px;
  padding: 6px 12px;

  color: #c8e0fc;

  background: rgba(164, 207, 255, 0.075);
  border: 1px solid rgba(181, 216, 255, 0.2);
  border-radius: 0;

  font-size: 0.76rem;
  font-weight: 650;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

/* 11. DUGMAD ISPOD KARTICE */

.card-actions {
  position: relative;
  z-index: 6;

  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;

  padding: 15px;

  background: linear-gradient(
    180deg,
    rgba(5, 18, 36, 0.38),
    rgba(3, 12, 25, 0.72)
  );

  border-top: 1px solid rgba(197, 225, 255, 0.18);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.card-actions .btn {
  flex: 1 1 135px;
  min-width: 0;
  min-height: 45px;

  padding: 10px 12px;

  font-size: 0.88rem;
  line-height: 1.4;
}

/* Odsjaj preko primarnog dugmeta */

.card-actions .btn-primary::before {
  content: "";
  position: absolute;

  top: 0;
  left: -125%;

  width: 75%;
  height: 100%;

  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );

  transform: skewX(-22deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.card-actions .btn-primary:hover::before {
  left: 150%;
}

/* 12. PRAZAN REZULTAT */

.empty-state {
  margin-top: 18px;
  padding: 28px !important;

  color: #e4efff;

  background: rgba(154, 196, 255, 0.055);
  border: 1px dashed rgba(173, 211, 255, 0.3);
  border-radius: 0;

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.empty-state p {
  margin-bottom: 5px;
}

.empty-state p + p {
  color: #a5bad5;
}

/* 13. PANEL ZA UČENJE */

.learning-panel {
  position: relative;
  overflow: hidden;

  padding: 26px !important;
  color: #e5f7ed;

  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(51, 214, 141, 0.105),
      transparent 45%
    ),
    linear-gradient(135deg, rgba(34, 131, 91, 0.13), rgba(12, 49, 44, 0.28));

  border: 1px solid rgba(117, 234, 177, 0.2);
  border-radius: 0;

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.learning-panel h2 {
  color: #8af0b8;
  font-size: 1.35rem;
  font-weight: 850;
}

.learning-steps {
  padding-left: 24px;
  margin-bottom: 0;
  list-style: decimal;
}

.learning-steps li {
  margin-top: 9px;
  padding-left: 4px;
  line-height: 1.65;
  color: #d1e9dc;
}

.learning-steps li::marker {
  color: #67e8a8;
  font-weight: 800;
}

/* 14. PODNOŽJE */

.site-footer {
  position: relative;
  overflow: hidden;

  margin-top: 48px !important;
  padding: 32px 0 !important;

  color: #edf5ff;
  text-align: center;

  background: linear-gradient(
    120deg,
    rgba(4, 13, 27, 0.99),
    rgba(12, 36, 71, 0.97)
  );

  border-top: 1px solid rgba(183, 216, 255, 0.18);
}

.site-footer::before {
  content: "";
  position: absolute;

  top: 0;
  left: 20%;

  width: 60%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(122, 187, 255, 0.5),
    transparent
  );

  pointer-events: none;
}

.site-footer p {
  margin-bottom: 5px;
  font-weight: 750;
}

.footer-subtitle {
  color: #9db6d6;
  font-size: 0.9rem;
  font-weight: 400 !important;
}

/* 15. TABLETI */

@media (min-width: 576px) and (max-width: 991px) {
  .flip-card,
  .flip-card-inner,
  .flip-face {
    min-height: 265px;
  }

  .flip-face {
    padding: 25px 19px;
  }
}

/* 16. MOBILNI TELEFONI */

@media (max-width: 575px) {
  body {
    font-size: 15px;
    background-attachment: scroll;
  }

  .site-header {
    padding: 18px 0;
  }

  .brand {
    gap: 11px;
  }

  .brand-icon {
    width: 49px;
    height: 49px;
    font-size: 26px;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .intro {
    padding: 27px 0 20px;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .intro-text {
    font-size: 0.95rem;
  }

  .search-panel {
    padding: 18px !important;
  }

  .controls .btn {
    width: 100%;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .word-column {
    margin-bottom: 19px;
  }

  .word-card {
    border-radius: 0;

    box-shadow:
      0 18px 39px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.19);
  }

  .flip-card,
  .flip-card-inner,
  .flip-face {
    min-height: 235px;
  }

  .flip-face {
    padding: 24px 19px;
  }

  .word-english,
  .word-translation,
  .example-english,
  .example-serbian {
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 650;
  }

  .word-label {
    margin-bottom: 15px;
    font-size: 0.68rem;
  }

  .card-actions {
    gap: 8px;
    padding: 12px;
  }

  .card-actions .btn {
    flex: 1 1 125px;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  .learning-panel {
    padding: 20px !important;
  }

  .site-footer {
    margin-top: 32px !important;
    padding: 26px 0 !important;
  }

  .word-card:hover {
    transform: none;
  }

  /* Na dodirnom ekranu nema potrebe za lebdećim efektom */
  .word-card::after {
    opacity: 0.7;
  }
}

/* 17. VEOMA MALI EKRANI */

@media (max-width: 360px) {
  .brand-title {
    font-size: 1.13rem;
  }

  .intro h1 {
    font-size: 1.7rem;
  }

  .flip-card,
  .flip-card-inner,
  .flip-face {
    min-height: 220px;
  }

  .flip-face {
    padding: 20px 14px;
  }

  .word-english,
  .word-translation,
  .example-english,
  .example-serbian {
    font-size: 1rem;
  }

  .card-actions .btn {
    flex-basis: 100%;
  }
}

/* 18. PRISTUPAČNOST I SMANJENO KRETANJE */

@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;
  }
}
