/* Bellbird — minimal styling. Readable > pretty. */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #fafaf7;
  margin: 0;
  line-height: 1.5;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header + footer */

.site-header {
  background: #fff;
  border-bottom: 1px solid #e4e4e0;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #222;
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: #444;
  text-decoration: none;
}

nav a:hover { color: #000; text-decoration: underline; }

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: #888;
  text-align: center;
  border-top: 1px solid #eee;
}

/* Typography */

h1 { font-size: 1.75rem; margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
p  { margin: 0 0 1rem; }

a { color: #1a5fb4; }

hr { border: 0; border-top: 1px solid #e4e4e0; margin: 2rem 0; }

/* Messages */

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  margin-bottom: 0.5rem;
}

.message-success { border-color: #b6dbb6; background: #eff9ef; }
.message-error   { border-color: #e6bdbd; background: #fbeded; }
.message-warning { border-color: #e6d4a2; background: #fbf5e4; }

/* Forms */

form .field {
  margin-bottom: 1.25rem;
}

form label,
form .field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

form input[type="text"],
form input[type="url"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form select,
form textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
}

form .helptext {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

form .errorlist {
  color: #a13131;
  padding: 0;
  margin: 0.25rem 0 0;
  list-style: none;
}

/* Buttons */

button,
.button,
input[type="submit"] {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: #1a5fb4;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .button:hover, input[type="submit"]:hover {
  background: #14508c;
}

.button-secondary {
  background: #eee;
  color: #222;
}
.button-secondary:hover { background: #ddd; }

.button-danger {
  background: #a13131;
}
.button-danger:hover { background: #7e2525; }

.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-button {
  background: none;
  color: #444;
  padding: 0;
  font-size: inherit;
  text-decoration: none;
}
.link-button:hover { color: #000; background: none; text-decoration: underline; }

/* Cards */

.card {
  background: #fff;
  border: 1px solid #e4e4e0;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 { margin-top: 0; }

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

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

th {
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Status badges */

.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #eee;
  color: #333;
}

.badge-pending  { background: #fbf0c8; color: #8a6d00; }
.badge-approved { background: #cde8cd; color: #2b6b2b; }
.badge-live     { background: #cde8cd; color: #2b6b2b; }
.badge-rejected { background: #f2d0d0; color: #842323; }
.badge-over     { background: #f4ddc0; color: #8a4a00; }

/* Ad cards */

.ad-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.ad-card .ad-thumb {
  max-width: 220px;
  max-height: 220px;
  border: 1px solid #e4e4e0;
  background: #fff;
  padding: 4px;
}

.ad-card .ad-body { flex: 1; min-width: 0; }

.ad-card .ad-meta {
  font-size: 0.9rem;
  color: #666;
}

.ad-card a.truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Placement list inside ad card */

.placements {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.placements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.placements li:first-child { border-top: 0; }

/* Publisher review page preview */

.preview-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.preview-card .preview-image {
  max-width: 320px;
  border: 1px solid #e4e4e0;
  background: #fff;
  padding: 6px;
}

.preview-card dl {
  margin: 0;
}

.preview-card dt {
  font-weight: 600;
  color: #555;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.preview-card dt:first-child { margin-top: 0; }

.preview-card dd { margin: 0 0 0.5rem; }

/* Radio option cards (placement form) */

.option-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.option-list li {
  padding: 0.75rem 1rem;
  border: 1px solid #e4e4e0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: #fff;
}

.option-list li.disabled {
  opacity: 0.6;
  background: #f5f5f2;
}

.muted { color: #777; }

.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
}
.kv dt { color: #666; font-weight: 600; }
.kv dd { margin: 0; }
