/* ================= ZÁKLAD ================= */
:root {
    --bg-main: #0f131a;
    --bg-dark: #141923;
    --bg-card: #1b2130;
    --text-main: #e6e8ec;
    --text-muted: #9aa0ad;
    --accent: #3b82f6;
    --border-soft: rgba(255,255,255,0.08);
}

/* ================= ANIMACE A KEYFRAMES ================= */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

/* Modrý scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(111, 227, 255, 0.6), rgba(59, 130, 246, 0.8));
    border-radius: 6px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(111, 227, 255, 0.8), rgba(59, 130, 246, 1));
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.8) var(--bg-dark);
}

/* Statický grain efekt - základ (nejníž) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.6;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* Canvas pro jemné částice - POD obsahem, jemně rozjasnění */
#particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    mix-blend-mode: normal;
}

/* Obsah NAD částicemi */
body > *:not(#particles-canvas) {
    position: relative;
    z-index: 100;
}

/* ================= PŘÍSTUPNOST ================= */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

/* ================= NAVBAR ================= */
.navbar {
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    display: flex !important;
    visibility: visible !important;
}

.navbar-brand {
    letter-spacing: 1px;
    background: linear-gradient(90deg, rgba(111,227,255,0.95), rgba(168,85,247,0.90));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
}

/* ================= NAVBAR – sjednocení menu + hover (varianta A) ================= */

/* Vystředění menu mezi logem a ikonami */
@media (min-width: 992px) {
  .navbar .navbar-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .navbar .navbar-nav {
    flex-grow: 0;
    margin: 0 auto !important;
  }
  
  .navbar .nav-social {
    flex-shrink: 0;
  }
  
  /* Skrýt spacer - už není potřeba */
  .navbar .nav-spacer {
    display: none;
  }
}

/* Linky v menu – underline + lift */
.navbar .navbar-nav .nav-link{
  position: relative;
  padding: .5rem .35rem;
  background: linear-gradient(90deg, rgba(111,227,255,0.85), rgba(168,85,247,0.80));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .85;
  transition: opacity .18s ease, transform .18s ease;
}

.navbar .navbar-nav .nav-link::after{
  content:"";
  position:absolute;
  left:.25rem;
  right:.25rem;
  bottom:.25rem;
  height:2px;
  background: linear-gradient(90deg, rgba(111,227,255,0.9), rgba(168,85,247,0.85));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
  opacity: .9;
}

.navbar .navbar-nav .nav-link:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.navbar .navbar-nav .nav-link:hover::after{
  transform: scaleX(1);
}

/* Active – trvalé podtržení */
.navbar .navbar-nav .nav-link.active{
  opacity: 1;
}
.navbar .navbar-nav .nav-link.active::after{
  transform: scaleX(1);
}

/* Ikony vpravo (Discord/YouTube) */
.navbar .nav-social .nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(111,227,255,0.3);
  color: rgba(111,227,255,0.9);
  opacity:.85;
  text-decoration:none;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.navbar .nav-social .nav-icon:hover{
  opacity:1;
  transform: translateY(-1px);
  border-color: rgba(111,227,255,0.6);
  color: rgba(111,227,255,1);
  box-shadow: 0 0 15px rgba(111,227,255,0.3);
}

/* ================= HERO ================= */
.hero {
    min-height: 40vh;
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
    z-index: 3;

    background:
        radial-gradient(circle at 15% 10%, rgba(59,130,246,0.22), transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(168,85,247,0.16), transparent 45%),
        linear-gradient(180deg, #0b0f15 0%, #0f131a 40%, #141923 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    overflow: hidden;
}

/* jemná "mlha" + viněta */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.06), transparent 55%),
        radial-gradient(circle at 50% 120%, rgba(0,0,0,0.65), transparent 60%);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

/* jemné "zrno" (noise efekt) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
    opacity: 0.25;
    mix-blend-mode: overlay;
    pointer-events: none;
}


.hero > .container {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

/* text v hero */
.hero h1 {
    text-shadow: 0 10px 40px rgba(0,0,0,0.6);
    animation: float 6s ease-in-out infinite;
}

