/**
 * Playbook detail — dark hero, content gate, PDF card, related guides
 */

.article-shell--playbook .playbook-detail-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #f8fafc;
}

.article-shell--playbook .playbook-detail-hero .article-excerpt-lead {
    color: #cbd5e1;
}

.article-shell--playbook .playbook-detail-hero .article-hero-meta {
    color: #94a3b8;
}

.playbook-difficulty strong {
    text-transform: uppercase;
    color: #fff;
}

.playbook-content-wrap {
    position: relative;
}

.playbook-locked-preview {
    position: relative;
    max-height: 380px;
    overflow: hidden;
    filter: blur(3px);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
    margin-bottom: 2rem;
}

.playbook-gate-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border, #e2e8f0);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 40;
}

.playbook-gate-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.playbook-gate-title {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary, #0f172a);
    margin-bottom: 0.5rem;
}

.playbook-gate-desc {
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.playbook-gate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.playbook-gate-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    display: block;
    margin-bottom: 0.375rem;
}

.playbook-gate-input {
    width: 100%;
    border: 1px solid var(--color-border, #e2e8f0);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    background: #fff;
}

.playbook-gate-input:focus {
    border-color: var(--article-accent, #818cf8);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.playbook-gate-submit {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.playbook-pdf-card {
    margin-bottom: 2rem;
    background: rgba(34, 197, 94, 0.03);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.playbook-pdf-card h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #22c55e;
}

.playbook-pdf-btn {
    width: 100%;
    border-radius: 0.75rem;
    text-align: center;
    display: block;
    background: #22c55e;
    border-color: #22c55e;
}

.playbook-related-section {
    background: var(--color-bg-light, #f8fafc);
    border-top: 1px solid var(--color-border, #e2e8f0);
    padding: 5rem 0;
}

.playbook-related-header {
    margin-bottom: 3rem;
    text-align: center;
}

.playbook-related-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.playbook-related-header p {
    color: var(--text-muted, #64748b);
}

.playbook-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.playbook-related-card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform var(--duration-normal, 0.28s) ease, box-shadow var(--duration-normal, 0.28s) ease;
}

.playbook-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.playbook-related-visual {
    height: 180px;
    background: #0f172a;
    overflow: hidden;
}

.playbook-related-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playbook-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1e293b, #0f172a);
    font-size: 2rem;
}

.playbook-related-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.playbook-related-cat {
    color: var(--primary, #1668B2);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.playbook-related-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--color-secondary, #0f172a);
}

.playbook-related-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary, #1668B2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

/* ----------------------------------------------------------------
   PLAYBOOKS INDEX
   ---------------------------------------------------------------- */
.playbook-gated-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(4px);
}

.playbook-gated-badge svg {
    width: 12px;
    height: 12px;
}

.playbook-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.playbook-card-category {
    color: var(--primary, #1668B2);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.difficulty-badge {
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 700;
}

.difficulty-badge--beginner {
    color: #22c55e;
}

.difficulty-badge--intermediate {
    color: #f97316;
}

.difficulty-badge--advanced {
    color: #ef4444;
}

.playbook-card-footer {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}
