/* ===== Simple Money - Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #10b981 0%, #4f46e5 100%);
  color: white;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 2.25rem 1rem;
  text-align: center;
  box-shadow: none;
  border-radius: 0 !important;
}

h1 {
  max-width: 900px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 0;
}

header p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.92);
}

/* ===== MAIN CONTENT ===== */
main {
  width: min(100%, 1160px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ===== GRID LAYOUT ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  border-bottom: 0;
  margin-bottom: 0.25rem;
  padding-bottom: 0;
}

.text-link {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.market-card {
  border-left: 4px solid #10b981;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.rate-tile {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.rate-tile span,
.rate-tile small,
.fine-print,
.mini-post small,
.link-row small {
  color: #6b7280;
}

.rate-tile strong {
  color: #047857;
  font-size: 2rem;
  line-height: 1;
}

.fine-print {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.link-list {
  display: grid;
  gap: 0.75rem;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #1f2937;
  text-decoration: none;
  background: #ffffff;
}

.link-row:hover {
  border-color: #10b981;
}

.link-row span:first-child {
  display: grid;
  gap: 0.15rem;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mini-post {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.mini-post h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.mini-post a {
  color: #111827;
  text-decoration: none;
}

.mini-post a:hover {
  color: #4f46e5;
}

/* ===== INPUTS ===== */
input, select, textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #10b981;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: #10b981;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: #10b981;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #059669;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
  font-size: 0.9rem;
  border-top: 1px solid #e5e7eb;
}

body[style] {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f9fafb !important;
}

main[style] {
  width: min(100%, 1160px) !important;
  max-width: 1160px !important;
  margin: 2rem auto !important;
  padding: 1.5rem !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

footer a {
  color: #4f46e5;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== COOKIE NOTICE ===== */
#cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
}

.cookie-copy {
  display: grid;
  gap: 0.25rem;
  color: #374151;
  font-size: 0.9rem;
}

.cookie-copy a {
  color: #4f46e5;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions button {
  padding: 0.625rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.cookie-actions button[data-cookie-choice="accepted"] {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-muted {
  color: #6b7280;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  main {
    max-width: 1200px;
  }
}