.hero p {
    color: var(--text-muted);
}

/* ================= INDEX – brand headline + SEO lead ================= */
.hero-title-brand{
  /* jemný gradient ladící s hero pozadím */
  background: linear-gradient(90deg, rgba(111,227,255,0.95), rgba(168,85,247,0.90));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead-seo{
  max-width: 720px;
}

/* ================= ABOUT SECTION ================= */
.about-wrap{
  background: rgba(27, 33, 48, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.about-title{
  font-weight: 800;
  margin-bottom: 12px;
}

.about-text{
  color: rgba(230,232,236,0.78);
  line-height: 1.65;
}

/* „kreditní karta“ CTA */
.support-banner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(59,130,246,0.22), transparent 55%),
    radial-gradient(900px 220px at 95% 20%, rgba(168,85,247,0.18), transparent 55%),
    rgba(0,0,0,0.18);

  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.support-badge{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(230,232,236,0.88);
  margin-bottom: 8px;
}

.support-title{
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.support-sub{
  color: rgba(230,232,236,0.75);
  font-size: .95rem;
  line-height: 1.45;
  max-width: 520px;
}

.support-banner-left {
  flex: 1;
}

/* mobil: banner pod sebe */
@media (max-width: 720px){
  .support-banner{
    flex-direction: column;
    align-items: stretch;
  }
  .support-cta{
    width: 100%;
  }
}

/* ================= TLAČÍTKA - UNIFIED DESIGN SYSTEM ================= */

/* Primary CTA buttons (hero, support) */
.hero-cta,
.support-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(59,130,246,0.15));
  border: 1px solid rgba(59,130,246,0.4);
  color: rgba(230,232,236,0.95);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
  
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover,
.support-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.6);
  background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(59,130,246,0.25));
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
  color: #fff;
}

.hero-cta:active,
.support-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59,130,246,0.2);
}

/* Secondary outline buttons */
.btn-outline-light {
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-light:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.btn-outline-light:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59,130,246,0.1);
}

/* Primary solid buttons */
.btn-primary {
  background: linear-gradient(135deg, rgba(59,130,246,0.9), rgba(59,130,246,0.7));
  border: 1px solid rgba(59,130,246,0.5);
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(59,130,246,1), rgba(59,130,246,0.85));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
  border-color: rgba(59,130,246,0.7);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}

/* ================= SEKCE ================= */
section h2 {
    font-weight: 700;
}
/* ================= FOOTER ================= */
footer {
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
}

/* ================= GLASS / GLOW KARTY ================= */
.card {
    background: rgba(27, 33, 48, 0.82);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    color: var(--text-main);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Bootstrap sloupce s kartami - stejná výška */
.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.row > [class*="col-"] > .card {
    flex: 1;
}

/* jemný "shine" přes kartu */
.card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.10), transparent 65%);
    transform: translateX(-40%) rotate(10deg);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
    transform: translateX(40%) rotate(10deg);
}

/* Gradient border efekt */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(168, 85, 247, 0.4));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 0 1px rgba(59,130,246,0.25),
        0 0 40px rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.35);
}

.card p { 
    color: var(--text-muted); 
}

/* ================= REVEAL ANIMACE ================= */
.reveal-left, .reveal-right, .reveal-bottom {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }

.is-visible {
    opacity: 1 !important;
    transform: none !important;
}
/* ================= STATS BAR ================= */
.stats-bar {
  margin-top: -70px;          /* "přesah" přes hero */
  padding-bottom: 30px;
  position: relative;
  z-index: 5;
}
.stats-bar.no-overlap {
  margin-top: 20px;           /* Pro homepage bez překrývání */
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;

  background: rgba(27, 33, 48, 0.78);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.stat {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.10);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
  background: rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.10);
}

.stat-number {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: rgba(59,130,246,0.95);
}

.stat-label {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* responsivita */
@media (max-width: 992px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
}

/* ================= SECTION TEXT ================= */
.section-kicker {
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
}
.section-sub { color: var(--text-muted); }

/* ================= TRANSLATION CARDS 2:3 ================= */
.trans-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text-main);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(27,33,48,0.80);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

