/* Country Availability Checker Styles */

.score-and-country-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.country-availability-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
  padding-top: 0;
  margin-top: 0.2rem;
}

.country-status {
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  display: inline-block;
  font-weight: 500;
  width: fit-content;
  background: rgba(30, 30, 35, 0.6);
  border: 1px solid rgba(255, 152, 0, 0.2);
  color: var(--text-primary);
}

.country-status.available {
  border-left: 3px solid #ff9800;
}

.country-status.restricted {
  border-left: 3px solid var(--status-bad);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.country-list-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem 0;
  text-align: left;
  text-decoration: none;
  font-weight: 400;
  width: fit-content;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.country-list-toggle:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .score-and-country-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .country-availability-card {
    margin-top: 0.2rem;
  }
  
  .country-status {
    font-size: 1rem;
    padding: 0.6rem 0.9rem;
  }
  
  .country-list-toggle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .score-and-country-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .country-status {
    font-size: 1.05rem;
    padding: 0.65rem 0.95rem;
  }
  
  .country-list-toggle {
    font-size: 0.9rem;
    padding: 0.2rem 0;
  }
}

/* Country Modal */
.country-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.country-modal.active {
  display: flex;
}

.country-modal-content {
  background: var(--bg-elevated);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.country-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.country-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.country-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.country-item.available {
  background: rgba(255, 152, 0, 0.06);
  color: var(--text-primary);
  border-left: 2px solid rgba(255, 152, 0, 0.4);
}

.country-item.restricted {
  background: rgba(239, 68, 68, 0.1);
  color: var(--text-muted);
  opacity: 0.6;
}

.country-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.country-item.available::before {
  background: var(--accent-primary);
}

.country-item.restricted::before {
  background: var(--status-bad);
}
