/* Dodgy Dudes Page Styles */

/* === HERO === */
.dd-hero {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1f1f 50%, #1e293b 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.dd-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.dd-subtitle {
    font-size: 1.15rem;
    color: #d1d5db;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === PARTY TOGGLE === */
.party-toggle-section {
    background: #0f172a;
    padding: 1.5rem 0;
}

.party-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.party-btn {
    padding: 0.75rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.party-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.party-btn.active[data-party="labor"] {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.party-btn.active[data-party="liberal"] {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* === PARTY SECTIONS === */
.party-section {
    display: none;
}

.party-section.active {
    display: block;
}

/* === MEMBER TABS === */
.member-tabs-section {
    background: #f8fafc;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.member-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.member-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.member-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === MEMBER PANELS === */
.member-panel {
    display: none;
}

.member-panel.active {
    display: block;
}

/* === MEMBER SUMMARY CARD === */
.member-summary-section {
    background: #f8fafc;
    padding: 2rem 0;
}

.member-summary-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.member-info {
    flex: 1;
    min-width: 200px;
}

.member-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.member-role {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.member-electorate {
    font-size: 0.9rem;
    color: #94a3b8;
}

.member-key-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #991b1b;
    font-weight: 600;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-rating {
    text-align: center;
    padding: 1rem 1.5rem;
}

.rating-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.rating-value {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.rating-poor {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.rating-fail {
    background: #1e293b;
    color: #ef4444;
    border: 2px solid #ef4444;
}

.rating-unknown {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

/* === SAYS VS DOES === */
.says-vs-does {
    background: #f8fafc;
}

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

.svd-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.svd-topic {
    background: #1e293b;
    color: #f8fafc;
    padding: 0.4rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.svd-says,
.svd-does {
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.svd-says {
    background: #f1f5f9;
    border-left: 4px solid #94a3b8;
    color: #475569;
    font-style: italic;
}

.svd-does {
    border-left: 4px solid #ef4444;
    color: #1e293b;
    font-weight: 500;
}

.svd-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    font-style: normal;
}

.svd-says .svd-label {
    color: #64748b;
}

.svd-does .svd-label {
    color: #ef4444;
}

/* === ISSUE TABS === */
.issues-section {
    background: white;
}

.issue-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.issue-tab {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.issue-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.issue-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === ISSUE PANELS === */
.issue-panel {
    display: none;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.issue-panel.active {
    display: block;
}

.issue-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 1.5rem 2rem;
}

.issue-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.issue-body {
    padding: 2rem;
}

.issue-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.issue-body ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.issue-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.issue-body h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Key fact callout */
.key-fact {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #78350f;
}

/* Quote block */
.quote-block {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.quote-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0.5rem !important;
}

.quote-attr {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Money trail */
.money-trail {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.money-trail h4 {
    color: #dc2626 !important;
    margin-top: 0 !important;
}

/* Impact box */
.impact-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.impact-box h4 {
    color: #0369a1 !important;
    margin-top: 0 !important;
}

/* Timeline list */
.timeline-list {
    list-style: none;
    padding-left: 0 !important;
    border-left: 3px solid var(--primary-color);
    margin-left: 0.5rem;
}

.timeline-list li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.75rem !important;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Sources */
.sources-list {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sources-list h4 {
    color: #64748b !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sources-list ul {
    list-style: none;
    padding-left: 0 !important;
}

.sources-list li {
    margin-bottom: 0.4rem;
}

.sources-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* === SCORECARD TABLE === */
.scorecard-section {
    background: #f8fafc;
}

.scorecard-party-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.scorecard-party-title.labor-title {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.scorecard-party-title.liberal-title {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.scorecard-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.scorecard-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.scorecard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
}

.scorecard-table tbody tr:nth-child(even) {
    background: #f1f5f9;
}

.scorecard-table tbody tr:hover {
    background: #e2e8f0;
}

/* === CTA === */
.dd-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.dd-cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.dd-cta-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.dd-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dd-cta-buttons .cta-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.dd-cta-buttons .cta-button.secondary:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* === MOBILE === */
@media (max-width: 768px) {
    .dd-hero h1 {
        font-size: 2.2rem;
    }

    .party-toggle {
        flex-direction: column;
        align-items: center;
    }

    .party-btn {
        width: 80%;
        text-align: center;
    }

    .member-tabs {
        gap: 0.35rem;
    }

    .member-tab {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .member-summary-card {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .svd-grid {
        grid-template-columns: 1fr;
    }

    .issue-tabs {
        gap: 0.35rem;
    }

    .issue-tab {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .issue-body {
        padding: 1.25rem;
    }

    .scorecard-table {
        font-size: 0.85rem;
    }

    .scorecard-table th,
    .scorecard-table td {
        padding: 0.75rem 0.5rem;
    }

    .dd-cta-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .dd-hero {
        padding: 3rem 0;
    }

    .dd-hero h1 {
        font-size: 1.8rem;
    }

    .issue-header {
        padding: 1rem 1.25rem;
    }

    .issue-header h3 {
        font-size: 1.15rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}
