/* Box Countries Block Styles */

.box-countries-summary {
  margin-bottom: 10px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #007acc;
}

/* Inline Format */
.box-countries-inline {
  line-height: 1.8;
  font-size: 1em;
  color: #333;
}

/* List Format */
.box-countries-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.box-countries-list li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

.box-countries-list li:last-child {
  border-bottom: none;
}

.country-flag {
  font-size: 1.3em;
  margin-right: 8px;
}

.country-name {
  font-weight: 500;
  color: #333;
}

.country-count {
  color: #666;
  font-size: 0.95em;
}

/* Grid Format */
.box-countries-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.country-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.country-card:hover {
  background: #e9ecef;
  border-color: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.15);
}

.country-flag-large {
  font-size: 2.5em;
  margin-bottom: 8px;
  line-height: 1;
}

.country-card .country-name {
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 4px;
  color: #495057;
}

.country-card .country-count {
  font-size: 1.1em;
  font-weight: bold;
  color: #007acc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .box-countries-inline {
    font-size: 0.9em;
  }

  .box-countries-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .country-card {
    padding: 10px;
  }

  .country-flag-large {
    font-size: 2em;
  }

  .country-card .country-name {
    font-size: 0.8em;
  }

  .country-card .country-count {
    font-size: 1em;
  }
}

/* Print styles */
@media print {
  .box-countries-grid {
    display: block;
  }

  .country-card {
    display: inline-block;
    margin: 5px;
    page-break-inside: avoid;
  }
}
