/* Global Styles */
:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2ecc71;
  --accent: #e74c3c;
  --success: #27ae60;
  --warning: #f1c40f;
  --danger: #c0392b;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --gray-100: #f5f6fa;
  --gray-200: #dcdde1;
  --gray-300: #7f8c8d;
  --gray-400: #95a5a6;
  --gray-500: #bdc3c7;
  --gray-600: #34495e;
  --gray-700: #2c3e50;
  --gray-800: #1a252f;
  --gray-900: #141a1f;
}

[data-bs-theme="dark"] {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2ecc71;
  --accent: #e74c3c;
  --success: #27ae60;
  --warning: #f1c40f;
  --danger: #c0392b;
  --light: #2c3e50;
  --dark: #ecf0f1;
  --gray-100: #1a252f;
  --gray-200: #2c3e50;
  --gray-300: #95a5a6;
  --gray-400: #7f8c8d;
  --gray-500: #34495e;
  --gray-600: #bdc3c7;
  --gray-700: #ecf0f1;
  --gray-800: #f5f6fa;
  --gray-900: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  line-height: 1.5;
  background-color: var(--gray-100);
}

/* Theme Toggle Styles */
.theme-toggle {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle i {
  font-size: 1rem;
}

/* Language Selector Styles */
.language-selector {
  position: relative;
  z-index: 1000;
}

.language-selector .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector .btn i {
  font-size: 1rem;
}

.language-selector .dropdown-menu {
  min-width: 120px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background-color: var(--gray-100);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.language-selector .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.language-selector .dropdown-item:hover {
  background-color: var(--gray-200);
  color: var(--primary);
}

section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 10px;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Header and Navigation */
.header {
  padding-top: 56px;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.navbar-brand i {
  font-size: 1.75rem;
}

/* Hero Section */
.hero-section {
  background-color: var(--gray-100);
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hero-content {
  padding: 2rem 0;
}

.hero-content h1, .hero-content h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--gray-700);
}

.carousel-inner {
  border-radius: 10px;
  overflow: hidden;
}

.carousel-item {
  padding: 2rem;
}

.carousel-control-prev, .carousel-control-next {
  width: 5%;
}

/* Stats Section */
.stats-section {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-info h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.counter {
  font-weight: 700;
}

/* Users Gallery Section */
.users-gallery-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.user-device-card {
  background-color: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.user-device-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.user-device-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.user-info {
  padding: 1.5rem;
}

.user-info h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.users-carousel .carousel-control-prev, 
.users-carousel .carousel-control-next {
  width: 3%;
  opacity: 0.8;
}

/* Station Grid Styles */
.station-grid {
  padding: 2rem 0;
}

.station-grid-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.station-grid-card:hover {
  transform: translateY(-5px);
}

.station-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.station-grid-card:hover .station-overlay {
  opacity: 1;
}

.station-overlay h6 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.station-actions {
  display: flex;
  gap: 0.5rem;
}

.station-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  backdrop-filter: blur(5px);
  background-color: rgba(255,255,255,0.2);
  border: none;
  color: white;
  transition: background-color 0.2s ease;
}

.station-actions .btn:hover {
  background-color: rgba(255,255,255,0.3);
}

/* Radio Points Section */
.radio-points-section {
  padding: 5rem 0;
}

.radio-card {
  background-color: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.radio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.radio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--gray-200);
  border-bottom: 1px solid var(--gray-300);
}

.radio-name {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border-bottom: 1px dashed var(--gray-400);
  padding-bottom: 2px;
}

.radio-name:hover {
  color: var(--primary);
  border-bottom: 1px dashed var(--primary);
}

.wifi-signal i {
  color: var(--success);
}

.station-info {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-grow: 1;
}

.station-info:hover {
  background-color: var(--gray-200);
}

.station-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.station-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-details h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.station-details p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.volume-level {
  padding: 1rem;
  cursor: pointer;
  border-top: 1px solid var(--gray-300);
}

.volume-level:hover {
  background-color: var(--gray-200);
}

.volume-level .progress {
  height: 8px;
  margin-bottom: 0.5rem;
}

.volume-level .progress-bar {
  background-color: var(--primary);
}

.volume-level span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.radio-controls {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--gray-200);
  border-top: 1px solid var(--gray-300);
}

/* Top Stations Section */
.top-stations-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.station-card {
  background-color: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.station-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.station-card .station-logo {
  width: 100%;
  height: 150px;
  border-radius: 0;
  margin-right: 0;
}

.station-card .station-details {
  padding: 1.5rem;
  text-align: center;
}

.station-card .listeners {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

/* All Stations Section */
.all-stations-section {
  padding: 5rem 0;
}

.station-filters {
  margin-bottom: 2rem;
}

.station-list-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.table thead {
  background-color: var(--primary);
  color: white;
}

.table thead th {
  font-weight: 500;
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: var(--gray-200);
}

/* Device Setup Section */
.device-setup-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-100);
  padding: 5rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-brand i {
  font-size: 1.75rem;
  margin-right: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--gray-100);
  font-size: 1.25rem;
}

.social-links a:hover {
  color: var(--primary);
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gray-100);
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: var(--gray-400);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gray-100);
}

/* Modal Styles */
.modal-content {
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--gray-100);
}

.modal-header {
  background-color: var(--primary);
  color: var(--gray-100);
  border-bottom: none;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.sound-settings .form-range::-webkit-slider-thumb {
  background: var(--primary);
}

.sound-settings .form-range::-moz-range-thumb {
  background: var(--primary);
}

.modal-station-card {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-station-card:hover {
  border-color: var(--primary);
  background-color: var(--gray-200);
}

.modal-station-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .stat-card {
    margin-bottom: 1.5rem;
  }
  
  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer {
    padding: 4rem 0 2rem;
  }
  
  .footer h5 {
    margin-top: 2rem;
  }

  .language-selector {
    margin-right: 1rem !important;
  }
  
  .language-selector .btn {
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .carousel-item {
    padding: 1rem;
  }
  
  .step-content h4 {
    font-size: 1.25rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1, 
.hero-content h2, 
.hero-content p, 
.hero-content .btn {
  animation: fadeIn 0.8s ease forwards;
}

.hero-content h1 { animation-delay: 0.2s; }
.hero-content p { animation-delay: 0.4s; }
.hero-content .btn { animation-delay: 0.6s; }

.stat-card, 
.user-device-card, 
.radio-card, 
.station-card,
.step-item {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}