/* ============================================================
   Geo-Theme: 자연/지질유산 테마 공유 스타일
   ============================================================ */

/* --- CSS Variables (Earth-tone Palette) --- */
:root {
  /* Core earth tones */
  --geo-stone:       #6b6054;
  --geo-stone-light: #8a8279;
  --geo-stone-pale:  #f5f0eb;
  --geo-amber:       #b8860b;
  --geo-amber-light: #d4a732;
  --geo-forest:      #4a7c59;
  --geo-forest-dark: #2d5a3a;
  --geo-earth:       #8b6f47;
  --geo-earth-light: #c4a97d;
  --geo-teal:        #3d6b5e;
  --geo-teal-dark:   #2a4d43;
  --geo-teal-light:  #5a9e8f;

  /* Neutral backgrounds */
  --geo-bg:          #faf8f5;
  --geo-bg-card:     #ffffff;
  --geo-border:      #e0d8cf;
  --geo-border-light:#ece7e0;

  /* Text */
  --geo-text:        #3a3530;
  --geo-text-muted:  #7a7269;
  --geo-text-light:  #ffffff;

  /* Shadows */
  --geo-shadow:      0 2px 8px rgba(107, 96, 84, 0.12);
  --geo-shadow-lg:   0 4px 16px rgba(107, 96, 84, 0.15);
}

/* --- Global --- */
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--geo-bg);
  color: var(--geo-text);
}

a {
  color: var(--geo-stone);
  text-decoration: none;
}

a:hover {
  color: var(--geo-amber);
}

/* --- Navbar (.geo-navbar) --- */
.geo-navbar {
  background: linear-gradient(135deg, var(--geo-stone) 0%, var(--geo-stone-light) 100%) !important;
  border-radius: 8px;
  box-shadow: var(--geo-shadow);
  padding: 0.6rem 1.2rem !important;
}

.geo-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--geo-text-light) !important;
}

.geo-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.geo-navbar .nav-link:hover,
.geo-navbar .nav-link:focus {
  color: #ffffff !important;
}

.geo-navbar .dropdown-menu {
  border: 1px solid var(--geo-border);
  border-radius: 6px;
  box-shadow: var(--geo-shadow-lg);
}

.geo-navbar .dropdown-item:hover {
  background-color: var(--geo-stone-pale);
}