.trans-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
}

.trans-cover {
  position: relative;
  aspect-ratio: 2 / 3;       /* to je ten "plakát" */
  background: rgba(0,0,0,0.15);
}

.trans-cover-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.cover-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-weight: 800;
  letter-spacing: 2px;
}

.trans-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

/* ===== CARD: bottom badges přes obrázek ===== */
.card-bottombadges{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.card-bottombadges .d-badge{
  font-size: 11px;
  padding: 5px 9px;
  backdrop-filter: blur(8px);
}

.card-bottombadges .d-badge i{
  opacity: .9;
}

/* ===== CARD BADGES – barevná varianta (jako detail hry) ===== */
.card-bottombadges .d-badge {
  font-weight: 600;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* ===== BADGE COLORS (unified for all card badges) ===== */
.card-bottombadges .b-blue,
.card-badges-stack .b-blue {
  color: #8ab6ff;
  border-color: rgba(138,182,255,.45);
  background: rgba(30,60,120,.35);
}
.card-bottombadges .b-yellow,
.card-badges-stack .b-yellow {
  color: #ffd36a;
  border-color: rgba(255,211,106,.45);
  background: rgba(120,90,20,.35);
}
.card-bottombadges .b-sky,
.card-badges-stack .b-sky {
  color: #6fe3ff;
  border-color: rgba(111,227,255,.45);
  background: rgba(20,80,100,.35);
}
.card-bottombadges .b-green,
.card-badges-stack .b-green {
  color: #7dffb2;
  border-color: rgba(125,255,178,.45);
  background: rgba(20,90,50,.35);
}
.card-bottombadges .b-purple,
.card-badges-stack .b-purple {
  color: #d7b6ff;
  border-color: rgba(215,182,255,.45);
  background: rgba(80,40,120,.32);
}
.card-bottombadges .b-orange,
.card-badges-stack .b-orange {
  color: #ffb380;
  border-color: rgba(255,179,128,.45);
  background: rgba(120,60,20,.35);
}
.card-bottombadges .b-gray,
.card-badges-stack .b-gray {
  color: #ddd;
  border-color: rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
}

/* ===== CARD BADGES – responsivní chování ===== */
.card-bottombadges{
  left: 8px;
  right: 8px;
  bottom: 8px;
  gap: 6px;
  flex-wrap: nowrap;        /* hlavní: nebudou se lámat na více řádků */
  overflow: hidden;         /* nic nepřeteče */
}

.card-bottombadges .d-badge{
  display: inline-flex;
  align-items: center;
  min-width: 0;

  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.2;
  box-sizing: border-box;
}

/* menší karty (typicky mobil/užší sloupce) */
@media (max-width: 640px){
  .card-bottombadges{
    left: 6px;
    right: 6px;
    bottom: 6px;
    gap: 4px;
  }
  .card-bottombadges .d-badge{
    font-size: 10px;
    padding: 4px 7px;
  }
  .card-bottombadges .d-badge i{
    margin-right: 4px !important;
  }
}

/* úplně úzké – radši schovat nejméně důležité (žánr), aby to nikdy nedělalo bordel */
@media (max-width: 420px){
  .card-bottombadges .d-badge:first-child{
    display: none; /* žánr */
  }
}

/* ===== K5: CARD badge stack (stav/typ/žánr) vlevo nahoře ===== */
.card-badges-stack{
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;

  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;

  max-width: calc(100% - 20px);
}

/* badge v stacku: vždy 1 řádek, žádné "ztrácení" do vedlejších badge */
.card-badges-stack .d-badge{
  font-size: 11px;
  padding: 5px 9px;
  backdrop-filter: blur(8px);

  display: inline-flex;
  align-items: center;
  min-width: 0;

  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  font-weight: 600;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.card-badges-stack .d-badge i{
  opacity: .9;
}

/* Badge colors are defined above in unified section */

/* mobil: menší padding/font */
@media (max-width: 640px){
  .card-badges-stack{
    left: 8px;
    top: 8px;
    max-width: calc(100% - 16px);
  }
  .card-badges-stack .d-badge{
    font-size: 10px;
    padding: 4px 7px;
  }
  .card-badges-stack .d-badge i{
    margin-right: 4px !important;
  }
}

/* meta necháváme kvůli searchi/filtrům, ale vizuálně ho schováme */
.trans-meta--hidden{
  display: none !important;
}

.trans-badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
}

.badge-pill.soft {
  font-weight: 700;
  opacity: 0.85;
}

/* FINÁL: trans-body (flex pro správné rozložení) */
.trans-body {
  padding: 12px 12px 14px;
  min-height: 128px;     /* udržuje minimální výšku pro konzistenci */
  flex: 1;               /* Vyplní dostupný prostor v kartě */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FINÁL: title max 2 řádky, nikdy víc */
.trans-title{
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  padding-bottom: 4px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Popis hry na kartě - max 3 řádky */
.trans-description {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Překladatel na kartě - 1 řádek, vždy dole */
.trans-translator {
  font-size: 0.75rem;
  margin-top: auto;
  padding-top: 8px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trans-translator a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.trans-translator a:hover {
  color: #667eea;
  text-decoration: underline;
}

/* FINÁL: "Přeložil" vždy 1 řádek, useknout + VŽDY U SPODU */
.trans-body .js-prof-link{
  flex: 0 0 auto;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wrapper pro tlačítko (div s .mt-2 třídou) - přilepí ho dolu */
.trans-body .mt-2 {
  margin-top: auto !important;
}

.trans-meta {
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 8px;
}

/* theme glowy varianty */
.theme-ai:hover {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55), 0 0 32px rgba(59,130,246,0.14);
}
.theme-manual:hover {
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55), 0 0 32px rgba(16,185,129,0.12);
}
.theme-mixed:hover {
  border-color: rgba(168,85,247,0.35);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55), 0 0 32px rgba(168,85,247,0.12);
}

/* ================= FILTER ROW ================= */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.30);
  box-shadow: 0 0 22px rgba(59,130,246,0.10);
}

.filter-btn.is-active {
  background: rgba(59,130,246,0.20);
  border-color: rgba(59,130,246,0.40);
}

/* skryté položky databáze */
.db-hidden {
  display: none !important;
}
/* ================= PROJECT DETAIL ================= */
.detail-grid .card { height: 100%; }

.progress-wrap {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
}

.progress-bar-outer {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  width: var(--p, 0%);
  background: rgba(59,130,246,0.55);
  box-shadow: 0 0 22px rgba(59,130,246,0.20);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.08);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(59,130,246,0.9);
}

.status-active .dot { background: rgba(59,130,246,0.95); }
.status-paused .dot { background: rgba(245,158,11,0.95); }
.status-done .dot { background: rgba(16,185,129,0.95); }

.download-box a {
  text-decoration: none;
}

/* ================= CARD STATUS (INDEX) ================= */
.card-status-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;

  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}
