/* ─── COUNTRY SERIES PLAYBOOK - BRAZIL ─── */

:root {
    --pb-bg: #0a0a0a;
    --pb-card-bg: rgba(255, 255, 255, 0.03);
    --pb-border: rgba(255, 255, 255, 0.08);
    --pb-gold: #b8943f;
    --pb-gold-glow: rgba(184, 148, 63, 0.4);
    --pb-text-muted: #8888a0;
}

.pb-page {
    background: var(--pb-bg);
    color: #fff;
    font-family: 'Libre Franklin', sans-serif;
    line-height: 1.6;
}

.pb-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── TOP BRANDING ─── */
.pb-brand-header {
    padding: 3rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pb-brand-logo {
    display: flex;
    gap: 3px;
}

.pb-brand-logo span {
    width: 8px;
    height: 16px;
    border-radius: 1px;
}

.pb-brand-logo span:nth-child(1) { background: #4CAF50; } /* Green */
.pb-brand-logo span:nth-child(2) { background: #FFEB3B; } /* Yellow */
.pb-brand-logo span:nth-child(3) { background: #2196F3; } /* Blue */

.pb-brand-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.pb-brand-text span {
    padding: 2px 8px;
    background: var(--pb-gold);
    color: #000;
    margin: 0 8px;
    font-weight: 800;
}

/* ─── HERO SECTION ─── */
.pb-hero {
    padding: 0 0 3rem;
}

.pb-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.pb-hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--pb-text-muted);
    margin-bottom: 2.5rem;
}

.pb-hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.pb-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--pb-text-muted);
}

.pb-stat-pill i {
    color: var(--pb-gold);
}

.pb-hero-description {
    max-width: 800px;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

/* ─── LAYOUT GRID ─── */
.pb-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 5rem;
    padding-bottom: 8rem;
}

/* Fix nested grids used for content layout */
.pb-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

/* ─── CONTENT BLOCKS ─── */
.pb-section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pb-section-header span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pb-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pb-section-header span::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--pb-gold);
}

.pb-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.pb-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--pb-gold);
    border-radius: 2px;
}

.pb-section-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 4rem 0 2rem;
    position: relative;
    display: inline-block;
    color: #fff;
}

.pb-section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--pb-gold);
    border-radius: 1px;
    opacity: 0.8;
}

.pb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.pb-dashboard-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pb-dashboard-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pb-dashboard-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pb-employment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.pb-swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.pb-metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--pb-border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.pb-metric-icon {
    display: flex;
    margin-bottom: 1.5rem;
    color: var(--pb-gold);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.pb-metric-card.center {
    text-align: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.pb-metric-card.center .pb-metric-icon {
    justify-content: center;
    margin-bottom: 2rem;
}

.pb-metric-card.center:hover .pb-metric-icon {
    transform: scale(1.2) rotate(-5deg);
}

.pb-metric-card:hover {
    background: rgba(184, 148, 63, 0.12);
    border-color: var(--pb-gold);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px 0 var(--pb-gold-glow);
}

.pb-metric-card:hover .pb-metric-icon {
    transform: scale(1.2) rotate(-5deg);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--pb-gold-glow));
}

