/* ============================================================
   Genre Cards CSS — Consolidated RPGAnywhere Site
   Shared component styles for all genre hub pages.
   Loaded after main.css; uses the same CSS variables.
   ============================================================ */

/* === GENRE HUB LAYOUT === */
.genre-hub {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 2rem;
}

/* === GENRE HERO === */
.genre-hero {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem 2rem 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.genre-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.genre-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.genre-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.genre-tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.genre-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
    font-style: italic;
}

.genre-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0.75rem auto 0;
    max-width: 700px;
    line-height: 1.7;
}

.genre-description p { margin: 0; }

/* === SECTION HEADERS === */
.section { margin-bottom: 2rem; }

.section-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* === GENERATORS GRID === */
.generators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1100px) { .generators-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .generators-grid { grid-template-columns: 1fr; } }

/* === GENERATOR CARD === */
.generator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
    box-shadow: var(--shadow);
}

.generator-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
    text-decoration: none;
}

.generator-icon {
    font-size: 2.5rem;
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.generator-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    text-align: center;
    margin: 0 0 0.5rem;
}

.generator-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    flex: 1;
}

/* === TOOL CARD (zombie-survival variant — same visuals) === */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
    box-shadow: var(--shadow);
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
    text-decoration: none;
}

.tool-icon {
    font-size: 2.5rem;
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.tool-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    text-align: center;
    margin: 0 0 0.5rem;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* === FEATURE LIST === */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.feature-list li {
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-light);
    font-weight: 700;
    flex-shrink: 0;
}

/* === GENERATOR BUTTON (inline CTA inside card) === */
.generator-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s;
}

.generator-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff;
}

/* === GENERATOR BADGE (inline status badge inside card) === */
.generator-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    align-self: center;
}

/* === COMPATIBLE SYSTEMS === */
.systems-compatible {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.systems-compatible h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.system-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.system-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: oklch(42% 0.13 194 / 0.1);
    color: var(--primary-light);
    border: 1px solid oklch(42% 0.13 194 / 0.25);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* === INSPIRATION SECTION === */
.inspiration-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.inspiration-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.inspiration-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
    line-height: 1.6;
}

/* === GENRE INFO SECTION === */
.genre-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.genre-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 1rem;
    text-align: center;
}

.genre-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

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

.info-card {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
}

.info-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0 0 0.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === REFERENCE CARD (espionage / strange-aeons variant) === */
.reference-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
    box-shadow: var(--shadow);
}

.reference-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
    text-decoration: none;
}

.reference-icon {
    font-size: 2.5rem;
    text-align: center;
    display: block;
    margin-bottom: 0.75rem;
}

.reference-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    text-align: center;
    margin: 0 0 0.5rem;
}

.reference-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    flex: 1;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1100px) { .reference-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .reference-grid { grid-template-columns: 1fr; } }

.reference-section { margin-bottom: 2rem; }

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 auto 1.5rem;
    max-width: 700px;
    line-height: 1.7;
}

/* === STRANGE AEONS SPECIFIC === */
.bloom-lore {
    background: oklch(42% 0.13 194 / 0.06);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.bloom-lore h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 1rem;
    text-align: center;
}

.lore-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.lore-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lore-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.9rem;
}

.lore-list li::before { content: "👁️"; position: absolute; left: 0; }

.mechanics-overview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.mechanics-overview h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 1.25rem;
    text-align: center;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.mechanic-card {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.mechanic-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0 0 0.5rem;
}

.mechanic-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* === GENRE-SPECIFIC BADGE VARIANTS === */
.badge-new  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-soon { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