/* Top-right badges (status + genre) */
.card-topbadges{
  position:absolute;
  right:10px;
  top:10px;
  z-index:3;
  display:flex;
  gap:6px;
  align-items:center;
}
.card-topbadges .card-status-badge{
  position:static;
  right:auto;
  top:auto;
}
.card-genre-badge{
  font-size:0.72rem;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.35);
  backdrop-filter:blur(8px);
  text-transform:uppercase;
  letter-spacing:0.02em;
}


.mini-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  z-index: 3;
}

.mini-progress-inner {
  height: 100%;
  width: var(--p, 0%);
  background: rgba(59,130,246,0.55);
}

/* barvy podle stavu */
/* DB items - flex kontejner pro stejnou výšku */
.db-item {
  display: flex;
  flex-direction: column;
}

.db-item[data-status="active"] .card-status-badge { content: ""; }
.db-item[data-status="done"]   .card-status-badge { content: ""; }
.db-item[data-status="paused"] .card-status-badge { content: ""; }

/* fallback text barvy přes class na body badge (nastaví JS) */
.card-status-badge.is-active { box-shadow: 0 0 18px rgba(59,130,246,0.18); }
.card-status-badge.is-done   { box-shadow: 0 0 18px rgba(16,185,129,0.16); }
.card-status-badge.is-paused { box-shadow: 0 0 18px rgba(245,158,11,0.14); }

