@import url('/assets/css/base.css');

/* ===== Public (Phase B: brand) ===== */

.page{
  /* Spacing under header: keep a small gap, but align it with announcement spacing */
  padding: 14px 0 44px;
}

/* Announcement bar (contest) */
.announce{ margin-top: 14px; }
.page > .container > .announce:first-child{ margin-top: 0; }
.announce-inner{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.10);
}
.announce--contest .announce-inner{
  background: linear-gradient(180deg, rgba(255,140,26,.92), rgba(230,118,0,.92));
  color: #140a00;
}
.announce-copy{ display:flex; flex-wrap:wrap; gap: 8px; align-items:baseline; }
.announce-title{ font-weight: 900; }
.announce-text{ opacity: .85; }
.announce--contest .btn-primary{ box-shadow: none; }

/* Announcement bar (LiveTrack) */
.announce--livetrack .announce-inner{
  background: linear-gradient(180deg, rgba(45,170,110,.24), rgba(25,120,80,.18));
  border: 1px solid rgba(90,240,170,.20);
  color: var(--text);
}
.announce--livetrack .announce-text{ opacity: .9; }
.announce--livetrack .btn-primary{
  border: 0;
  color: #02160d;
  background: linear-gradient(180deg, rgba(90,240,170,.95), rgba(45,180,120,.95));
  box-shadow: none;
}
.announce--livetrack .btn-primary:hover{ box-shadow: 0 10px 22px rgba(90,240,170,.18); }

/* Header */
.site-header-inner{
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  box-shadow: 0 12px 26px rgba(0,0,0,.45);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap: 2px;
  line-height:1.1;
}

.brand-title{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 16px;
}

.brand-subtitle{
  font-size: 12px;
  color: var(--muted);
}

.nav{
  margin-left: auto;
}

.header-social{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Mobile navigation (drawer) */
.mobile-nav-toggle{
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
}

.mobile-nav-toggle:hover{ background: rgba(255,255,255,.06); }

.mobile-drawer{ position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.mobile-drawer-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .18s ease; }
.mobile-drawer-panel{
  position:absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(340px, calc(100vw - 20px));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 300px at 30% -20%, rgba(255,128,0,.20), transparent 60%),
    rgba(11,11,12,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 120px rgba(0,0,0,.65);
  transform: translateX(16px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  display:flex;
  flex-direction:column;
  gap: 14px;
  padding: 14px;
}

.mobile-drawer-head{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.mobile-drawer-title{ font-weight: 900; letter-spacing: .02em; }
.mobile-drawer-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.mobile-drawer-close:hover{ background: rgba(255,255,255,.06); }

.mobile-nav{ display:flex; flex-direction:column; gap: 8px; }
.mobile-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-decoration:none;
  font-weight: 800;
}
.mobile-nav a:hover{ background: rgba(255,255,255,.05); }
.mobile-nav a.is-active{
  color: #000;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border: 0;
}

.mobile-drawer-social{ display:flex; gap: 10px; align-items:center; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.10); }

body.is-drawer-open .mobile-drawer{ pointer-events:auto; }
body.is-drawer-open .mobile-drawer-backdrop{ opacity: 1; }
body.is-drawer-open .mobile-drawer-panel{ transform: translateX(0); opacity: 1; }

@media (max-width: 860px){
  .nav{ display:none; }
  .header-social{ display:none; }
  .mobile-nav-toggle{ display:inline-flex; }
}

/* Home hero */
.home-hero{
  padding: 24px 0 10px;
}

.home-hero-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items:center;
  padding: 18px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(800px 300px at 10% -10%, rgba(255,128,0,.18), transparent 60%),
    radial-gradient(700px 260px at 90% 0%, rgba(255,50,50,.10), transparent 60%),
    rgba(255,255,255,.02);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

@media (min-width: 860px){
  .home-hero-inner{ grid-template-columns: 1.3fr .7fr; padding: 22px 24px; }
}

.home-hero-title{
  margin: 0;
  font-size: 32px;
  letter-spacing: .2px;
}

.home-hero-lead{
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text);
  font-weight: 800;
}

.home-hero-sub{
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.home-hero-intro{ margin-top: 12px; }

.home-hero-mark{ display:none; justify-content:flex-end; }

@media (min-width: 860px){
  .home-hero-mark{ display:flex; }
}

.home-hero-mark-ring{
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
  overflow:hidden;
  opacity: .9;
}

.home-hero-mark-ring img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Stream bar */
.stream-bar{ margin-top: 16px; }

.stream-bar-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(90deg, rgba(255,128,0,.12), rgba(255,255,255,.02) 55%),
    rgba(255,255,255,.02);
}

