/* style.css */

:root {
  --bg-dark: #1b0c0c;
  --bg-card: rgba(255, 60, 0, 0.08);
  --accent: #ff6f3c;
  --text-light: #f1e3d3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #2e0b00, #0d0000);
  color: var(--text-light);
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

header h1 {
  color: var(--accent);
  font-size: 1.8rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

input[type=number] {
  padding: 6px;
  border-radius: 6px;
  border: none;
  width: 80px;
}

button {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

main {
  width: 100%;
  max-width: 1000px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.card h2 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--accent);
}

.card .date {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 8px;
}

.card .thumb {
  border-radius: 10px;
  overflow: hidden;
  background: #1a0000;
  margin-bottom: 10px;
  height: 220px;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-light);
}

.center {
  text-align: center;
  padding: 40px;
  color: rgba(241, 227, 211, 0.7);
}

footer {
  margin-top: 24px;
  font-size: 0.85rem;
  opacity: 0.7;
}

a {
    display: inline-block;
    text-decoration: none;
    background: #ff6f3c;
    color: #000;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 10px;
    transition: transform 0.2s, background 0.2s;
}

a:hover {
    transform: scale(1.05);
    background: #ff8a50;
}