/* ================= FORM CONTROLS - UNIFIED SYSTEM ================= */
.form-control,
.form-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: rgba(230, 232, 236, 0.95);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown option text */
.form-select option {
  background: #1a1f2e;
  color: rgba(230, 232, 236, 0.95);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(59,130,246,0.4);
  color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  outline: none;
}

.form-control::placeholder {
  color: rgba(230,232,236,0.45);
}

.form-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Legacy support */
.db-search .form-control{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}
.db-search .form-control::placeholder{
  color: rgba(230,232,236,0.55);
}
.no-reveal .reveal-left,
.no-reveal .reveal-right,
.no-reveal .reveal-bottom {
  opacity: 1 !important;
  transform: none !important;
}

/* === FIX: dynamicky vykreslené karty (index + preklady) musí být vidět hned === */
#dbIndexGrid .reveal-bottom,
#dbAllGrid .reveal-bottom {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== DETAIL PAGE (podobné jako screenshot) ===== */
.detail-page .detail-hero{
  padding-top: 90px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(900px 320px at 20% 10%, rgba(60,140,255,.20), transparent 60%),
              radial-gradient(900px 320px at 85% 10%, rgba(160,80,255,.18), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.detail-hero-inner{ max-width: 920px; }
.detail-title{ font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; margin-top: 12px; }
.detail-sub{ color: rgba(255,255,255,.7); margin-top: 10px; max-width: 720px; }

.detail-badges{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 10px; }
.d-badge{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.b-green{ background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.35); }
.b-yellow{ background: rgba(250,204,21,.18); border-color: rgba(250,204,21,.35); }
.b-blue{ background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.35); }
.b-gray{ background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.30); }
.b-sky{ background: rgba(56,189,248,.14); border-color: rgba(56,189,248,.30); }
.b-red{ background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.30); }
.b-purple{ background: rgba(128,0,128,.18); border-color: rgba(128,0,128,.35); }
.b-orange{ background: rgba(251,146,60,.18); border-color: rgba(251,146,60,.35); }

.detail-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(51, 65, 85, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.detail-card-head {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.15);
}
.detail-card-head i {
  color: #93c5fd;
}
.detail-card-body {
  padding: 24px;
  color: rgba(255, 255, 255, 0.9);
}
.detail-pre {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  white-space: pre-wrap;
}

.detail-list{ margin:0; padding-left: 18px; }
.detail-list li{ margin: 6px 0; color: rgba(255,255,255,.80); }

