/* ============================================
   Agiones CMS - Base Styles - IMPROVED
   Optimized server layout & responsive design
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

/* Vylúčenie SCEditor z box-sizing - okrem source textarea */
.sceditor-container,
.sceditor-container *,
.sceditor-container *::before,
.sceditor-container *::after {
  box-sizing: content-box !important;
}

/* Source textarea potrebuje border-box */
textarea.sceditor-source {
  box-sizing: border-box !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: radial-gradient(circle at top, #101524 0, #05070d 50%, #03040a 100%);
  color: #f5f7ff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(6,10,25,0.92), rgba(9,18,42,0.88));
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.site-header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.site-nav a:hover {
  border-color: rgba(255,255,255,0.18);
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), transparent);
  text-decoration: none;
  opacity: 1;
}

/* ============================================
   Home Header Section
   ============================================ */

.home-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.home-header h1 {
  background: linear-gradient(135deg, #64d5ff, #b084ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.home-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin: 0 0 1.2rem 0;
}

.home-intro-single-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.home-search {
  display: flex;
  gap: 0.8rem;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1rem;
  background: rgba(20,28,50,0.5);
  border: 1px solid rgba(100,150,255,0.25);
  border-radius: 8px;
  color: #f5f7ff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: rgba(100,150,255,0.6);
  background: rgba(20,28,50,0.8);
  box-shadow: 0 0 12px rgba(100,150,255,0.15);
}

.search-input::placeholder {
  color: rgba(255,255,255,0.55);
}

.sort-select {
  padding: 0.8rem 1rem;
  background: rgba(20,28,50,0.5);
  border: 1px solid rgba(100,150,255,0.25);
  border-radius: 8px;
  color: #f5f7ff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  min-width: 140px;
}

.sort-select:focus {
  outline: none;
  border-color: rgba(100,150,255,0.6);
  background: rgba(20,28,50,0.8);
  box-shadow: 0 0 12px rgba(100,150,255,0.15);
}

.sort-select option {
  background: #05070d;
  color: #f5f7ff;
}

/* ============================================
   Main Content & Layout
   ============================================ */

.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.1rem;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255,255,255,0.75);
}

.site-footer a {
  color: #7dd3fc;
}

/* ============================================
   Server List - CARD LAYOUT (Vertical)
   ============================================ */

.featured-header,
h2.featured-header {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255,200,80,0.15);
  border-radius: 6px;
}

.servers-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 1.2rem 0;
  padding-bottom: 0.8rem;
  color: #f5f7ff;
  letter-spacing: -0.01em;
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.server-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(20,28,50,0.4);
  border: 1px solid rgba(100,150,255,0.15);
  border-radius: 10px;
  transition: all 0.3s ease;
  min-height: auto;
  justify-content: space-between;
}

.server-row.featured {
  border: 2px solid rgba(255,200,80,0.4);
  border-radius: 10px;
  background: rgba(30,28,20,0.5);
  box-shadow: 0 0 20px rgba(255,200,80,0.15);
}

