/**
 * 2026 Gek Module
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 *
 * @author    Gek
 * @copyright 2026 Gek
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/* Footer button (flag + country name) */
.gek-region-selector-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.gek-region-selector-btn:hover {
  border-color: #999;
  background-color: #f9f9f9;
}

.gek-region-selector-btn i {
  font-size: 20px;
}

/* Flag styling */
.gek-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Modal body */
#gekRegionModal .modal-body {
  padding: 24px;
}

/* Country Grid */
.gek-country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 576px) {
  .gek-country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Country Card */
.gek-country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: #333;
  text-align: center;
  background-color: #f8f8f8;
}

.gek-country-card:hover {
  background-color: #eee;
  transform: scale(1.03);
  text-decoration: none;
  color: #333;
}

.gek-country-card.selected {
  background-color: #e8f4f8;
}

.gek-country-card.selected .gek-country-name {
  color: #1f85b3;
  font-weight: 500;
}

/* Card flag */
.gek-country-card .gek-flag {
  width: 64px;
  height: 48px;
  margin: 0 auto 12px auto;
  display: block;
  flex-shrink: 0;
}

/* Card country name */
.gek-country-name {
  font-size: 13px;
  text-align: center;
  line-height: 1.3;
  display: block;
  word-wrap: break-word;
  max-width: 100%;
}

/* Currency sign */
.gek-currency-sign {
  color: #888;
  font-size: 12px;
}
