/* Beautiful Places API - Shared Styles */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #FFF7ED;
  min-height: 100vh;
  color: #000000;
}

/* Navigation */
.site-nav {
  background: #ffffff;
  border-bottom: 1px solid #EAA778;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #8E1B33;
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav-links a {
  color: #666666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav-links a:hover { color: #8E1B33; }
.site-nav-links a.active { color: #8E1B33; border-bottom-color: #8E1B33; }

/* Page container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}

.container.wide {
  max-width: 1200px;
}

/* Typography */
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #8E1B33;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #5B1A19;
}

p, li { line-height: 1.7; color: #333; }
p { margin-bottom: 0.75rem; }

a { color: #8E1B33; }
a:hover { text-decoration: underline; }

code {
  background: #f5f0eb;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #8E1B33;
}

strong { color: #000; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EAA778;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0e0d0;
}

th {
  background: #FFF7ED;
  color: #5B1A19;
  font-size: 0.875rem;
  font-weight: 600;
}

td { font-size: 0.9rem; }

/* Forms */
label {
  font-size: 0.875rem;
  color: #666666;
}

input, select {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #000000;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #8E1B33;
}

select { cursor: pointer; }

/* Buttons */
button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #8E1B33;
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(142, 27, 51, 0.3);
  background: #5B1A19;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Notices */
.notice {
  background: #ffffff;
  border: 1px solid #EAA778;
  border-left: 4px solid #8E1B33;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.notice p:last-child { margin-bottom: 0; }

/* Cards */
.section-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #EAA778;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Code blocks */
.code-block {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666666;
  border: 1px solid #cccccc;
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666666;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #cccccc;
  border-top-color: #8E1B33;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Errors */
.error {
  background: rgba(142, 27, 51, 0.1);
  border: 1px solid rgba(142, 27, 51, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: #8E1B33;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  border-top: 1px solid #EAA778;
  color: #666666;
}

footer a { color: #8E1B33; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Utilities */
.hidden { display: none; }