.server-row:hover {
  background: rgba(20,28,50,0.6);
  border-color: rgba(100,150,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.server-row.featured:hover {
  border-color: rgba(255,200,80,0.6);
  box-shadow: 0 0 30px rgba(255,200,80,0.25), 0 12px 32px rgba(0,0,0,0.3);
}

.server-row-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.server-name-address {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.server-address-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.address-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

.ip-badge.clickable {
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  background: rgba(100,150,255,0.15);
  border: 1px solid rgba(100,150,255,0.3);
  border-radius: 6px;
  color: #7dd3fc;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  word-break: break-all;
  font-weight: 500;
}

.ip-badge.clickable:hover {
  background: rgba(100,150,255,0.25);
  border-color: rgba(100,150,255,0.5);
  box-shadow: 0 0 8px rgba(100,150,255,0.15);
}

.server-row-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.server-name {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.server-name a {
  font-size: 1.1rem;
  font-weight: 700;
  color: #64d5ff;
  text-decoration: none;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.server-name a:hover {
  color: #b084ff;
  text-decoration: underline;
}

.server-description {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.server-info-inline {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.server-hashtags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

.hashtag-badge {
  display: inline-block;
  background: rgba(100,150,255,0.15);
  border: 1px solid rgba(100,150,255,0.3);
  color: #64d5ff;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.hashtag-badge:hover {
  background: rgba(100,150,255,0.25);
  border-color: rgba(100,150,255,0.5);
}

.hashtag-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hashtag-checkbox {
  cursor: pointer;
}

.hashtag-selector label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.info-item {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.info-label {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.85rem;
}

.info-link {
  color: #7dd3fc;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(100,150,255,0.1);
  font-weight: 500;
}

.info-link:hover {
  color: #c4b5fd;
  background: rgba(100,150,255,0.2);
  text-decoration: underline;
}

.server-actions-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.server-discord-icon {
  display: inline-block;
  font-size: 1rem;
  text-decoration: none !important;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.server-discord-icon:hover {
  opacity: 1;
}

.muted {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.small {
  font-size: 0.8rem;
}

/* ============================================
   Card Styles - IMPROVED
   ============================================ */

.card {
  background: rgba(20,28,50,0.4);
  border: 1px solid rgba(100,150,255,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(100,150,255,0.35);
  background: rgba(20,28,50,0.6);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* Featured Section */
.featured-section {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin-bottom: 2rem;
}

section.featured-section {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ============================================
   Server Details - IMPROVED & STRETCHED
   ============================================ */

.server-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-style: normal;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.server-name {
  flex: 1;
}

.server-name a {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

.server-status {
  font-size: 0.85rem;
  opacity: 0.8;
}

.server-ip-badge {
  display: inline-block;
  background: rgba(100,150,255,0.1);
  border: 1px solid rgba(100,150,255,0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: 'Monaco', 'Courier New', monospace;
  color: #64d5ff;
  word-break: break-all;
  margin-top: 0.5rem;
}

.server-description-box {
  padding: 1.4rem;
  background: rgba(100,150,255,0.05);
  border-left: 5px solid rgba(100,150,255,0.5);
  border-radius: 8px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: break-word;
  margin: 1.2rem 0;
  font-size: 0.95rem;
  max-width: 100%;
}

.server-info-section {
  margin-bottom: 2rem;
}

.info-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #64d5ff;
}

.server-detail-header {
  border-bottom: 2px solid rgba(255,255,255,0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   Buttons & Forms - IMPROVED
   ============================================ */

.btn, button, input[type="button"], input[type="submit"] {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #64d5ff, #b084ff);
  color: #05070d;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(100,150,255,0.4);
}

.btn-secondary {
  background: rgba(100,150,255,0.15);
  border: 1px solid rgba(100,150,255,0.3);
  color: #64d5ff;
}

.btn-secondary:hover {
  background: rgba(100,150,255,0.25);
  border-color: rgba(100,150,255,0.5);
}

.btn-xs {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

input, textarea, select {
  background: rgba(20,28,50,0.5);
  border: 1px solid rgba(100,150,255,0.2);
  color: #f5f7ff;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(100,150,255,0.5);
  background: rgba(20,28,50,0.7);
  box-shadow: 0 0 14px rgba(100,150,255,0.25);
}

/* ============================================
   Alerts & Messages
   ============================================ */

.alert {
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  border-left: 5px solid;
}

.alert.success {
  background: rgba(76,175,80,0.15);
  border-left-color: #4caf50;
  color: #81c784;
}

.alert.error {
  background: rgba(244,67,54,0.15);
  border-left-color: #f44336;
  color: #ef5350;
}

.alert.warning {
  background: rgba(255,152,0,0.15);
  border-left-color: #ff9800;
  color: #ffb74d;
}

.alert.info {
  background: rgba(33,150,243,0.15);
  border-left-color: #2196f3;
  color: #64b5f6;
}

/* ============================================
   GDPR Banner
   ============================================ */

.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(8,13,26,0.98), rgba(15,23,42,0.98));
  border-top: 2px solid rgba(255,215,130,0.4);
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.gdpr-content {
  flex: 1;
}

.gdpr-content p {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.gdpr-link {
  color: #ffd782;
  text-decoration: underline;
  font-size: 0.85rem;
}

.gdpr-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   Server Detail Page
   ============================================ */

.featured-section {
  border: none;
  box-shadow: none;
}

.featured-section .badge-featured {
  display: inline-block;
  background: rgba(255,200,80,0.15);
  border: 1px solid rgba(255,200,80,0.4);
  color: #ffcc66;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.server-detail-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #64d5ff;
  margin: 0;
}

.server-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(100,150,255,0.1);
}

.server-detail-votes {
  text-align: center;
  min-width: 100px;
  padding: 1rem;
  background: rgba(100,150,255,0.05);
  border: 1px solid rgba(100,150,255,0.2);
  border-radius: 12px;
}

.vote-count {
  font-size: 2rem;
  font-weight: 700;
  color: #64d5ff;
  margin-bottom: 0.3rem;
}

.vote-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.server-links {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(100,150,255,0.1);
  border: 1px solid rgba(100,150,255,0.3);
  color: #64d5ff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link-btn:hover {
  background: rgba(100,150,255,0.2);
  border-color: rgba(100,150,255,0.5);
  color: #b084ff;
}

.link-btn.discord-btn {
  border-color: rgba(114,137,218,0.5);
  color: #7289da;
}

.link-btn.discord-btn:hover {
  background: rgba(114,137,218,0.15);
  border-color: rgba(114,137,218,0.8);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comment {
  padding: 1rem;
  background: rgba(20,28,50,0.4);
  border: 1px solid rgba(100,150,255,0.1);
  border-radius: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.comment-header strong {
  color: #64d5ff;
}

.comment-text {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
  background: rgba(20,28,50,0.3);
  border: 1px solid rgba(100,150,255,0.15);
  border-radius: 8px;
  margin-top: 1.5rem;
}

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

/* ============================================
   Blog Page
   ============================================ */

.hero-blog {
  text-align: center;
  padding: 2rem 0;
}

.hero-blog h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #64d5ff, #b084ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-blog p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin: 0;
}

.blog-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(100,150,255,0.08), rgba(150,100,255,0.05));
  border: 1px solid rgba(100,150,255,0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(100,150,255,0.4);
  background: linear-gradient(135deg, rgba(100,150,255,0.12), rgba(150,100,255,0.08));
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.blog-header {
  margin-bottom: 1rem;
}

.blog-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}

.blog-header h2 a {
  color: #64d5ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-header h2 a:hover {
  color: #b084ff;
}

.blog-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-meta strong {
  color: rgba(255,255,255,0.8);
}

.blog-meta .dot {
  color: rgba(255,255,255,0.4);
}

.blog-preview {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.page-num {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100,150,255,0.3);
  border-radius: 6px;
  color: #64d5ff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-num:hover {
  border-color: rgba(100,150,255,0.6);
  background: rgba(100,150,255,0.1);
}

.page-num.current {
  background: linear-gradient(135deg, #64d5ff, #b084ff);
  border-color: transparent;
  color: #0a0e1a;
}

.page-dots {
  color: rgba(255,255,255,0.5);
  padding: 0 0.3rem;
}

/* ============================================
   Discord Card - Beautiful
   ============================================ */

.discord-card {
  border: 1px solid rgba(114,137,218,0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(114,137,218,0.08), rgba(88,101,242,0.05));
  overflow: hidden;
}

.discord-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: rgba(255,255,255,0.6);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(114,137,218,0.2);
  border-top-color: #7289da;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.discord-content {
  padding: 1.5rem;
}

.discord-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(114,137,218,0.2);
  margin-bottom: 1.5rem;
}

.discord-server-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(114,137,218,0.4);
}

.discord-server-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #7289da;
  margin-bottom: 0.3rem;
}

.discord-invite-code {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-family: monospace;
  background: rgba(0,0,0,0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.discord-invite-status {
  font-size: 0.8rem;
}

.discord-description {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0,0,0,0.1);
  border-radius: 8px;
  border-left: 3px solid #7289da;
}

.discord-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.discord-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(114,137,218,0.1);
  border: 1px solid rgba(114,137,218,0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.discord-stat:hover {
  border-color: rgba(114,137,218,0.4);
  background: rgba(114,137,218,0.15);
}

.discord-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #7289da;
  margin-bottom: 0.3rem;
}

.discord-stat-value.online {
  color: #43b581;
}

.discord-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-discord {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #7289da, #5865f2);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-discord:hover {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  box-shadow: 0 8px 24px rgba(88,101,242,0.3);
  transform: translateY(-2px);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .site-header-inner {
    padding: 0.5rem 0.8rem;
  }
  
  .site-main {
    padding: 1.2rem 0.8rem;
  }
  
  .site-nav {
    justify-content: flex-end;
    font-size: 0.75rem;
  }
  
  .home-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .home-header h1 {
    font-size: 1.5rem;
  }
  
  .home-header p {
    font-size: 0.95rem;
  }
  
  .home-search {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .search-input,
  .sort-select {
    width: 100%;
  }
  
  .card {
    padding: 1.4rem;
  }
  
  .server-row-header {
    flex-direction: column;
  }
  
  .server-address-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .server-actions-top {
    width: 100%;
    justify-content: flex-start;
  }
  
  .server-info-inline {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .server-header {
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
  }
  
  .server-icon {
    width: 40px;
    height: 40px;
  }
  
  .gdpr-banner {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .gdpr-actions {
    width: 100%;
  }
  
  .gdpr-actions button {
    flex: 1;
  }

  .server-detail-header {
    flex-direction: column;
    gap: 1rem;
  }

  .server-detail-votes {
    width: 100%;
  }

  .server-links {
    flex-direction: column;
  }

  .link-btn {
    width: 100%;
    justify-content: center;
  }

  .blog-header h2 {
    font-size: 1.2rem;
  }

  .blog-pagination {
    gap: 0.4rem;
  }

  .page-numbers {
    gap: 0.2rem;
  }

  .page-num {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .discord-stats {
    grid-template-columns: 1fr;
  }

  .discord-header {
    flex-direction: column;
    text-align: center;
  }

  .discord-server-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .site-header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 0.3rem;
  }
  
  .site-main {
    padding: 1rem 0.6rem;
  }
  
  .home-header h1 {
    font-size: 1.3rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .server-name a {
    font-size: 1rem;
  }
  
  .search-input,
  .sort-select {
    min-width: 100%;
  }
  
  .servers-heading {
    font-size: 1.1rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.container {
  width: 100%;
  padding: 0 1.1rem;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }


/* === Elegant Deep Ocean Overrides === */
/* ===== DEEP OCEAN THEME - Dark Blue Depths ===== */

body {
  background: linear-gradient(135deg, #000a15 0%, #001a2e 30%, #003d5c 60%, #001a2e 85%, #000505 100%);
  background-attachment: fixed;
}

.site-header {
  background: linear-gradient(90deg, rgba(0,10,21,0.7), rgba(0,26,46,0.7));
  border-bottom: 3px solid rgba(64,160,255,0.15);
  box-shadow: 0 4px 12px rgba(64,160,255,0.05);
}

.site-logo a {
  background: linear-gradient(90deg, #40a0ff, #2080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 2px;
}

.site-nav a {
  border: 1px solid rgba(64,160,255,0.3);
  color: #40a0ff;
  transition: all 0.3s ease;
}

.site-nav a:hover {
  border-color: rgba(64,160,255,0.6);
  background: rgba(64,160,255,0.15);
  box-shadow: 0 0 18px rgba(64,160,255,0.3);
  color: #60b0ff;
}

.card {
  background: linear-gradient(135deg, rgba(0,32,64,0.2), rgba(0,20,40,0.1));
  border: 1px solid rgba(64,160,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card:hover {
  border-color: rgba(64,160,255,0.25);
  background: linear-gradient(135deg, rgba(0,32,64,0.3), rgba(0,20,40,0.15));
  box-shadow: 0 8px 20px rgba(64,160,255,0.1);
  transform: translateY(-2px);
}

.card-hero {
  background: linear-gradient(135deg, rgba(64,160,255,0.12), rgba(32,128,255,0.08));
  border: 2px solid rgba(64,160,255,0.3);
  box-shadow: 0 8px 24px rgba(64,160,255,0.08);
}

.card-hero h1 {
  background: linear-gradient(90deg, #40a0ff, #2080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.server-name a {
  color: #40a0ff;
  font-weight: 700;
}

.server-name a:hover {
  color: #60b0ff;
}

.server-ip-badge {
  background: rgba(64,160,255,0.12);
  border: 1px solid rgba(64,160,255,0.35);
  color: #40a0ff;
  font-weight: 600;
}

.server-description-box {
  background: rgba(64,160,255,0.06);
  border-left: 5px solid rgba(64,160,255,0.4);
}

.info-section-title {
  color: #60b0ff;
  border-bottom: 3px solid rgba(64,160,255,0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #40a0ff, #2080ff);
  color: #000a15;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(64,160,255,0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(64,160,255,0.5);
}

.site-footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(64,160,255,0.2);
  color: rgba(64,160,255,0.8);
}

/* BBCode Styles */
.bbcode-code {
  background: rgba(20,30,50,0.8);
  border: 1px solid rgba(64,160,255,0.2);
  border-left: 3px solid rgba(64,160,255,0.5);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bbcode-code code {
  color: #e0e0e0;
  background: transparent;
  padding: 0;
  border: none;
}

.bbcode-quote {
  background: rgba(64,160,255,0.08);
  border-left: 4px solid rgba(64,160,255,0.4);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   Editorial Section - Knowledge Content
   ============================================ */

.editorial-section {
  margin: 2.5rem 0;
  padding: 0;
}

.editorial-content {
  margin-top: 1rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.editorial-card {
  background: rgba(20,28,50,0.4);
  border: 1px solid rgba(64,160,255,0.15);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  transition: all 0.3s ease;
}

.editorial-card:hover {
  border-color: rgba(64,160,255,0.35);
  background: rgba(20,28,50,0.55);
  transform: translateY(-2px);
}

.editorial-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #7dd3fc;
  margin: 0 0 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editorial-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.editorial-card strong {
  color: #7dd3fc;
}

/* ============================================
   FAQ Section - Schema.org Ready
   ============================================ */

.faq-section {
  margin: 2.5rem 0;
  padding: 0;
}

.faq-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(20,28,50,0.35);
  border: 1px solid rgba(64,160,255,0.12);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(64,160,255,0.3);
  background: rgba(20,28,50,0.5);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #7dd3fc;
  margin: 0 0 0.6rem 0;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  
  .editorial-card,
  .faq-item {
    padding: 1rem 1.2rem;
  }
  
  .editorial-card h3,
  .faq-item h3 {
    font-size: 0.95rem;
  }
  
  .editorial-card p,
  .faq-item p {
    font-size: 0.85rem;
  }
}