.detail-side,
.detail-sidebar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(51, 65, 85, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  position: sticky;
  top: 90px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.detail-side-top {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.detail-team {
  font-weight: 800;
  font-size: 20px;
  color: #f8fafc;
}
.detail-team-link {
  display: inline-block;
  margin-top: 8px;
  color: rgba(56, 189, 248, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.detail-team-link:hover {
  color: rgba(147, 197, 253, 1);
  text-decoration: underline;
}

.detail-side-info .info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(203, 213, 225, 0.8);
  font-size: 14px;
}
.detail-side-info .info-row:last-child {
  border-bottom: none;
}
.detail-side-info .info-row strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.detail-support {
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.1);
  padding: 16px;
  margin-top: 16px;
}
.detail-support-title {
  font-weight: 800;
  margin-bottom: 8px;
  color: #fbbf24;
}
.detail-support-body {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}



/* ===== DETAIL cover image ===== */
.detail-cover-img{
  width: 100%;
  max-width: 920px;
  height: clamp(180px, 28vw, 320px);
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

/* ===== DETAIL STRÁNKA HRY – OBRÁZEK ===== */
.detail-page-image {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

#pageImageWrap{
  position: relative;
}

#pageImageWrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.55)
  );
  pointer-events:none;
  border-radius:16px;
}


/* ===== Sidebar: Změny / poznámky pod tlačítkem ===== */
.detail-side-changelog{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}

.detail-side-changelog-head{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}

.detail-side-changelog-body{
  padding: 12px 12px;
  max-height: 220px;
  overflow: auto;
}

.detail-side-changelog-body .detail-list li{
  margin: 6px 0;
}

/* ========================================================= */
/* ================= ADMIN – KONTRAST TEXTU ================ */
/* ========================================================= */

/* Texty typu "Tip" a status zprávy */
body.no-reveal .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Stavové hlášky (msg dole) */
#msg {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Alert warning v adminu – lepší čitelnost */
.alert-warning {
  color: #2b1e00;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

/* ===== Support card (podpora překladatele) ===== */
.support-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  opacity: 0.1;
  z-index: 0;
}
.support-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.support-head i {
  font-size: 32px;
  color: #f43f5e;
  flex-shrink: 0;
}
.support-title {
  font-size: 24px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.support-sub {
  font-size: 15px;
  color: rgba(203, 213, 225, 0.8);
  line-height: 1.5;
}
.support-account {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 0;
}
.support-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 4px;
  font-weight: 600;
}
.support-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.support-code {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

/* ===== QR Payment (unified partial) ===== */
.qr-payment-img {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.account-display {
  background: var(--darker, #1a1a2e);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text, #cbd5e1);
}

/* Admin: lepší čitelnost hintů pod obrázky */
.admin-hint {
  color: rgba(255, 255, 255, 0.72);
}

.admin-hint code {
  color: rgba(255, 105, 180, 0.95); /* zvýraznění cesty */
}

/* Admin: zviditelnění všech .form-text (jen na admin stránce) */
body.no-reveal .form-text {
  color: rgba(255, 255, 255, 0.72) !important;
}
body.no-reveal .form-text code {
  color: rgba(255, 105, 180, 0.95);
}

/* Karty: cover nesmí roztahovat kartu */
.trans-card .trans-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #0a0a12;
}

/* Blurred background for game cards */
.trans-card .trans-cover::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.5);
  transform: scale(1.1);
  z-index: 0;
}

.trans-card .trans-cover img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

/* Translator label - stacked layout */
.trans-translator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.trans-translator-label {
  opacity: 0.7;
  font-size: 0.8rem;
}
.trans-translator-name {
  padding-left: 3ch;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.trans-translator-name:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* ===== RESPONSIVNÍ ÚPRAVY VÝŠKY KARTY ===== */
@media (max-width: 640px){
  .trans-title{ font-size: 20px; }
  .trans-body{ min-height: 118px; max-height: none; }
}

@media (max-width: 420px){
  .trans-title{ font-size: 18px; }
  .trans-body{ min-height: 112px; max-height: none; }
}

/* ===== K4: 5 karet v řadě na desktopu ===== */
/* Cílíme na sloupce Bootstrapu (col-*) uvnitř .cards-grid-5 */
@media (min-width: 1200px){
  .cards-grid-5 > [class*="col-"]{
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 20% !important;
  }
  .cards-grid-5{
    justify-content: flex-start;
  }
}

/* ===== Download: "Probíhají aktualizace" (disabled button look) ===== */
.download-updating{
  pointer-events: none;
  cursor: not-allowed;

  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;               /* KLÍČ: mezera mezi ikonou a textem */
  white-space: nowrap;

  /* vizuál tlačítka (teplý "warning" styl) */
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: rgba(255, 223, 150, 0.95);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 10px 30px rgba(0,0,0,0.28);

  position: relative;
  overflow: hidden;
}

/* text – ať je to "tlačítkové" */
.download-updating span{
  font-weight: 800;
  letter-spacing: .2px;
}

/* animace pera/brku – BEZ posunu doprava, ať se to nikdy nepřekrývá s textem */
.download-updating i{
  display: inline-block;
  transform-origin: 25% 85%;
  animation: penWrite 1.05s ease-in-out infinite;
  margin: 0;               /* jistota */
}

@keyframes penWrite{
  0%   { transform: rotate(-12deg); opacity: .92; }
  45%  { transform: rotate(7deg);   opacity: 1; }
  85%  { transform: rotate(-8deg);  opacity: .96; }
  100% { transform: rotate(-12deg); opacity: .92; }
}

/* shimmer efekt přes tlačítko */
.download-updating::after{
  content: "";
  position: absolute;
  top: 0; left: -55%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.12),
    transparent
  );
  animation: updShimmer 1.6s ease-in-out infinite;
}

