/* css/style.css */
:root {
  --bg: #f7f7f9;
  --card: #fff;
  --accent: #2b6cb0;
  --muted: #4b5563;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
}

body {
  background: var(--bg);
  color: #111;
}

.wrap {
  max-width: 1100px;
  margin: 28px auto;
  padding: 20px;
}

header {
  display: flex;
  align-items: center;
  gap: 18px;
}

h1 {
  margin: 0;
  font-size: 22px;
}

p.lead {
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(16,24,40,.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s;
}

.card:hover {
  transform: translateY(-3px);
}

.thumb {
  height: 260px;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 6px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: 8.5/11;
}

.meta {
  text-align: center;
}

.meta small {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.btn.secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(43,108,176,.3);
}

.ads-placeholder {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: #999;
  font-size: 14px;
  background: #fafafa;
  margin-top: 30px;
}

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

a {
  color: #2b6cb0;
  text-decoration: none;
}

a:hover {
  color: #1e40af;
  text-decoration: underline;
}

footer a {
  color: #4b5563;
  margin: 0 10px;
  text-decoration: underline;
}

footer a:hover {
  color: #2b6cb0;
}

.meta, .ads-placeholder, footer {
  text-align: center;
}