/* ============================================
   COMPONENTS CSS
   Reusable UI components: buttons, cards, badges, forms
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */
.btn, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brit-red) 0%, var(--brit-red-bright) 100%);
    color: var(--brit-white);
    box-shadow: 
        0 4px 15px rgba(200, 16, 46, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(200, 16, 46, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-wiggle:hover {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.btn-secondary {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--brit-red);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 20px rgba(228, 255, 26, 0.2);
}

.btn-neon {
    background: transparent;
    color: var(--neon-yellow);
    border: 2px solid var(--neon-yellow);
    box-shadow: 
        0 0 10px rgba(228, 255, 26, 0.3),
        inset 0 0 10px rgba(228, 255, 26, 0.1);
}

.btn-neon:hover {
    background: var(--neon-yellow);
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(228, 255, 26, 0.5);
}

.btn-sm {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
}

.btn-lg {
    font-size: var(--text-lg);
    padding: var(--space-lg) var(--space-2xl);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brit-red) 0%, var(--neon-pink) 100%);
    transition: width var(--transition-normal);
}

.card:hover::before {
    width: 100%;
}

.card-highlight {
    border-color: var(--brit-red);
    box-shadow: var(--shadow-glow-red);
}

.card-glass {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    background: var(--bg-glass-strong);
    color: var(--text-secondary);
}

.badge-red {
    background: rgba(200, 16, 46, 0.2);
    color: var(--brit-red-bright);
}

.badge-green {
    background: rgba(184, 255, 0, 0.15);
    color: var(--acid-green);
}

.badge-blue {
    background: rgba(1, 33, 105, 0.3);
    color: var(--neon-cyan);
}

.badge-neon {
    background: rgba(228, 255, 26, 0.15);
    color: var(--neon-yellow);
    box-shadow: 0 0 10px rgba(228, 255, 26, 0.2);
}

.label-cheeky {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-yellow);
    background: rgba(228, 255, 26, 0.15);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.input, input[type="text"], input[type="email"], input[type="number"], textarea, select {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    width: 100%;
    transition: all var(--transition-fast);
    outline: none;
}

.input:focus, input:focus, textarea:focus, select:focus {
    border-color: var(--brit-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

.input::placeholder {
    color: var(--text-muted);
}

label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--space-sm);
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    text-align: left;
    padding: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

tr:hover td {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: var(--border-subtle);
}

.tab {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass-strong);
}

.tab.active {
    color: var(--brit-white);
    background: var(--brit-red);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    height: 8px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brit-red) 0%, var(--neon-pink) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar.neon {
    background: linear-gradient(90deg, var(--neon-yellow) 0%, var(--acid-green) 100%);
    box-shadow: 0 0 10px var(--neon-yellow);
}

/* ============================================
   AVATAR
   ============================================ */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

.avatar-ring {
    border-color: var(--brit-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.3);
}

/* ============================================
   DIVIDERS
   ============================================ */
.divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--glass-border) 50%,
        transparent 100%
    );
    margin: var(--space-xl) 0;
}

.divider-accent {
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--brit-red) 50%,
        transparent 100%
    );
}

/* ============================================
   MODAL / OVERLAY
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
}

.close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: var(--text-3xl);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}

.close:hover {
    color: var(--brit-red);
    transform: scale(1.1);
}

/* ============================================
   TOAST / NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--bg-secondary);
    border: var(--border-subtle);
    border-left: 4px solid var(--brit-red);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-xl);
    box-shadow: var(--shadow-lg);
    transform: translateX(calc(100% + var(--space-xl)));
    transition: transform var(--transition-bounce);
    z-index: 1001;
}

.toast.show {
    transform: translateX(0);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-glass) 25%,
        var(--bg-glass-strong) 50%,
        var(--bg-glass) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-glass);
    border-top-color: var(--brit-red);
    border-right-color: var(--brit-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-tertiary);
    font-size: var(--text-lg);
}

/* ============================================
   LEADERBOARD / RANKINGS
   ============================================ */
.leaderboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.leaderboard-item:hover {
    background: var(--bg-glass-strong);
    transform: translateX(8px);
    border-color: var(--brit-red);
}

.leaderboard-rank {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--text-muted);
    min-width: 50px;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    color: #c0c0c0;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    color: #cd7f32;
}

.leaderboard-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    flex: 1;
}

.leaderboard-score {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--brit-red);
}

