@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-orange: #ff8c42;
  --primary-orange-dark: #ff6b1a;
  --orange: #ff8c42;
  --darkorange: #ff6b1a;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-secondary-light: #94a3b8;
  --text-light: #334155;

  --background-light: #fafbfc;
  --bg-gradient-light: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
  --glass-light: rgba(255, 255, 255, 0.9);
  --glass-border-light: rgba(255, 255, 255, 0.2);
  --shadow-soft-light: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover-light: 0 20px 60px rgba(0, 0, 0, 0.12);

  --text-dark: #e2e8f0;
  --text-secondary-dark: #94a3b8;
  --bg-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --glass-dark: rgba(51, 65, 85, 0.9);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  --shadow-soft-dark: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-hover-dark: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-mode {
  background: var(--bg-gradient-dark);
  color: var(--text-dark);
}

.settings-container {
  position: absolute;
  top: 140px;
  right: 20px;
  z-index: 1000;
}

.settings-icon {
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.settings-icon:hover {
  background: rgba(255, 140, 66, 0.1);
  color: var(--primary-orange);
  transform: rotate(90deg);
}

body.dark-mode .settings-icon {
  background: var(--glass-dark);
  color: var(--text-secondary-dark);
}

.dark-mode .settings-icon:hover {
  background: rgba(255, 140, 66, 0.1);
  color: var(--primary-orange);
  transform: rotate(90deg);
}

.counter-container {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#visitor-count {
    color: #4CAF50;
    align-items: center;
    margin-left: 5px;
    font-weight: 600;
}

.countertext {
  font-weight: 600;
  margin: 0px !important;
}

.dark-mode .countertext {
  font-weight: 600;
  margin: 0px !important;
  color: var(--text-dark);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  color: #000;
  margin: 15px;
  padding: 30px 30px 40px 30px;
  border-radius: 12px;
  width: 90%;
  max-height: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.second-modal-content {
  font-weight: bolder;
}

.dark-mode .modal-content {
  background: var(--bg-gradient-dark);
  color: #eee;
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dark-mode-toggle-container {
  margin: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: inherit;
}

.social-button-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 15px;
}

.social-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-button:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.social-button.discord {
  background-color: #5865F2;
}

.social-button.android {
  background-color: #555;
}

.switch-container {
  margin: 5px;
  line-height: 31px;
  font-weight: bolder;
}

.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 38px;
  margin-right: 1rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  text-align: center;
  line-height: 29px;
  font-size: 20px;
  border-radius: 50%;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #666;
}

.switch input:checked + .slider:before {
  transform: translateX(32px);
}

.copyright-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 0 0;
  flex-wrap: wrap;
  margin-top: auto;
}

h5 {
  color: var(--text-secondary);
  text-align: center;
  margin: 15px;
  font-size: 0.9rem;
  font-weight: 400;
}

.search-bar {
  text-align: center;
  margin: 20px 0;
}

.search-bar input {
  padding: 10px 16px;
  font-size: 16px;
  width: 70%;
  max-width: 320px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.dark-mode .search-bar input {
  background-color: #222;
  color: #e0e0e0;
  border: 1px solid #555;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  color: white;
  padding: 1.5rem 2rem;
  font-family: inherit;
  box-shadow: var(--shadow-soft-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.dark-mode .navbar {
  box-shadow: var(--shadow-soft-dark);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--primary-orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  user-select: none;
  color: white;
  letter-spacing: -0.025em;
}

.navbar-links {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: 2px solid transparent;
  color: #cbd5e1;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border-radius: 14px;
  transition: all 0.3s ease;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 140, 66, 0.3);
  transform: translateY(-2px);
}

.nav-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
  border-color: var(--primary-orange);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.3);
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 1;
  transition: all 0.3s ease;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  margin: 15px;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid var(--glass-border-light);
}