/* Navbar inline login form */
.geo-navbar .nav-login-form input {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.geo-navbar .nav-login-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.geo-navbar .nav-login-form button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.geo-navbar .nav-login-form button:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* --- Page Header (.geo-page-header) --- */
.geo-page-header {
  background: linear-gradient(135deg, var(--geo-stone) 0%, var(--geo-stone-light) 100%);
  color: var(--geo-text-light);
  padding: 0.65rem 1rem;
  border-radius: 6px 6px 0 0;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.geo-page-header i {
  margin-right: 0.4rem;
  opacity: 0.85;
}

/* Standalone header (no card below) */
.geo-page-header.standalone {
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* --- Card (.geo-card) --- */
.geo-card {
  background: var(--geo-bg-card);
  border: 1px solid var(--geo-border);
  border-radius: 8px;
  box-shadow: var(--geo-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.geo-card .geo-page-header {
  border-radius: 0;
}

.geo-card .card-body {
  padding: 1rem;
}

/* --- Tables (.geo-table) --- */
.geo-table {
  margin-bottom: 0;
}

.geo-table thead th {
  background-color: var(--geo-stone-pale);
  color: var(--geo-stone);
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--geo-border);
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
}

.geo-table thead th a {
  color: var(--geo-stone);
  text-decoration: none;
}

.geo-table thead th a:hover {
  color: var(--geo-amber);
}

.geo-table tbody tr {
  transition: background-color 0.15s;
}

.geo-table tbody tr:hover {
  background-color: var(--geo-stone-pale) !important;
}

.geo-table tbody td {
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
  vertical-align: middle;
  border-color: var(--geo-border-light);
}

.geo-table tbody td a {
  color: var(--geo-stone);
  font-weight: 500;
}

.geo-table tbody td a:hover {
  color: var(--geo-amber);
}

.geo-table tfoot td {
  padding: 0.6rem;
  border-top: 2px solid var(--geo-border);
}

/* --- Detail Table (.geo-detail-table) --- */
.geo-detail-table {
  margin-bottom: 0;
}

.geo-detail-table th {
  background-color: var(--geo-stone-pale);
  color: var(--geo-stone);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.8rem;
  border-color: var(--geo-border-light);
  white-space: nowrap;
  width: 180px;
}

.geo-detail-table td {
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  border-color: var(--geo-border-light);
}

/* --- Buttons --- */
.btn-geo-primary {
  background-color: var(--geo-stone);
  border-color: var(--geo-stone);
  color: #fff;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-geo-primary:hover,
.btn-geo-primary:focus {
  background-color: var(--geo-stone-light);
  border-color: var(--geo-stone-light);
  color: #fff;
}

.btn-geo-primary:disabled,
.btn-geo-primary.disabled {
  background-color: #b0a99f;
  border-color: #b0a99f;
  color: #fff;
}

.btn-geo-secondary {
  background-color: transparent;
  border: 1px solid var(--geo-stone);
  color: var(--geo-stone);
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-geo-secondary:hover {
  background-color: var(--geo-stone);
  color: #fff;
}

/* --- Search Bar (.geo-search-bar) --- */
.geo-search-bar {
  background: var(--geo-stone-pale);
  border: 1px solid var(--geo-border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.geo-search-bar .search-count {
  color: var(--geo-text-muted);
  font-size: 0.88rem;
}

.geo-search-bar form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.geo-search-bar select,
.geo-search-bar input[type="text"] {
  border: 1px solid var(--geo-border);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.88rem;
  background: #fff;
}

.geo-search-bar input[type="text"]:focus,
.geo-search-bar select:focus {
  outline: none;
  border-color: var(--geo-stone-light);
  box-shadow: 0 0 0 2px rgba(107, 96, 84, 0.15);
}

.geo-search-bar button[type="submit"] {
  background-color: var(--geo-stone);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.geo-search-bar button[type="submit"]:hover {
  background-color: var(--geo-stone-light);
}

/* --- Pagination (.geo-pagination) --- */
.geo-pagination {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.geo-pagination .btn {
  border-radius: 4px;
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
}

.geo-pagination .current {
  font-size: 0.88rem;
  color: var(--geo-text-muted);
  margin: 0 0.3rem;
  font-weight: 500;
}

/* --- Footer (.geo-footer) --- */
.geo-footer {
  border-top: 2px solid var(--geo-border);
  padding: 1.5rem 0;
  margin-top: 2rem;
  text-align: center;
}

.geo-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.geo-footer .footer-links a {
  color: var(--geo-text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.geo-footer .footer-links a:hover {
  color: var(--geo-stone);
}

.geo-footer .footer-copyright {
  color: var(--geo-text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* --- Utility --- */
.geo-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

/* Form card padding */
.geo-card form {
  padding: 1rem;
}

.geo-card .table {
  margin-bottom: 0;
}

/* Photo/media card section */
.geo-media-section {
  background: var(--geo-stone-pale);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.geo-media-section img {
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

/* Dashboard stat card */
.geo-stat-card {
  background: var(--geo-bg-card);
  border: 1px solid var(--geo-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--geo-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.geo-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--geo-shadow-lg);
}

.geo-stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.geo-stat-card .stat-label {
  font-size: 0.88rem;
  color: var(--geo-text-muted);
  margin-bottom: 0.25rem;
}

.geo-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--geo-stone);
}

/* Login card */
.geo-login-card {
  max-width: 420px;
  margin: 3rem auto;
}

/* Responsive */
@media (max-width: 768px) {
  .geo-navbar {
    border-radius: 0;
    margin: 0 !important;
  }

  .geo-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .geo-search-bar form {
    flex-wrap: wrap;
  }

  .geo-page-header {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
  }

  .geo-detail-table th {
    width: 120px;
  }

  .geo-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .geo-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .geo-stat-card {
    padding: 1rem;
  }

  .geo-stat-card .stat-icon {
    font-size: 1.5rem;
  }

  .geo-stat-card .stat-value {
    font-size: 1.2rem;
  }

  .geo-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .geo-card .card-body {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .geo-detail-table th,
  .geo-detail-table td {
    display: block;
    width: 100%;
  }

  .geo-detail-table th {
    border-bottom: none;
    padding-bottom: 0.1rem;
  }

  .geo-detail-table td {
    padding-top: 0.1rem;
    margin-bottom: 0.3rem;
  }

  .geo-table thead {
    display: none;
  }

  .geo-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--geo-border);
    border-radius: 6px;
    padding: 0.5rem;
  }

  .geo-table tbody td {
    display: block;
    text-align: right;
    padding: 0.3rem 0.5rem;
    border: none;
    border-bottom: 1px solid var(--geo-border-light);
  }

  .geo-table tbody td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: var(--geo-stone);
    text-transform: none;
  }

  .geo-table tbody td:last-child {
    border-bottom: none;
  }

  .geo-login-card {
    margin: 1rem auto;
  }
}
