/* Barrier Flow Styles */
/* Extends styles.css - mobile-first approach */

/* ============================================
   SITE HERO
   ============================================ */

.site-hero {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}

.site-hero-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.site-hero-title {
    display: inline-block;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.1;
    border: 3px solid rgba(249, 199, 79, 0.7);
    border-radius: 12px;
    padding: 0.3em 0.6em;
    background: rgba(249, 199, 79, 0.07);
}

.site-hero-sub {
    color: #94a3b8;
    font-size: 1.05rem;
    margin: 0;
}

@media (min-width: 640px) {
    .site-hero-title { font-size: 3.25rem; }
}

@media (min-width: 768px) {
    .site-hero-title { font-size: 4rem; }
    .site-hero-sub { font-size: 1.2rem; }
}

/* ============================================
   COUNTDOWN BAR
   ============================================ */

.countdown-bar {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(249, 199, 79, 0.15);
    border: 1px solid rgba(249, 199, 79, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.countdown-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.countdown-label {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   LANDING SECTION
   ============================================ */

.barrier-landing {
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem 0;
    display: flex;
    align-items: center;
}

.landing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-header h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.landing-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}

/* Barriers Grid */
.barriers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.barrier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.barrier-card:not([disabled]):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.barrier-card.active {
    border-color: var(--secondary-color);
    background: rgba(249, 199, 79, 0.1);
}

.barrier-card[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.barrier-icon {
    font-size: 2rem;
    line-height: 1;
}

.barrier-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.barrier-hook {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.barrier-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.barrier-status.coming {
    background: rgba(107, 114, 128, 0.3);
    color: #9ca3af;
}

/* Loyalty Section */
.loyalty-section {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.loyalty-divider {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.loyalty-divider::before,
.loyalty-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 100px);
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.loyalty-divider::before {
    left: 0;
}

.loyalty-divider::after {
    right: 0;
}

.loyalty-divider span {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 0 1rem;
    background: transparent;
}

.loyalty-card {
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   FLOW CONTAINER
   ============================================ */

.flow-container {
    background: white;
    min-height: calc(100vh - 70px);
    padding: 2rem 0 4rem;
}

/* Progress Bar */
.flow-progress {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Screen Content */
.screen-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.screen {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Screen Parts */
.screen-part {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.screen-part h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.screen-part h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.screen-part p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.screen-part p:last-child {
    margin-bottom: 0;
}

/* Validation & Revelation */
.validation {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.validation h2 {
    color: #92400e;
}

.revelation {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #dc2626;
}

.revelation h2 {
    color: #7f1d1d;
}

.revelation-body {
    color: #7f1d1d;
    line-height: 1.7;
}

/* Evidence Cards */
.evidence-card {
    background: white;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.evidence-card h3 {
    color: var(--culprit-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.evidence-footer {
    font-weight: 600;
    color: #475569;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-style: italic;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table .liberal-col {
    color: var(--liberal-color);
}

.comparison-table .labor-col {
    color: var(--labor-color);
}

/* Access Grid */
.access-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.access-entity {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
}

.access-entity.labor {
    border-left: 4px solid var(--labor-color);
}

.access-entity.liberal {
    border-left: 4px solid var(--liberal-color);
}

.access-entity h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.access-entity.labor h4 {
    color: var(--labor-color);
}

.access-entity.liberal h4 {
    color: var(--liberal-color);
}

.access-entity ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.access-entity li {
    padding: 0.4rem 0;
    padding-left: 1rem;
    position: relative;
}

.access-entity li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #94a3b8;
}

/* Votes List */
.votes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--culprit-color);
}

.vote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.vote-result {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--culprit-color);
    background: rgba(220, 38, 38, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.vote-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.vote-positions {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.labor-vote {
    color: var(--labor-color);
}

.liberal-vote {
    color: var(--liberal-color);
}

/* Verdict */
.verdict {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: none;
}

.verdict h2 {
    color: var(--secondary-color);
}

.verdict-body {
    color: #e2e8f0;
    line-height: 1.7;
}

.verdict-body strong {
    color: white;
}

/* Pendulum */
.pendulum-steps {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.pendulum-steps li {
    padding: 0.5rem 0;
    font-weight: 600;
    color: #475569;
}

/* Close Votes */
.close-votes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.close-vote-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.vote-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vote-result-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.close-vote-item:nth-child(odd) .vote-result-badge {
    background: rgba(220, 38, 38, 0.1);
    color: var(--culprit-color);
}

.close-vote-item:nth-child(even) .vote-result-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.vote-note {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* Upper House Section */
.upper-house-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.upper-house-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.crossbench-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.crossbench-member {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
}

.member-name {
    font-weight: 700;
    color: var(--text-color);
}

.member-party {
    color: var(--primary-color);
    font-weight: 500;
}

.member-focus {
    color: #64748b;
    display: block;
    margin-top: 0.25rem;
}

/* District Badge */
.district-badge {
    text-align: center;
    margin-bottom: 1.5rem;
}

.district-name {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.member-info {
    font-size: 1rem;
    color: #64748b;
}

.setup-text {
    text-align: center;
    font-size: 1.1rem;
}

/* Party Badges */
.party-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.party-labor { background: var(--labor-color); }
.party-liberal { background: var(--liberal-color); }
.party-greens { background: var(--greens-color); }
.party-independent { background: var(--independent-color); }
.party-sabest { background: #ff6b35; }
.party-other { background: #6b7280; }

/* Two Votes Section */
.ballot-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.ballot-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}

.ballot-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ballot-detail {
    color: #64748b;
    font-size: 0.9rem;
}

.ballot-card p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
}

/* Action Plan */
.action-plan .plan-section {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.plan-footer {
    text-align: center;
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

/* Close Section */
.close {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a3d80 100%);
    text-align: center;
}

.close h2 {
    color: white;
}

.close-body {
    color: #e0e7ff;
    font-size: 1.1rem;
    line-height: 1.7;
}

.close-body strong {
    color: var(--secondary-color);
    display: block;
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* Postcode Form */
.postcode-form {
    max-width: 300px;
    margin: 2rem auto;
    text-align: center;
}

.postcode-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
    transition: border-color 0.3s;
}

.postcode-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.1);
}

.postcode-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.error-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.9rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.flow-nav {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.flow-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.next-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    flex: 1;
    max-width: 300px;
}

.next-btn:hover:not(:disabled) {
    background: #5a3d80;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 76, 147, 0.3);
}

.next-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* ============================================
   EXIT SECTION
   ============================================ */

.exit-section {
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.exit-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.exit-wrapper h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.exit-subtitle {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.exit-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.exit-btn {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.exit-btn.primary {
    background: var(--secondary-color);
    color: var(--dark-bg);
    border: none;
}

.exit-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 199, 79, 0.3);
}

.exit-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.exit-btn.secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.exit-btn.tertiary {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
}

.exit-btn.tertiary:hover {
    color: white;
}

.share-section {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-section p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.share-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #5a3d80;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE - Tablet+
   ============================================ */

@media (min-width: 640px) {
    .landing-header h2 {
        font-size: 2.25rem;
    }

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

    .barrier-card {
        padding: 2rem;
    }

    .barrier-icon {
        font-size: 2.5rem;
    }

    .barrier-text {
        font-size: 1.1rem;
    }

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

    .ballot-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .crossbench-member {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .member-focus {
        display: inline;
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .landing-header h2 {
        font-size: 2.5rem;
    }

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

    .screen-part {
        padding: 2rem;
    }

    .screen-part h2 {
        font-size: 1.75rem;
    }

    .exit-wrapper h2 {
        font-size: 2.5rem;
    }
}

/* ============================================
   PARTY DIVERSITY / ISSUE SELECTOR
   ============================================ */

.party-diversity {
    background: #1e1b2e;
    border: 1px solid rgba(106, 76, 147, 0.4);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.party-diversity h3 {
    color: #f9c74f;
    margin-bottom: 0.5rem;
}

.diversity-intro {
    color: #d1d5db;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.issue-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.issue-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: inherit;
}

.issue-btn:hover {
    border-color: #9b7fc9;
    color: #c4aff0;
    background: rgba(106, 76, 147, 0.2);
}

.issue-btn.active {
    background: #6a4c93;
    border-color: #6a4c93;
    color: white;
}

.party-showcase {
    min-height: 180px;
}

.showcase-prompt {
    color: #d1d5db;
    font-style: italic;
    text-align: center;
    padding: 3rem 1rem;
}

.showcase-content {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.major-response {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid #ef4444;
}

.major-label {
    display: block;
    font-weight: 700;
    color: #b0b0b0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.major-text {
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alternatives-header {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f9c74f;
    font-size: 0.95rem;
}

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

.alternative-card {
    background: rgba(255, 255, 255, 0.07);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background 0.2s ease;
}

.alternative-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.alt-party {
    font-weight: 700;
    font-size: 0.9rem;
}

.alt-position {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.4;
}

/* Mobile adjustments for issue selector */
@media (max-width: 480px) {
    .issue-selector {
        flex-direction: column;
    }

    .issue-btn {
        width: 100%;
        text-align: center;
    }

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

    .party-diversity {
        padding: 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .flow-nav,
    .flow-progress,
    header,
    footer {
        display: none;
    }

    .screen-part {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
