/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: garamond;
  line-height: 1.6;
  color: #e5e5e5;
  background: #0b0b0d;
}

/* === Story Grid Section === */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

/* === Story Card === */
.story-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(255,0,0,0.25);
}

/* === Story Cover === */
.cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.75);
}

/* === Story Card Body === */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.story-blurb {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.meta .badge {
  font-size: 0.75rem;
  color: #cfcfcf;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

/* === Actions === */
.actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}

.actions .btn {
  flex: 1;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.actions .btn:hover {
  background: #e5e5e5;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.actions .btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.actions .btn.outline:hover {
  background: rgba(255,255,255,0.08);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* === Pro button system === */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #ffffff;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.btn:active{
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.btn:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Ghost/outline variant */
.btn.outline{
  background: transparent;
  color: #f0f0f0;
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 rgba(0,0,0,0); /* keep ghost clean */
}

.btn.outline:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.45);
}

/* Smaller size used on cards */
.btn.small{
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.92rem;
}

/* Actions row on cards */
.story-actions{
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

@media (max-width: 480px){
  .story-actions{ flex-direction: column; }
  .story-actions .btn{ width: 100%; }
}

/* Story actions row */
.story-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.story-actions .btn {
  flex: 1;                      /* equal width */
  height: 44px;                 /* consistent height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Primary button */
.story-actions .btn {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.story-actions .btn:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* Outline button */
.story-actions .btn.outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: none;
}

.story-actions .btn.outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}