@media (min-width: 860px){
  .stream-bar-inner{ grid-template-columns: 160px 1fr 240px; align-items:center; }
}

.stream-bar-label{ color: var(--muted-2); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.stream-bar-main{ display:flex; flex-direction:column; gap: 2px; }
.stream-bar-time{ font-weight: 900; }
.stream-bar-title{ color: var(--muted); }
.stream-bar-more{ color: var(--muted-2); font-size: 13px; }
.stream-schedule{ display:flex; flex-direction:column; gap: 8px; }
.stream-row{ display:flex; flex-wrap:wrap; gap: 10px; align-items:baseline; }
.stream-when{ font-weight: 900; }
.stream-what{ color: var(--muted); }
.stream-empty-title{ font-weight: 900; }
.stream-empty-text{ color: var(--muted); margin-top: 4px; }

.stream-bar-side{ display:flex; flex-direction:column; gap: 10px; align-items:flex-start; }
.live-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,60,60,.35);
  background: rgba(255,60,60,.12);
  color: #ffd6d6;
  font-weight: 900;
  font-size: 12px;
}
.live-muted{ height: 0; }

/* Promo */
.promo{ margin-top: 16px; }
.promo-inner{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items:center;
  justify-content:space-between;
  padding: 16px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 260px at 10% 0%, rgba(255,128,0,.25), transparent 60%),
    radial-gradient(900px 260px at 90% 0%, rgba(255,50,50,.14), transparent 60%),
    rgba(255,255,255,.03);
  box-shadow: 0 26px 80px rgba(0,0,0,.5);
}

.promo-kicker{ color: var(--muted-2); font-weight: 900; letter-spacing: .10em; text-transform: uppercase; font-size: 12px; }
.promo-title{ margin: 4px 0 0; }
.promo-text{ margin: 6px 0 0; color: var(--muted); max-width: 70ch; }

/* Empty state */
.empty-box{
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
}
.empty-title{ font-weight: 900; }
.empty-text{ color: var(--muted); margin-top: 4px; }

/* Sections */
.section{
  margin-top: 18px;
}

.section-head{
  display:flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title{
  margin: 0;
}

.section-link{
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.section-link:hover{
  color: var(--accent);
  text-decoration: none;
}

/* News list */
.news-list{
  display:flex;
  flex-direction:column;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow:hidden;
}

.news-item{
  padding: 14px 16px;
  text-decoration:none;
  border-top: 1px solid rgba(255,255,255,.07);
}

.news-item:first-child{ border-top: 0; }

.news-item:hover{ background: rgba(255,255,255,.03); text-decoration:none; box-shadow: inset 3px 0 0 var(--accent); }

.news-item:focus-visible{ outline: none; box-shadow: inset 3px 0 0 var(--accent); background: rgba(255,255,255,.03); }

.news-title{ font-weight: 900; }
.news-excerpt{ color: var(--muted); margin-top: 4px; }

/* Post tiles */
.post-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px){
  .post-grid{ grid-template-columns: 1fr 1fr; }
}

.post-tile{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  transition: transform .08s ease, border-color .12s ease;
}

.post-tile::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background: var(--accent);
  opacity:0;
  transition: opacity .12s ease;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  pointer-events:none;
  z-index: 2;
}

.post-tile:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.20); }
.post-tile:focus-within{ border-color: rgba(255,255,255,.20); }

.post-tile:hover::before,
.post-tile:focus-within::before{ opacity:1; }

.post-tile-link{ position:relative; z-index:1; display:block; padding: 16px; text-decoration:none; }
.post-tile-link:hover{ text-decoration:none; }
.post-tile-link:focus-visible{ outline:none; }

.post-tile-img{ margin: -16px -16px 12px; overflow:hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.post-tile-img img{ width:100%; height: 160px; object-fit:cover; display:block; }
.post-tile-title{ margin: 0; }
.post-tile-text{ margin: 8px 0 0; color: var(--muted); }

/* Card grid */
.grid{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}

.grid-3 > *{ grid-column: span 12; }
.grid-2 > *{ grid-column: span 12; }

@media (min-width: 760px){
  .grid-3 > *{ grid-column: span 4; }
  .grid-2 > *{ grid-column: span 6; }
}

.card-link{
  display:block;
  padding: 16px;
  text-decoration:none;
}

.card-link:hover{
  text-decoration:none;
}

/* ===== News index (/novinky) ===== */
.news-grid > *{ grid-column: span 12; }

.news-card{
  position: relative;
  overflow: hidden;
  transition: transform .08s ease, box-shadow .08s ease, border-color .12s ease;
}

.news-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background: var(--accent);
  opacity:0;
  transition: opacity .12s ease;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  pointer-events:none;
}