@keyframes updShimmer{
  0%   { transform: translateX(0); }
  100% { transform: translateX(230%); }
}

/* tečky "..." za text */
.download-updating-dots::after{
  content: "";
  display: inline-block;
  margin-left: 2px;
  width: 16px;            /* rezervace místa – nic neskáče */
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots{
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}
/* === TRANSLATOR CARD (Credit Card Style) === */
.translator-card {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 320px;
}

.translator-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.translator-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  opacity: 0.15;
  z-index: 0;
}

.translator-card-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.translator-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.translator-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.translator-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.translator-badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.translator-card-body {
  flex: 1;
  margin-bottom: 20px;
}

.translator-name {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.translator-desc {
  color: rgba(203, 213, 225, 0.8);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.translator-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.translator-account {
  margin-bottom: 16px;
}

.account-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 4px;
  font-weight: 600;
}

.account-number {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.translator-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.translator-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.translator-icon-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
  transform: translateY(-2px);
}

.translator-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.translator-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
  transform: translateY(-2px);
}

.translator-btn i {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .translator-card {
    min-height: 280px;
  }
  
  .translator-logo {
    width: 64px;
    height: 64px;
  }
  
  .translator-name {
    font-size: 19px;
  }
}

.translator-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #93c5fd;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
}

/* === TRANSLATOR PROFILE PAGE === */
.translator-profile-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 40px;
  margin-top: 56px;
}

.translator-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.translator-profile-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.translator-profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.translator-profile-logo .translator-logo-placeholder {
  font-size: 48px;
}

.translator-profile-info {
  flex: 1;
}

.translator-profile-name {
  font-size: 36px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.translator-profile-desc {
  font-size: 18px;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .translator-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .translator-profile-logo {
    width: 100px;
    height: 100px;
  }
  
  .translator-profile-name {
    font-size: 28px;
  }
  
  .translator-profile-desc {
    font-size: 16px;
  }
}

/* === TRANSLATOR SUPPORT BANNER (Unified Style) === */
.translator-support-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.translator-support-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  opacity: 0.1;
  z-index: 0;
}

.translator-support-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.translator-support-header i {
  font-size: 32px;
  color: #f43f5e;
  flex-shrink: 0;
}

