/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700&display=swap');

/* Bootstrap CSS variable overrides */
:root {
  --bs-body-bg: #F9FAFB;
  --bs-primary: #2C3E50;
  --bs-border-radius: 12px;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  margin-bottom: 60px;
}

/* Serif typography */
h1, h2, h3, .font-serif {
  font-family: 'Merriweather', serif;
}

/* Utility class for balanced text wrapping */
.text-balance {
  text-wrap: balance;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Paste zone for image uploads */
.border-dashed {
  border-style: dashed !important;
}

#paste-zone {
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#paste-zone:hover {
  border-color: #6c757d !important;
}

/* Feed Card hover effect */
.feed-card {
  border: 1px solid transparent;
}

.feed-card:hover {
  background-color: #f8f9fa !important;
  border-color: #e9ecef;
}

/* Editorial link styling */
.card a,
.list-group a,
.feed-card {
  color: var(--bs-dark, #1a1a1a);
  text-decoration: none;
  transition: color 0.15s ease;
}

.card a:hover,
.list-group a:hover,
.feed-card:hover {
  color: #000;
  text-decoration: underline;
}

/* Subtle section links (View all, headers) */
a.text-decoration-none {
  color: var(--bs-secondary, #6c757d);
  text-decoration: none;
  transition: color 0.15s ease;
}

a.text-decoration-none:hover {
  color: var(--bs-dark, #1a1a1a);
  text-decoration: none;
}

/* Section header links */
section a.text-decoration-none,
.d-flex a.text-decoration-none {
  color: var(--bs-secondary, #6c757d);
}

section a.text-decoration-none:hover,
.d-flex a.text-decoration-none:hover {
  color: var(--bs-dark, #1a1a1a);
}