/* ============================================
   ODDS / STATISTICS DISPLAY
   ============================================ */
.odds-display {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: var(--neon-yellow);
    text-shadow: 0 0 20px rgba(228, 255, 26, 0.5);
    line-height: 1;
}

.odds-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: var(--text-primary);
    line-height: 1;
}

.stat-value.positive {
    color: var(--acid-green);
}

.stat-value.negative {
    color: var(--brit-red);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

/* ============================================
   CHART CONTAINER
   ============================================ */
.chart-container {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(var(--glass-blur));
}

.top-chart-container {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ============================================
   RESTORE BRITAIN CTA BOX
   ============================================ */
.restore-britain-cta {
    margin: var(--space-3xl) auto var(--space-2xl);
    max-width: 800px;
    background: linear-gradient(135deg, rgba(0, 36, 125, 0.15) 0%, rgba(200, 16, 46, 0.1) 100%);
    border: 2px solid var(--brit-red);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.restore-britain-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brit-blue), var(--brit-red), var(--brit-blue));
}

.restore-britain-cta::after {
    content: '🇬🇧';
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 2.5rem;
    opacity: 0.3;
}

.cta-content {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.cta-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brit-red), var(--brit-red-bright));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow-red);
}

.cta-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin: 0 0 var(--space-md);
    font-weight: 700;
}

.cta-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.cta-description strong {
    color: var(--brit-red);
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm) var(--space-lg);
}