.pb-metric-card h4 {
    color: var(--pb-gold);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.pb-metric-formula {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    display: block;
}

.pb-status-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pb-status-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pb-status-tag.success { background: rgba(76, 175, 80, 0.1); color: #4CAF50; border: 1px solid rgba(76, 175, 80, 0.2); }
.pb-status-tag.warning { background: rgba(255, 152, 0, 0.1); color: #FF9800; border: 1px solid rgba(255, 152, 0, 0.2); }
.pb-status-tag.danger { background: rgba(244, 67, 54, 0.1); color: #F44336; border: 1px solid rgba(244, 67, 54, 0.2); }

.pb-swot-card {
    background: var(--pb-card-bg);
    border: 1px solid var(--pb-border);
    border-radius: 12px;
    padding: 2rem;
}

.pb-swot-card.strengths { border-left: 4px solid #4CAF50; }
.pb-swot-card.weaknesses { border-left: 4px solid #F44336; }
.pb-swot-card.opportunities { border-left: 4px solid #2196F3; }
.pb-swot-card.threats { border-left: 4px solid #FF9800; }

.pb-swot-card h4 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.pb-swot-card.strengths h4 { color: #4CAF50; }
.pb-swot-card.weaknesses h4 { color: #F44336; }
.pb-swot-card.opportunities h4 { color: #2196F3; }
.pb-swot-card.threats h4 { color: #FF9800; }

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

.pb-swot-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pb-swot-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: inherit;
    opacity: 0.5;
}

.pb-metric-card p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--pb-text-muted);
    margin: 0;
}

.pb-metric-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pb-gold);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.pb-metric-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pb-text-muted);
}

/* ─── TABLES ─── */
.pb-table-wrapper {
    margin-bottom: 3rem;
}

.pb-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--pb-border);
    background: rgba(255, 255, 255, 0.01);
}

.pb-table th, .pb-table td {
    text-align: left;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--pb-border);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.pb-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.pb-table thead th {
    border-bottom: 2px solid var(--pb-gold);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-weight: 800;
    color: var(--pb-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

.pb-table tbody tr {
    border-left: 3px solid transparent;
}

.pb-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.pb-table tbody tr:hover {
    background: rgba(184, 148, 63, 0.06);
    border-left-color: var(--pb-gold);
}

.pb-table tbody tr:hover td {
    color: #fff;
}

.num {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.pb-table td:nth-child(2) {
    font-weight: 700;
    color: #fff;
}

.pb-table td:nth-child(3) {
    color: var(--pb-text-muted);
}

/* ─── ALERT BOX ─── */
.pb-alert {
    background: rgba(184, 148, 63, 0.05);
    border: 1px solid var(--pb-gold-glow);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.pb-alert p {
    margin: 0;
    font-size: 0.95rem;
}

/* ─── HIGHLIGHT BOX ─── */
.pb-highlight-box {
    background: rgba(33, 150, 243, 0.05);
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.pb-highlight-box strong {
    color: #fff;
    font-weight: 800;
}

.pb-highlight-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─── BOOK CARD ─── */
.pb-book-card {
    background: var(--pb-card-bg);
    border: 1px solid var(--pb-border);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.pb-book-cover {
    width: 100px;
    height: 140px;
    background: #2d4a34; /* Dark green matching image */
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.pb-book-cover span {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.pb-book-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.pb-book-meta {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
}

.pb-book-meta b { color: var(--pb-gold); }
.pb-book-meta span { color: #888; }

.pb-book-desc {
    font-size: 0.9rem;
    color: var(--pb-text);
    line-height: 1.7;
    margin: 0;
}

/* ─── SIDEBAR ─── */
.pb-sidebar-card {
    background: #111;
    border: 1px solid var(--pb-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: sticky;
    top: 3rem;
}

.pb-sidebar-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pb-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.pb-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.pb-sidebar-desc {
    font-size: 0.9rem;
    color: var(--pb-text-muted);
    margin-bottom: 2.5rem;
}

.pb-sidebar-list {
    margin-bottom: 3rem;
}

.pb-list-item {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.pb-list-item i {
    color: #4CAF50;
    font-size: 0.7rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── LEAD FORM ─── */
.pb-form {
    margin-top: 2rem;
}

.pb-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pb-checkbox-row {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--pb-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.pb-btn-download {
    width: 100%;
    background: var(--pb-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.pb-btn-download:hover {
    background: #d4ac4b;
    transform: translateY(-2px);
}

/* ─── FINAL CTA ─── */
.pb-final-cta {
    background: linear-gradient(135deg, rgba(184, 148, 63, 0.1) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid var(--pb-gold-glow);
    border-radius: 20px;
    padding: 5rem;
    text-align: center;
    margin: 6rem 0;
}

.pb-final-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pb-final-cta p {
    color: var(--pb-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* ─── AUTHOR BIO ─── */
.pb-author-card {
    background: #111;
    border: 1px solid var(--pb-border);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 6rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.pb-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--pb-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--pb-gold);
    flex-shrink: 0;
}

.pb-author-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pb-author-credentials {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pb-gold);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.pb-author-bio {
    font-size: 0.9rem;
    color: var(--pb-text-muted);
    line-height: 1.7;
}

/* ─── RELATED ─── */
.pb-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.pb-related-card {
    background: var(--pb-card-bg);
    border: 1px solid var(--pb-border);
    border-top: 2px solid transparent;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pb-related-card:hover {
    border-top-color: var(--pb-gold);
    background: rgba(184, 148, 63, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pb-related-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pb-related-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pb-related-desc {
    font-size: 0.75rem;
    color: var(--pb-text-muted);
    line-height: 1.5;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
    .pb-grid { grid-template-columns: 1fr; gap: 4rem; }
    .pb-hero h1 { font-size: 4rem; }
    .pb-dashboard-grid.cols-4, .pb-dashboard-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .pb-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pb-hero h1 { font-size: 3rem; }
    .pb-hero-stats { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .pb-dashboard-grid.cols-4 { grid-template-columns: 1fr; }
    .pb-related-grid { grid-template-columns: 1fr; }
    .pb-container { padding: 0 20px; }
}

/* ─── COUNTRY PLAYBOOK CARDS ─── */
.pb-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 1024px) {
    .pb-series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .pb-series-grid {
        grid-template-columns: 1fr;
    }
}
.pb-series-card {
    background: #1c222b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}
.pb-series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
.pb-sc-tags-top {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pb-sc-tag-part {
    border: 1px solid #00843D;
    color: #00843D;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
    font-weight: bold;
    white-space: nowrap;
}
.pb-sc-title {
    font-size: 1.6rem !important;
    font-weight: bold !important;
    color: white !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    font-family: 'Playfair Display', serif !important;
    letter-spacing: normal !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    text-shadow: none !important;
}
.pb-sc-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}
.pb-sc-stats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.pb-sc-stat-mini-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #cbd5e1;
}
.pb-sc-footer {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.pb-sc-footer-left {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}
.pb-sc-footer-right {
    color: #38bdf8;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.pb-sc-footer-right:hover {
    text-decoration: underline;
}
/* ─── BOOK CHAPTERS & PARTS ─── */
.part-header {
    color: var(--pb-gold);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.chapter-list {
    display: grid;
    gap: 1.5rem;
}

.chapter-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--pb-gold);
    transform: translateX(10px);
}

.chapter-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.chapter-number {
    color: var(--pb-gold);
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 100px;
}

.chapter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.chapter-desc {
    color: #a0aec0;
    line-height: 1.7;
    margin-left: 110px;
}

@media (max-width: 768px) {
    .chapter-header { flex-direction: column; gap: 0.3rem; }
    .chapter-desc { margin-left: 0; }
    .chapter-number { min-width: auto; }
}

.summary-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--pb-gold);
}
