/* Modern Dark Contacts Page Styles - Site Theme */

* {
  box-sizing: border-box;
}

/* Global Dark Theme */
body {
  background: #121212;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* Hero Section */
.contacts-hero {
  background: linear-gradient(135deg, #000000 0%, #121212 50%, #1a1a1a 100%);
  padding: 120px 0 80px;
  text-align: center;
  color: white;
  position: relative;
  border-bottom: 1px solid #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.3rem;
  opacity: 0.8;
  font-weight: 300;
  color: #b0b0b0;
  margin-bottom: 20px;
}

/* Content Toggle */
.content-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.toggle-btn {
  background: transparent;
  border: 2px solid #007BFF;
  color: #007BFF;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}

.toggle-btn:first-child {
  border-radius: 50px 0 0 50px;
  border-right: 1px solid #007BFF;
}

.toggle-btn:last-child {
  border-radius: 0 50px 50px 0;
  border-left: 1px solid #007BFF;
}

.toggle-btn.active {
  background: #007BFF;
  color: white;
}

.toggle-btn:hover:not(.active) {
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
}

.toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.toggle-btn:hover::before {
  left: 100%;
}

/* Content Sections */
.content-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Contact Information List */
.contact-info {
  padding: 80px 0;
  background: #121212;
}

.contact-list {
  max-width: 800px;
  margin: 0 auto;
}

.contact-row {
  display: flex;
  align-items: center;
  padding: 40px 0;
  position: relative;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 30px;
}

.contact-row:hover {
  border-left-color: #007BFF;
  transform: translateX(10px);
}

.contact-row:hover .contact-icon {
  color: #007BFF;
  transform: scale(1.1);
}

.contact-row:hover .contact-line {
  background: linear-gradient(90deg, #007BFF 0%, transparent 100%);
}

.contact-icon {
  color: #ffffff;
  margin-right: 30px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-content {
  flex: 1;
}

.contact-content h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #ffffff;
}

.contact-content p {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin: 0;
}

.contact-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #333 0%, transparent 100%);
  transition: all 0.3s ease;
}

/* Location Section */
.location-section {
  padding: 80px 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

.map-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #000;
  min-height: 400px;
  border: 1px solid #333;
}

.dg-widget-link {
  display: none !important;
}

/* Kazakhstan Map Section */
.map-section {
  padding: 80px 0;
  background: #000;
  border-top: 1px solid #333;
}

/* Federation Controls */
.federation-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  max-width: 400px;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007BFF;
}

.search-input::placeholder {
  color: #666;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.region-filter {
  padding: 12px 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  min-width: 200px;
  transition: border-color 0.3s ease;
}

.region-filter:focus {
  outline: none;
  border-color: #007BFF;
}

.region-filter option {
  background: #1a1a1a;
  color: white;
}

/* Federation Explorer */
.federation-explorer {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  max-width: 100%;
  width: 100%;
}

.interactive-map, .federation-list {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #333;
  width: calc(100vw - 60px);
  
  box-sizing: border-box;
}

.interactive-map h3, .federation-list h3 {
  font-family: 'Unbounded', sans-serif;
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
}

/* SVG Map Styles */
.svg-map-wrapper {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #444;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.svg-map-container object,
.svg-map-container img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.map-fallback {
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  padding: 50px;
}

/* Federation Cards */
.federation-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
}

.federation-card {
  background: #252525;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.federation-card:hover {
  border-color: #007BFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.federation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.federation-card-header h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.federation-card-header h4 {
  font-family: 'Unbounded', sans-serif;
  color: white;
  margin: 0;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.federation-type {
  background: #007BFF;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.federation-cities,
.federation-city {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-style: italic;
}

.federation-type-badge {
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: white;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 15px;
}

.federation-city {
  background: #007BFF;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.federation-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
  width: 100%;
  min-width: 0;
}

.federation-stat {
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.stat-label {
  display: block;
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.federation-card-footer {
  color: #bbb;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  padding-top: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

.no-results {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  font-style: italic;
}

/* Modal Styles */
.federation-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #121212;
  margin: 2% auto;
  padding: 0;
  border: 1px solid #333;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover {
  color: #007BFF;
}

.modal-body {
  padding: 30px;
}

/* Federation Details */
.federation-details {
  color: white;
}

.federation-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.federation-header h2 {
  font-family: 'Unbounded', sans-serif;
  margin: 0 0 10px 0;
  color: white;
}

.federation-location {
  color: #007BFF;
  font-size: 1.1rem;
  margin: 0;
}

.federation-content {
  display: grid;
  gap: 30px;
}

.federation-info h3,
.federation-stats h3,
.federation-achievements h3,
.training-schedule h3 {
  font-family: 'Unbounded', sans-serif;
  color: #007BFF;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.info-grid {
  display: grid;
  gap: 15px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.info-item strong {
  color: #bbb;
  min-width: 100px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-box {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #333;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #007BFF;
  margin-bottom: 5px;
}

.stat-box .stat-label {
  color: #bbb;
  font-size: 0.9rem;
}

.achievements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievements-list li {
  background: #1a1a1a;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 3px solid #007BFF;
}

.schedule-grid {
  display: grid;
  gap: 10px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  background: #1a1a1a;
  padding: 12px 15px;
  border-radius: 6px;
}

.schedule-day {
  font-weight: bold;
  color: white;
}

.schedule-time {
  color: #007BFF;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .contacts-hero {
    padding: 100px 0 60px;
  }
  
  .contact-info,
  .location-section,
  .map-section {
    padding: 60px 0;
  }
  
  .contact-row {
    flex-direction: column;
    text-align: center;
    padding: 30px 0;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .contacts-hero {
    padding: 80px 0 40px;
  }
  
  .contact-info,
  .location-section,
  .map-section {
    padding: 40px 0;
  }
  
  .contact-row {
    padding: 25px 0;
  }
  
  .contact-content h3 {
    font-size: 1.3rem;
  }
  
  .contact-content p {
    font-size: 1rem;
  }
}

/* Animation for smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.contact-row:focus-within {
  outline: 2px solid #007BFF;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #007BFF;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* Federation Explorer Responsive Design */
@media (max-width: 1024px) {
  .federation-explorer {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .federation-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .search-container {
    max-width: 100%;
    width: 100%;
  }
  
  .interactive-map, .federation-list {
    padding: 25px;
    max-width: 100%;
  }
  
  .federation-card {
    max-width: 100% !important;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .content-toggle {
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 300px;
    margin: 40px auto 0;
  }
  .federation-list {
    max-width: 100%;
  }
  
  .toggle-btn {
    width: 100%;
    text-align: center;
  }
  
  .toggle-btn:first-child {
    border-radius: 50px 50px 0 0;
    border-right: 2px solid #007BFF;
    border-bottom: 1px solid #007BFF;
  }
  
  .toggle-btn:last-child {
    border-radius: 0 0 50px 50px;
    border-left: 2px solid #007BFF;
    border-top: 1px solid #007BFF;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .federation-card-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .federation-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
  }
  
  .federation-card-header h3,
  .federation-card-header h4 {
    max-width: 100%;
    word-break: break-word;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .info-item {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .content-toggle {
    margin: 30px auto 0;
    max-width: 250px;
  }
  
  .toggle-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .contacts-hero {
    padding: 100px 0 60px;
  }
  
  .federation-controls {
    gap: 15px;
  }
  
  .search-input,
  .region-filter {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .search-input {
    padding-right: 40px;
  }
  
  .interactive-map,
  .federation-list {
    padding: 20px;
  }
  
  .federation-card {
    padding: 15px;
    max-width: 100% !important;
    width: 100%;
    overflow: hidden;
  }
  
  .federation-cards {
    max-height: 400px;
    width: 100%;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* Region Federations Modal Styles */
.region-federations-details {
  color: #e0e0e0;
}

.region-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #444;
}

.region-header h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.region-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 20px;
}

.region-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.region-federations-list {
  margin-top: 30px;
}

.region-federations-list h3 {
  font-family: 'Unbounded', sans-serif;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.federations-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.federation-card-small {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.federation-card-small:hover {
  border-color: #666;
  background: #333;
  transform: translateY(-2px);
}

.federation-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.federation-card-small .federation-city {
  color: #4CAF50;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.federation-quick-stats {
  color: #ccc;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.federation-quick-stats span {
  display: block;
  margin-bottom: 3px;
}

.federation-president {
  color: #888;
  font-size: 0.8rem;
  border-top: 1px solid #444;
  padding-top: 10px;
}

/* Mobile responsive for region modal */
@media (max-width: 768px) {
  .region-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .federations-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .region-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .region-stats {
    grid-template-columns: 1fr;
  }
  
  .region-header h2 {
    font-size: 1.5rem;
  }
}

