/*
 Theme Name: TrekkieFanFiction
 Theme URI: https://example.com
 Description: Child theme for Astra used for the Star Trek Fan Fiction Archive
 Author: Sean
 Template: astra
 Version: 1.0.0
*/

}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 20px 0 40px;
}

.story-grid .single-story-container {
    background: #f9fbff;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.download-section {
    margin-top: 30px;
}

.download-section h3 {
    margin-bottom: 10px;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-download {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-download {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
	
.btn-download.pdf    { background:#0066cc; color:#fff; }
.btn-download.epub   { background:#28a745; color:#fff; }
.btn-download.azw    { background:#6f42c1; color:#fff; }
.btn-download.mp3    { background:#e83e8c; color:#fff; }
.btn-download.youtube{ background:#ff0000; color:#fff; }

.btn-download:hover {
    background:#fff;
    color:#000;
    border-color: currentColor;
}

.single-story-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.single-story-container .story-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.single-story-container .story-meta {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

.story-cover-wrapper {
    text-align: center;
    margin: 20px 0 30px;
}

.story-blurb {
    margin: 20px 0;
    font-size: 1.05em;
    line-height: 1.6;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 20px 0 40px;
}

.story-card,
.story-grid > div {
    background: #f9fbff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.story-card-title a {
    color: #0066cc;
    text-decoration: none;
}

.story-card-title a:hover {
    text-decoration: underline;
}

.story-card-meta {
    margin: 0;
    color: #555;
    font-size: 0.9em;
}

.story-card-thumb img {
    max-width: 100%;
    border-radius: 8px;
}

/* EXACT 12-box grid (4 columns × 3 rows) */
.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 24px;
    margin: 20px 0 40px;
}

/* Make sure cards scale nicely */
.story-card,
.story-grid > div {
    background: #f9fbff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Main container */
.single-story-container {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 20px;
}

/* Title */
.story-title {
    text-align: center;
    font-size: 2.4em;
    margin-bottom: 20px;
}

/* Cover image */
.story-cover-wrapper {
    text-align: center;
    margin-bottom: 10px;
}

.story-cover-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Cover designer */
.story-cover-designer {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 30px;
}

/* Section titles */
.story-section-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
}

/* Blurb box */
.story-blurb-box {
    background: #ffffff;
    border: 2px solid #cc0000; /* thin red border */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.story-blurb {
    font-size: 1.05em;
    line-height: 1.6;
}

/* YouTube */
.story-video {
    text-align: center;
    margin: 30px 0;
}

.story-video iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* MP3 Player */
.story-audio {
    text-align: center;
    margin: 20px 0 40px;
}

/* Download Options Box */
.download-box {
    background: #ffffff;
    border: 2px solid #cc0000; /* thin red border */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Download buttons */
.download-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.btn-download {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    color: #fff;
    transition: 0.2s;
}

.btn-download.pdf { background: #0066cc; }
.btn-download.epub { background: #28a745; }
.btn-download.kindle { background: #6f42c1; }
.btn-download.mp3 { background: #e83e8c; }
.btn-download.youtube { background: #ff0000; }

.btn-download:hover {
    opacity: 0.85;
}

/* Reviews box */
.story-reviews-box {
    background: #ffffff;
    border: 2px solid #cc0000;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.story-reviews {
    font-size: 1.05em;
    line-height: 1.6;
}

.story-author {
    text-align: center;
    font-size: 1.4em;      /* roughly H3 size */
    font-weight: 600;      /* similar weight to headings */
    margin: 10px 0 20px;   /* spacing above/below */
}