body.dark-mode .modal-content {
  background: var(--glass-dark);
  border-color: var(--glass-border-dark);
  color: var(--text-dark);
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.close-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Switch */
.switch-container {
  margin: 15px 0;
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cbd5e1;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 32px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
}

.switch input:checked + .slider:before {
  transform: translateX(28px);
}

/* Social Buttons */
.social-button-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.social-button {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-button.discord {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
}

.social-button.android {
  background: linear-gradient(135deg, #3ddc84 0%, #2bb96f 100%);
}

.copyright-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

h5 {
  text-align: center;
  margin: 15px;
}

h1 {
  text-align: center;
  margin-top: 30px;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 20px;
  font-size: 50px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.6rem;
  margin-left: 1rem;
  color: #333;
  transition: color 0.3s;
  position: relative;
  right: unset;
  top: unset;
  z-index: 1100;
  align-self: center;
}

.theme-toggle-btn:focus {
  outline: 2px solid #888;
}

.dark-mode .theme-toggle-btn {
  color: #e0e0e0;
}

.theme-toggle-btn .fa-sun {
  color: #fbc02d;
}

.theme-toggle-btn .fa-moon {
  color: #333;
}

.world-news {
  border-radius: 8px;
  margin: 32px auto 24px auto;
  max-width: 1600px;
  padding: 32px 32px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.world-news h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
  color: #222;
}
.news-list article {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #ccc;
}
.news-list article:last-child {
  border-bottom: none;
}
.news-list h3 {
  font-size: 1.15rem;
  margin: 0 0 4px 0;
  color: #3366bb;
}
.news-list p {
  margin: 0 0 2px 0;
  color: #222;
  font-size: 1rem;
}
.news-source {
  color: #888;
  font-size: 0.95em;
}

.dark-mode .world-news {
  background: var(--bg-gradient-dark);
  border-color: #333;
  color: #e0e0e0;
}
.dark-mode .world-news h2 {
  color: #e0e0e0;
  border-bottom: 1px solid #333;
}
.dark-mode .news-list h3 {
  color: #7ab4ff;
}
.dark-mode .news-list p {
  color: #e0e0e0;
}
.dark-mode .news-source {
  color: #aaa;
}

.map-card-list,
.weapon-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.map-card,
.weapon-card {
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .map-card-list,
  .weapon-card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .map-card-list,
  .weapon-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .map-card-list,
  .weapon-card-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .map-image,
  .weapon-image {
    height: 120px;
  }
}
.map-card {
  background: #fff;
  border: 1px solid #d6d8db;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.map-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.map-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #222 url('https://upload.wikimedia.org/wikipedia/commons/6/65/No-Image-Placeholder.svg') center center/contain no-repeat;
}
.map-info {
  padding: 18px 16px 14px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.map-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  color: #3366bb;
}
.map-info p {
  margin: 0;
  color: #222;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .map-card-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .map-image {
    height: 120px;
  }
}
.dark-mode .map-card {
  background: var(--text-light);
  border-color: #333;
  color: #e0e0e0;
}
.dark-mode .map-info h3 {
  color: #7ab4ff;
}
.dark-mode .map-info p {
  color: #e0e0e0;
}
.dark-mode .map-card {
  box-shadow: 0 2px 8px rgba(255,255,255,0.04);
}

.map-modal-content {
  background: #fff;
  color: #222;
  border-radius: 12px;
  padding: 32px 28px 24px 28px;
  max-width: 480px;
  width: 96vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
}
#map-modal .close-button {
  position: absolute;
  top: -5px;
  right: 7px;
  font-size: 32px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}
#map-modal .close-button:hover {
  color: #222;
}
#map-modal {
  z-index: 2000;
}
.dark-mode .map-modal-content {
  background: #23272a;
  color: #e0e0e0;
  box-shadow: 0 8px 32px rgba(255,255,255,0.08);
}
.dark-mode #map-modal .close-button {
  color: #aaa;
}
.dark-mode #map-modal .close-button:hover {
  color: #fff;
}

/* Hide category card lists by default */
.hidden-category {
  display: none;
}

.category-toggle {
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  margin-top: 32px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  transition: color 0.2s;
}
.category-toggle:hover {
  color: #3366bb;
  text-decoration: underline;
}
.toggle-icon {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 1.1em;
}
.category-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(90deg);
}

@media (max-width: 900px) {
  .pet-card {
    width: 47%;
  }

  .navbar-logo {
    margin-bottom: 8px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .navbar-links button {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .dark-mode .navbar-links button {
    color: #eee;
  }

  .theme-toggle-btn {
    margin-left: 0.5rem;
    font-size: 1.4rem;
  }
  .world-news {
    padding: 18px 4vw;
    max-width: 98vw;
  }
  .map-image {
    height: 140px;
  }

  .nav-btn span {
    display: none;
  }
}