.news-card:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.20); }
.news-card:focus-within{ border-color: rgba(255,255,255,.20); }
.news-card:hover::before,
.news-card:focus-within::before{ opacity:1; }

.news-card-link{ text-decoration:none; }
.news-card-link:hover{ text-decoration:none; }

.news-card:hover .card-title,
.news-card:focus-within .card-title{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.news-more{
  color: var(--muted-2);
  font-weight: 700;
  white-space: nowrap;
}

.news-card:hover .news-more,
.news-card:focus-within .news-more{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-title{
  margin: 0 0 6px;
  font-size: 16px;
}

.card-meta{
  font-size: 12px;
  color: var(--muted-2);
}

/* Prose / rich content */
.prose{
  color: var(--muted);
  line-height: 1.65;
}

.prose p{ color: var(--muted); }
.prose h2, .prose h3{ color: var(--text); margin-top: 18px; }
.prose a{ color: var(--accent); }
.prose a:hover{ color: #ffd2a3; }
.prose img{ border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.10); }
.prose ul{ padding-left: 18px; }

/* Footer */
.site-footer{
  padding: 28px 0 40px;
}

.footer-inner{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}

.footer-social{
  display:flex;
  gap: 10px;
}

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: #fff;
  transition: transform .08s ease, border-color .12s ease, color .12s ease;
}

.icon-btn--sm{
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.icon-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}

.icon-btn svg{
  width: 18px;
  height: 18px;
  display:block;
}

/* Soutěže: CTA režim (popis + tlačítko v jednom bloku, tlačítko uprostřed) */
.contests-cta__actions{
  display:flex;
  justify-content:center;
  margin-top: 14px;
}

/* Platform hover colors (keep the existing subtle hover motion) */
/* Footer has a generic .site-footer a:hover rule; increase specificity so platform colors win there too. */
.icon-btn--twitch:hover,
.site-footer .icon-btn--twitch:hover{ color: #9146FF; }

.icon-btn--discord:hover,
.site-footer .icon-btn--discord:hover{ color: #5865F2; }

.icon-btn--youtube:hover,
.site-footer .icon-btn--youtube:hover{ color: #FF0000; }

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Embedded content */
.embed-frame{
  width:100%;
  height: 900px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,.20);
}


/* News item hover affordance */
.news-item:hover .news-title,
.news-item:focus-visible .news-title{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.news-more{
  margin-left: 6px;
  color: var(--muted-2);
  font-weight: 700;
  white-space: nowrap;
}

.news-item:hover .news-more,
.news-item:focus-visible .news-more{ color: var(--accent); }


.post-tile:hover .post-tile-title,
.post-tile:focus-within .post-tile-title{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}



/* Posts index list */
.post-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.post-row{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow:hidden;
  transition: transform .08s ease, border-color .12s ease, box-shadow .12s ease;
}

.post-row:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
  box-shadow: inset 4px 0 0 var(--accent);
}

.post-row:focus-within{
  border-color: rgba(255,255,255,.20);
  box-shadow: inset 4px 0 0 var(--accent);
}

.post-row-link{
  display:flex;
  gap: 14px;
  padding: 14px 16px;
  text-decoration:none;
  align-items: flex-start;
}

.post-row-link:hover{ text-decoration:none; }
.post-row-link:focus-visible{ outline:none; }

.post-row-media{
  flex: 0 0 132px;
  height: 84px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.post-row-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.post-row-media.is-empty{
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}

.post-row-media.is-empty::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("/assets/img/logo.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size: 60%;
  opacity: .10;
  filter: grayscale(100%) brightness(1.4);
  pointer-events:none;
}


.post-row-body{ min-width: 0; }
.post-row-title{ margin: 0; font-size: 18px; line-height: 1.2; }
.post-row-excerpt{ margin: 6px 0 0; color: var(--muted); }

.post-row:hover .post-row-title,
.post-row:focus-within .post-row-title{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 520px){
  .post-row-link{ flex-direction: column; }
  .post-row-media{ width: 100%; flex-basis: auto; height: 160px; }
}

/* Pager */
.pager{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.pager-link,
.pager-current{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-decoration:none;
  font-weight: 800;
}

.pager-link:hover{
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 3px 0 0 var(--accent);
  text-decoration:none;
}

.pager-current{
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 3px 0 0 var(--accent);
}

.pager-ellipsis{
  color: var(--muted-2);
  padding: 0 4px;
}

/* Responsive YouTube embeds ({{video}}) */
.video-embed{
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.video-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
