/* Professional AntidetectBattle CSS */
:root {
  --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-light: #e9ecef;
  --bg-light: #f8f9fa;
}

/* Header Navigation */
.navbar-custom {
  background: var(--primary-gradient);
  box-shadow: 0 2px 10px rgba(13, 110, 253, 0.15);
  padding: 0.75rem 0;
}

.navbar-custom .navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-custom .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-switcher .dropdown-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white !important;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.language-switcher .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher .dropdown-menu {
  background: white;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 160px;
}

.language-switcher .dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.language-switcher .dropdown-item:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.language-switcher .dropdown-item.active {
  background: var(--primary-gradient);
  color: white;
}

/* Flag Icons */
.flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  display: inline-block;
  background-size: cover;
  background-position: center;
}

.flag-icon.flag-en { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23012169"/><g stroke="%23fff" stroke-width="6"><path d="m0,0 60,30 m0,-30 -60,30"/></g><g stroke="%23C8102E" stroke-width="4"><path d="m0,0 60,30 m0,-30 -60,30"/></g><g stroke="%23fff" stroke-width="10"><path d="M30,0 v30 M0,15 h60"/></g><g stroke="%23C8102E" stroke-width="6"><path d="M30,0 v30 M0,15 h60"/></g></svg>'); }
.flag-icon.flag-vi { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="20" fill="%23da020e"/><polygon points="15,4 11.47,14.85 20.71,8.15 9.29,8.15 18.53,14.85" fill="%23ffff00"/></svg>'); }
.flag-icon.flag-zh { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="20" fill="%23de2910"/><polygon points="6,2 7.5,6.5 3.5,4.5 8.5,4.5 4.5,6.5" fill="%23ffde00"/></svg>'); }
.flag-icon.flag-ru { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="6.67" fill="%23fff"/><rect width="30" height="6.67" y="6.67" fill="%230039a6"/><rect width="30" height="6.67" y="13.33" fill="%23d52b1e"/></svg>'); }
.flag-icon.flag-tr { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect width="30" height="20" fill="%23e30a17"/><circle cx="9" cy="10" r="4" fill="none" stroke="%23fff" stroke-width="0.8"/><polygon points="14,7 16,9 14,11 16,11 14,13" fill="%23fff"/></svg>'); }

/* Hero Section */
.hero {
  background: var(--primary-gradient);
  color: white;
  padding: 3rem 0;
  border-radius: 1rem;
  margin: 2rem 0;
  box-shadow: 0 0.5rem 2rem rgba(13, 110, 253, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Content Sections */
.content-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075);
  border: 1px solid var(--border-light);
}

.content-section h2 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.content-section h3 {
  color: #495057;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

/* Table Improvements */
.table-responsive {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075);
}

.table th {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  border: none;
}

.table td {
  border-color: var(--border-light);
  padding: 1rem;
}

.table tbody tr:hover {
  background: var(--bg-light);
}

/* CTA Buttons */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.4);
}

.btn-outline-secondary {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

/* Footer */
.footer-professional {
  background: linear-gradient(135deg, #212529 0%, #495057 100%);
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

.footer-section h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f8f9fa;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .content-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .navbar-custom .navbar-nav {
    margin-top: 1rem;
  }
  
  .language-switcher {
    margin-top: 0.5rem;
  }
}

/* FAQ Section */
.faq-section dt {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.faq-section dd {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Schema.org structured data visual indicator */
.structured-data-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 0.8rem;
  opacity: 0.7;
  z-index: 1000;
}

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

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--text-dark);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1001;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}