@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
  --bg-color: #0f1115;
  --text-main: #ffffff;
  --text-muted: #a0a5b5;
  --accent-rome: #FFB347;
  --accent-outlands: #CD853F;
  --card-bg: #1a1d24;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent-rome);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-outlands);
  filter: brightness(1.2);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  top: 100%;
  left: 0;
  overflow: hidden;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  display: block;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  filter: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Routing & Hero */
.page {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a1d24 0%, #0f1115 100%);
  padding: 0 20px;
  margin-top: 80px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight {
  background: linear-gradient(45deg, var(--accent-rome), var(--accent-outlands));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-rome {
  color: var(--accent-rome);
}

.highlight-outlands {
  color: var(--accent-outlands);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Server Cards */
.server-section {
  padding: 50px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.server-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.server-card {
  background: var(--card-bg);
  width: 350px;
  border-radius: 15px;
  text-align: left;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.server-card:hover {
  transform: translateY(-10px);
}

.rome-card:hover {
  box-shadow: 0 10px 30px rgba(255, 179, 71, 0.2);
  border-color: var(--accent-rome);
}

.outlands-card:hover {
  box-shadow: 0 10px 30px rgba(205, 133, 63, 0.2);
  border-color: var(--accent-outlands);
}

.card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #2a2d35;
  position: relative;
  flex-shrink: 0;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.rome-img {
  border-bottom: 3px solid var(--accent-rome);
}

.outlands-img {
  border-bottom: 3px solid var(--accent-outlands);
}

.server-logo {
  width: 70px;
  height: 70px;
  background-color: var(--bg-color);
  border-radius: 50%;
  position: absolute;
  bottom: -35px;
  left: 20px;
  border: 3px solid;
  background-size: cover;
  background-position: center;
}

.rome-card .server-logo {
  border-color: var(--accent-rome);
}

.outlands-card .server-logo {
  border-color: var(--accent-outlands);
}

.card-content {
  padding: 45px 25px 25px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.status {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.status.checking {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.status.offline {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.status.online {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.server-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-card h3 span {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.server-desc {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.server-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #ccc;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn-connect,
.btn-card-discord {
  display: inline-block;
  box-sizing: border-box;
  flex: 1;
  padding: 12px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-connect {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-card-discord {
  background: #5865F2;
  color: white;
  border: 1px solid #5865F2;
}

.btn-card-discord:hover {
  background: #4752C4;
  border-color: #4752C4;
  color: white;
}

.rome-card .btn-connect:hover {
  background: var(--accent-rome);
  border-color: var(--accent-rome);
  color: black;
}

.outlands-card .btn-connect:hover {
  background: var(--accent-outlands);
  border-color: var(--accent-outlands);
  color: white;
}

/* Content Pages */
.content-page {
  padding: 120px 50px 50px 50px;
  min-height: 100vh;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-container h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.text-block h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  color: #eee;
}

.text-block ul {
  list-style-position: inside;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* O Projekte & Tím */
.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-align: center;
}

.team-title-server {
  margin: 40px 0 20px 0;
  font-size: 1.6rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.tier-title {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  margin: 30px 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.team-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.team-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  width: 220px;
  text-align: center;
  transition: 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  background-size: cover;
  background-position: center;
  margin: 0 auto 15px auto;
  border: 2px solid;
}

.rome-staff .avatar-img {
  border-color: var(--accent-rome);
}

.outlands-staff .avatar-img {
  border-color: var(--accent-outlands);
}

.team-card h4 {
  margin-bottom: 5px;
  color: white;
  font-size: 1.1rem;
}

.team-card .role {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Disclaimer Footer & Sociálne siete */
.footer-disclaimer {
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.social-icon {
  color: var(--text-muted);
  font-size: 1.8rem;
  transition: 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon.tiktok:hover {
  color: #fff;
  text-shadow: 2px 0 0 #fe2c55, -2px 0 0 #25f4ee;
}

.social-icon.youtube:hover {
  color: #ff0000;
}

.social-icon.instagram:hover {
  color: #E1306C;
}

.footer-disclaimer p {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 10px auto;
}

/* Skrytie hamburger menu na počítačoch */
.menu-toggle {
  display: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Pravidlá iba pre obrazovky užšie ako 850px (tablety a mobily) */
@media screen and (max-width: 850px) {
  
  /* Navbar a Mobilné Menu */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none; /* V základe skryté */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px; /* Výška navbaru */
    left: 0;
    background: rgba(15, 17, 21, 0.98);
    border-bottom: 2px solid var(--accent-rome);
    padding: 10px 0 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .dropdown-content {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: auto;
    display: none; 
  }

  .dropdown:hover .dropdown-content,
  .dropdown:active .dropdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text, .about-stats {
    max-width: 100%;
  }

  .servers-container, 
  .team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .server-card, 
  .team-card {
    width: 100%;
    max-width: 350px; 
    margin-bottom: 30px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .page {
    padding: 100px 15px 50px 15px;
  }
}

/* --- ZÁKONNÍK (SIDEBAR + EXISTUJÚCI OBSAH) --- */
.laws-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 120px auto 40px;
  padding: 0 20px;
  align-items: flex-start;
}

#laws-outlands .content-container,
#laws-rome .content-container,
#rules-outlands .content-container,
#rules-rome .content-container {
  flex: 1;
  margin: 0; 
  width: 100%;
}

.sidebar {
  flex: 0 0 280px; 
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  position: sticky; 
  top: 100px; 
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar h3 {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

#laws-outlands .sidebar h3,
#rules-outlands .sidebar h3 {
  color: var(--accent-outlands);
}

#laws-rome .sidebar h3,
#rules-rome .sidebar h3 {
  color: var(--accent-rome);
}

/* --- ŠTÝLOVANIE ZOZNAMU (MENU) --- */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
  padding: 5px 0;
}

.sidebar-links a:hover {
  color: var(--text-main);
  padding-left: 5px; 
}

/* --- ŠTÝLOVANIE TEXTOVÝCH BLOKOV DO ŠEDÝCH OBDĹŽNIKOV --- */
.text-block {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-block h3 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  color: #eee;
}

.text-block ul {
  list-style-position: inside;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Responsivita pre mobily (pre zákonník) */
@media (max-width: 768px) {
  .laws-layout {
    flex-direction: column;
    margin-top: 100px;
  }
  .sidebar {
    width: 100%;
    position: static; 
    flex: none;
  }
}
/* =========================================
   GLOBÁLNY FOOTER (Šedý pás)
   ========================================= */
.global-footer {
  background-color: #1a1c23; /* Tmavošedá farba pásu */
  color: #8b8f9e;
  padding: 20px 0;
  width: 100%;
  margin-top: auto; /* Zabezpečí, že bude vždy dole */
  border-top: 1px solid #2a2d35;
  font-family: inherit;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-container p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #8b8f9e;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff; /* Pri prejdení myšou text zosvetlie */
}

/* Responzivita pre PC (vedľa seba namiesto pod sebou) */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}