.cta-benefits li {
    position: relative;
    padding-left: var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.cta-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--acid-green);
    font-weight: bold;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--brit-red), var(--brit-red-bright));
    color: white;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow-red);
    margin-top: var(--space-md);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(200, 16, 46, 0.5);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(200, 16, 46, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(200, 16, 46, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

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

.count-up {
    animation: count-up 0.5s ease-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MP CARD STYLES (Leaderboard)
   ============================================ */
.mp-card {
    display: grid;
    grid-template-columns: auto 60px 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.mp-card:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--neon-cyan);
    box-shadow: 
        0 8px 32px rgba(0, 245, 255, 0.15),
        0 0 0 1px rgba(0, 245, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mp-rank {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
}

.mp-card:nth-child(1) .mp-rank {
    color: var(--neon-yellow);
    text-shadow: 0 0 20px rgba(228, 255, 26, 0.5);
}

.mp-card:nth-child(2) .mp-rank {
    color: var(--text-primary);
}

.mp-card:nth-child(3) .mp-rank {
    color: #cd7f32;
}

.mp-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    transition: border-color 0.3s ease;
}

.mp-card:hover .mp-photo {
    border-color: var(--neon-cyan);
}

.mp-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.mp-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-constituency {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-twitter {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mp-twitter:hover {
    color: var(--neon-pink);
}

.mp-party-badge {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.mp-declarations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    min-width: 60px;
}

.declarations-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.declarations-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mp-earnings {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.earnings-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.earnings-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Party Colors for Badges */
.party-conservative {
    background: rgba(0, 135, 220, 0.2);
    color: #0087DC;
    border: 1px solid rgba(0, 135, 220, 0.4);
}

.party-labour {
    background: rgba(220, 36, 31, 0.2);
    color: #DC241f;
    border: 1px solid rgba(220, 36, 31, 0.4);
}

.party-liberal-democrats, .party-libdem {
    background: rgba(253, 187, 48, 0.2);
    color: #FDBB30;
    border: 1px solid rgba(253, 187, 48, 0.4);
}

.party-snp {
    background: rgba(255, 249, 93, 0.2);
    color: #FFF95D;
    border: 1px solid rgba(255, 249, 93, 0.4);
}

.party-green {
    background: rgba(106, 176, 35, 0.2);
    color: #6AB023;
    border: 1px solid rgba(106, 176, 35, 0.4);
}

.party-reform-uk, .party-reform {
    background: rgba(18, 178, 183, 0.2);
    color: #12B2B7;
    border: 1px solid rgba(18, 178, 183, 0.4);
}

.party-independent, .party-unknown {
    background: rgba(128, 128, 128, 0.2);
    color: #999;
    border: 1px solid rgba(128, 128, 128, 0.4);
}

/* ============================================
   POLL STYLES
   ============================================ */
.poll-chart-container {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(var(--glass-blur));
}

.poll-party {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.poll-party:last-child {
    border-bottom: none;
}

.poll-party-name {
    font-family: var(--font-heading);
    font-weight: 600;
    min-width: 120px;
}

.poll-bar-container {
    flex: 1;
    height: 24px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.poll-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.poll-bar.labour { background: linear-gradient(90deg, #E4003B 0%, #FF2D6A 100%); }
.poll-bar.conservative { background: linear-gradient(90deg, #0087DC 0%, #00A8FF 100%); }
.poll-bar.libdem { background: linear-gradient(90deg, #FAA61A 0%, #FFD93D 100%); }
.poll-bar.reform { background: linear-gradient(90deg, #12B6CF 0%, #00E5FF 100%); }
.poll-bar.green { background: linear-gradient(90deg, #6AB023 0%, #8BC34A 100%); }
.poll-bar.snp { background: linear-gradient(90deg, #FFF95B 0%, #FFEB3B 100%); }

.poll-percentage {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    min-width: 60px;
    text-align: right;
}

/* ============================================
   GAME STYLES
   ============================================ */
.game-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.politician-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    transition: all var(--transition-normal);
}

.politician-card:hover {
    border-color: var(--brit-red);
    box-shadow: var(--shadow-glow-red);
}

.politician-card img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--bg-glass-strong);
    margin-bottom: var(--space-lg);
    filter: grayscale(20%);
    transition: all var(--transition-normal);
}

.politician-card:hover img {
    filter: grayscale(0%);
    border-color: var(--brit-red);
    box-shadow: 0 0 30px rgba(200, 16, 46, 0.3);
}

.politician-name {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.politician-role {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.vs-badge {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--brit-red);
    text-shadow: 0 0 20px rgba(200, 16, 46, 0.5);
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border-subtle);
}

.score-item {
    text-align: center;
}

.score-value {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: var(--text-primary);
    line-height: 1;
}

.score-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

/* ============================================
   ARTICLE / CONTENT SECTIONS
   ============================================ */
.article {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-top: var(--space-2xl);
    backdrop-filter: blur(var(--glass-blur));
}

.article-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.article-section {
    margin-bottom: var(--space-xl);
}

.article-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--brit-red);
    margin-bottom: var(--space-md);
}

.article-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.article-section ul {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.article-section li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--brit-red);
    border-radius: var(--radius-full);
}

.article-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ============================================
   TITLE VARIANTS
   ============================================ */
.title-lowe {
    color: var(--brit-red);
    text-shadow: 0 0 20px rgba(200, 16, 46, 0.5);
}

/* ============================================
   RESPONSIVE COMPONENTS
   ============================================ */
@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mp-card {
        grid-template-columns: auto 50px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .mp-rank {
        font-size: 1.25rem;
        min-width: 40px;
    }
    
    .mp-photo {
        width: 50px;
        height: 50px;
    }
    
    .mp-info {
        grid-column: 3;
    }
    
    .mp-party-badge {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: start;
    }
    
    .mp-declarations {
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
    }
    
    .mp-earnings {
        grid-column: 4;
        grid-row: 1 / 3;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .restore-britain-cta {
        padding: var(--space-xl) var(--space-lg);
        margin: var(--space-2xl) var(--space-md);
    }
    
    .cta-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cta-icon {
        width: 56px;
        height: 56px;
    }
    
    .cta-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .cta-title {
        font-size: var(--text-xl);
    }
    
    .cta-benefits {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .restore-britain-cta::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .mp-card {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        padding: 0.875rem;
    }
    
    .mp-rank {
        font-size: 1rem;
        min-width: 30px;
    }
    
    .mp-photo {
        display: none;
    }
    
    .mp-name {
        font-size: 1rem;
    }
    
    .mp-constituency {
        font-size: 0.75rem;
    }
    
    .earnings-value {
        font-size: 1.5rem;
    }
    
    .mp-declarations {
        display: none;
    }
}

/* ========================================
   Newsletter CTA
   ======================================== */

.newsletter-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) auto;
    max-width: 800px;
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.newsletter-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-sm) 0;
    color: white;
}

.newsletter-description {
    margin: 0;
    opacity: 0.9;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: var(--text-base);
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: white;
    color: #2563eb;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-button:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.newsletter-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-button svg {
    width: 18px;
    height: 18px;
}

.newsletter-status-message {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin: 0;
}

.newsletter-status-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.newsletter-status-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

@media (max-width: 640px) {
    .newsletter-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .newsletter-button {
        justify-content: center;
        width: auto;
        min-width: 160px;
        max-width: 200px;
    }
}