.translator-support-title {
  font-size: 24px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.translator-support-desc {
  font-size: 15px;
  color: rgba(203, 213, 225, 0.8);
  line-height: 1.5;
}

.translator-support-account {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.translator-support-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.translator-support-btn {
  flex: 1;
  min-width: 160px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.translator-support-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
  transform: translateY(-2px);
}

.translator-support-btn-paypal {
  background: rgba(0, 112, 240, 0.15);
  border-color: rgba(0, 112, 240, 0.3);
  color: #60a5fa;
}

.translator-support-btn-paypal:hover {
  background: rgba(0, 112, 240, 0.25);
  border-color: rgba(0, 112, 240, 0.5);
  color: #93c5fd;
}

@media (max-width: 768px) {
  .translator-support-banner {
    padding: 24px;
  }
  
  .translator-support-title {
    font-size: 20px;
  }
  
  .translator-support-actions {
    flex-direction: column;
  }
  
  .translator-support-btn {
    min-width: 100%;
  }
}

/* === DETAIL PAGE SIDEBAR COMPONENTS === */
.detail-translator {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-translator-name {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}

.detail-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.detail-meta li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.detail-meta li:last-child {
  border-bottom: none;
}

.detail-meta li span {
  color: rgba(203, 213, 225, 0.7);
}

.detail-meta li strong {
  color: #f8fafc;
  font-weight: 600;
}

.detail-support {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.detail-support h3 {
  margin-bottom: 8px;
  color: #fbbf24;
}

.detail-account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.detail-account .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(148, 163, 184, 0.7);
  font-weight: 600;
  width: 100%;
}

.detail-account code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #fbbf24;
  background: none;
  padding: 0;
}

.detail-changelog {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
}

.detail-changelog h3 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.detail-changelog-content {
  font-size: 14px;
  color: rgba(203, 213, 225, 0.8);
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

/* === DOWNLOAD BUTTON (Detail Page) === */
.download-btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #3b82f6 100%);
  background-size: 200% 200%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 2px 4px rgba(0, 0, 0, 0.2) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: downloadGradient 3s ease infinite;
}

@keyframes downloadGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.download-btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.download-btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(59, 130, 246, 0.5),
    0 0 60px rgba(139, 92, 246, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.download-btn-hero:hover::before {
  left: 100%;
}

.download-btn-hero:active {
  transform: translateY(-1px) scale(1.01);
}

.download-btn-hero i {
  font-size: 22px;
  animation: downloadBounce 2s ease-in-out infinite;
}

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

/* Unavailable state */
.download-btn-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(100, 100, 100, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

/* === DYNAMIC GAMES GALLERY === */
.games-gallery-section {
  padding: 20px 0;
  margin-top: 58px;  /* Posunuto o 4px nahoru */
  background: transparent;
  position: relative;
  overflow: visible;  /* Změna - clipping dělá vnitřní element */
  min-height: 400px;
}

/* Odstraněn shimmer efekt - způsoboval oddělení */

.games-gallery {
  position: relative;
  width: 100%;
  height: 360px;  /* Zvětšeno z 260px */
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  /* clip-path zajistí ořezání i pro transformované elementy */
  clip-path: inset(0 0 0 0);
}

.gallery-card {
  position: absolute;
  width: 200px;
  transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
  animation: cardFadeIn 2s ease-in-out forwards;
  z-index: 1;
  transition: z-index 0.3s ease;
}

.gallery-card.fading-out {
  animation: cardFadeOut 2s ease-in-out forwards;
}

/* Animace: karta se objeví plynule - pouze fade */
@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
  }
}

/* Animace: karta mizí - pouze fade */
@keyframes cardFadeOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
  }
}

.gallery-card-inner {
  position: relative;
  width: 200px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Glow border efekt */
.gallery-card-inner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(168, 85, 247, 0.4));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover {
  z-index: 100;
}

.gallery-card:hover .gallery-card-inner {
  transform: scale(1.08) translateY(-5px);  /* Zmenšeno z 1.15/-10px */
  box-shadow:
    0 20px 60px rgba(59, 130, 246, 0.5),
    0 0 40px rgba(59, 130, 246, 0.3);
}

.gallery-card:hover .gallery-card-inner::before {
  opacity: 1;
}

.gallery-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-inner img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-overlay {
  transform: translateY(0);
}

.gallery-card-overlay h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .games-gallery-section {
    min-height: 340px;
  }

  .games-gallery {
    height: 300px;
  }

  .gallery-card {
    width: 140px;
  }

  .gallery-card-inner {
    width: 140px;
    height: 210px;
  }
}

/* ================= FOOTER ================= */
.footer-main {
  position: relative;
  z-index: 100;
}

.footer-main a.hover-primary:hover {
  color: rgba(111,227,255,0.9) !important;
  transition: color 0.2s ease;
}

.footer-main .small {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Footer gradient line */
.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111,227,255,0.3) 50%, transparent);
}

@media (max-width: 768px) {
  .footer-main {
    text-align: center;
  }
  
  .footer-main .col-md-6 {
    text-align: center !important;
  }
}

/* Ticker / News Scroller */
.ticker-section {
  background: linear-gradient(90deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
  border-bottom: 1px solid rgba(102,126,234,0.2);
  padding: 6px 0;
  overflow: hidden;
  position: fixed;
  top: 46px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.ticker-wrapper {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.ticker-content {
  display: flex;
  gap: 50px;
  padding-right: 50px;
}

.ticker-item {
  white-space: nowrap;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.ticker-item::before {
  content: "★";
  margin-right: 10px;
  color: #667eea;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-wrapper:hover {
  animation-play-state: paused;
}
