:root {
  --bg: #3b2220;
  --panel: #2d1f1d;
  --panel-2: #3b2a26;
  --accent: #f2c22a;
  --muted: #cdb9a8;
  --card-radius: 10px;
  --gap: 18px;
  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #5b3f3a 0%, #2b1a18 100%);
  color: #fff;
}
.app {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: var(--gap);
  height: 100vh;
  padding: 18px;
}
.sidebar {
  background: var(--panel);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 8px 30px rgba(0, 0, 0, 0.6);
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd24a, #f39b1f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a1200;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.brand {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.menu-item {
  display: block;
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  border-left: 4px solid transparent;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}
.menu-item.active {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12),
    rgba(255, 255, 255, 0.02)
  );
  color: var(--accent);
  border-left-color: var(--accent);
}
.sidebar-footer {
  /*margin-top: auto;*/
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topbar {
  height: 56px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.hamburger {
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.search input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: #fff;
}
.user {
  margin-left: auto;
  background: linear-gradient(90deg, #3b2a26, #2b1a18);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}

.hero {
  height: 120px;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.04)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.hero-banner {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #6b403b, #3b2a26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  font-weight: 900;
  color: var(--accent);
  font-size: 36px;
  letter-spacing: 2px;
}
.hero-sub {
  color: var(--muted);
  margin-top: 6px;
}

/* FEED */
.feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 6px;
  align-content: start;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.04)
  );
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.04));
}
.post .thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.post .body {
  padding: 12px;
}
.post h3 {
  margin: 0;
  color: var(--accent);
  font-size: 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.post p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}
.post .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  background: rgba(0, 0, 0, 0.02);
}

/* RIGHTBAR */
.rightbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card h4 {
  margin: 0 0 8px 0;
  color: var(--accent);
  font-size: 13px;
}
.status-line {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #666;
}
.dot.online {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.12);
}
.icon {
  font-size: 20px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.link {
  color: #ffdca7;
  font-size: 12px;
  text-decoration: none;
}

/* socials */
.socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sbtn {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}
.sbtn.instagram {
  background: none;
  background-image: url("https://customersfiles.frcreator.eu/primus/images/instagram.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
  width: 40px;
  height: 40px;
  border-radius: 25%;
  border: none;
  text-indent: -9999px;
  cursor: pointer;
  display: inline-block;
}
.sbtn.tiktok {
  background: none;
  background-image: url("https://customersfiles.frcreator.eu/primus/images/tiktok.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
  width: 40px;
  height: 40px;
  border-radius: 25%;
  border: none;
  text-indent: -9999px;
  cursor: pointer;
  display: inline-block;
}
.sbtn.dc {
  background: none;
  background-image: url("https://customersfiles.frcreator.eu/primus/images/discord.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
  width: 40px;
  height: 40px;
  border-radius: 25%;
  border: none;
  text-indent: -9999px;
  cursor: pointer;
  display: inline-block;
}

/* vote */
.vote-input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: #fff;
  margin-bottom: 8px;
}
.vote-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, #ff9b3c, #ff6b6b);
  color: #200;
  font-weight: 800;
  margin-bottom: 6px;
  cursor: pointer;
}
.vote-btn.alt {
  background: linear-gradient(90deg, #4db8ff, #1f7ef0);
  color: #021021;
}
.vote-btn.alt2 {
  background: linear-gradient(90deg, #8d6bff, #5a39ff);
  color: #021021;
}

/* merch */
.merch-img {
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(90deg, #10202a, #3b2a26);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.at-list {
  position: absolute;
  left:50%;
  transform: translate(-50%,0);
}

.at-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}

.at-card {
  display:inline-block;
  position:relative;
  overflow: hidden;
  margin: 2em;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 25%, rgba(59, 34, 32, 0.8) 75%);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  height: 304px;
  width: 231px;
}

.at-avatar {
  position: relative;
  max-width: 50%;
  max-height: 50%;
  left: 50%;
  transform: translate(-50%,0);
  top: 5%;
}

.at-name {
  display: inline;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,0);
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

[data-dcid] {
  display: inline;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}

[data-dcid].online {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

[data-dcid].dnd {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

[data-dcid].idle {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.at-role {
  position: absolute;
  border-radius: 5px;
  padding: 5px;
  background-color: var(--panel-2);
  top: 70%;
  left: 50%;
  transform: translate(-50%,0);
  font-size: 14px;
  color: var(--muted);
}

.at-soc {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%,0);
  font-size: 14px;
  color: var(--accent);
}

.status {
  /*display: flex;
  gap: 12px;
  align-items: center;*/
  border-radius: 5px;
  padding: 5px;
  position: relative;
  top: 0;
  left: 50%;
  right: 50%;
  transform: translate(-50%, 0);
  width: 75%;
  height: 1px;
}
.status.on {
  background-color: #36ff4a;
}
.status.off {
  background-color: #ff3636;
}
.status.break {
  background-color: #ff7b00;
}

.odznacek span {
  display: inline-block;
  padding-left: 100%; /* start mimo obrazovku */
  animation: scroll 10s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(20%);
  }
  to {
    transform: translateX(-100%);
  }
}

.odznacek {
  position: absolute;
  top: -15%;
  right: -5%;
  left: 20%;
  background: #f0c000;
  color: white;
  font-weight: bold;
  padding: 3px 50px;
  text-align: center;
  transform: rotate(45deg) translateX(4em);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  font-family: sans-serif;
  white-space: nowrap;
}

.status-card {
  margin-top: auto;
}

.smallend {
  color: var(--accent);
}

/* small screens */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 220px 1fr 280px;
    padding: 12px;
  }
  .feed {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  .rightbar {
    order: 3;
  }
  .sidebar {
    order: 2;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
    align-items: center;
  }
  .menu {
    display: none;
  }
  .feed {
    grid-template-columns: 1fr;
  }
}
