/**
 * Election Pulse - Main Stylesheet
 * राजस्थान चुनाव Pulse 2026
 * Mobile-First, Hindi UI, Orange Theme
 */

/* Hindi Font Support - Ensure proper display of Devanagari text */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #FF6B00;
    --primary-dark: #E55A00;
    --primary-light: #FF8533;
    --primary-bg: #FFF7F0;
    
    /* Party Colors */
    --bjp-color: #FF6B00;
    --congress-color: #00A3E0;
    --other-color: #6B7280;
    
    /* Status Colors */
    --success: #22C55E;
    --success-bg: #DCFCE7;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
    --warning: #F59E0B;
    --warning-bg: #FEF3C7;
    
    /* Neutral Colors */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-dark: #111827;
    --border-color: #E5E7EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gray);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   TOP NAVIGATION
   ======================================== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.logo-icon {
    font-size: var(--font-size-2xl);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    margin-bottom: var(--space-xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.hero-stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #22C55E;
}

.live-indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* Pulse Meter */
.pulse-meter {
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

.pulse-bar-container {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    height: 24px;
    overflow: hidden;
    position: relative;
}

.pulse-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6B00);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.5); }
    50% { box-shadow: 0 0 25px rgba(255,215,0,0.8); }
}

.pulse-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.pulse-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-top: var(--space-sm);
}

.pulse-label .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    margin-right: var(--space-xs);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========================================
   DISTRICT LIST
   ======================================== */
.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title .icon {
    font-size: var(--font-size-2xl);
}

.district-list {
    display: grid;
    gap: var(--space-md);
}

.district-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.district-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.district-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.district-rank {
    width: 32px;
    height: 32px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
}

.district-details {
    display: flex;
    flex-direction: column;
}

.district-name {
    font-weight: 600;
    font-size: var(--font-size-base);
}

.district-votes {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 400;
}

.district-pulse {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.district-percentage {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--primary);
}

.trend-arrow {
    font-size: var(--font-size-lg);
}

.trend-arrow.up {
    color: var(--success);
}

.trend-arrow.down {
    color: var(--danger);
}

.trend-arrow.stable {
    color: var(--text-muted);
}

/* ========================================
   TRENDING ISSUES
   ======================================== */
.issues-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-white);
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .issues-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.issue-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.issue-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.issue-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-sm);
}

.issue-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.issue-trend {
    font-size: var(--font-size-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    display: inline-block;
}

.issue-trend.high {
    background: var(--danger-bg);
    color: var(--danger);
}

.issue-trend.medium {
    background: var(--warning-bg);
    color: var(--warning);
}

.issue-trend.low {
    background: var(--success-bg);
    color: var(--success);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1E293B 100%);
    color: white;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-lg);
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
    color: white;
}

/* ========================================
   CITY PAGE STYLES
   ======================================== */
.city-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.city-name {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.city-type {
    opacity: 0.9;
    font-size: var(--font-size-base);
}

/* City Stats */
.city-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.city-stat {
    text-align: center;
}

.city-stat .stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    display: block;
}

.city-stat .stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.live-dot-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-dot-stat::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Party Stats in Header */
.party-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.party-votes {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* Large Pulse Meter */
.city-pulse-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-white);
}

.large-pulse-meter {
    max-width: 500px;
    margin: 0 auto;
}

.large-pulse-bar {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    height: 40px;
    overflow: hidden;
    position: relative;
}

.large-pulse-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6B00);
    border-radius: var(--radius-lg);
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-md);
}

.large-pulse-text {
    font-weight: 800;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

.pulse-change {
    text-align: center;
    margin-top: var(--space-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Party Trend Bars */
.party-trends-section {
    padding: var(--space-xl) var(--space-md);
}

.party-trend {
    margin-bottom: var(--space-lg);
}

.party-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.party-name {
    font-weight: 600;
}

.party-percentage {
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.party-bar {
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    height: 16px;
    overflow: hidden;
}

.party-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.party-bar-fill.bjp {
    background: linear-gradient(90deg, var(--bjp-color), #FF8533);
}

.party-bar-fill.congress {
    background: linear-gradient(90deg, var(--congress-color), #33B5E5);
}

.party-bar-fill.other {
    background: linear-gradient(90deg, var(--other-color), #9CA3AF);
}

/* Vote Interaction Box */
.vote-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--primary-bg);
}

.vote-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.vote-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.vote-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.vote-option:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.vote-option.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.vote-option input[type="radio"] {
    display: none;
}

.vote-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.vote-option.selected .vote-radio {
    border-color: var(--primary);
}

.vote-option.selected .vote-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.vote-party-name {
    font-weight: 600;
    flex: 1;
}

.vote-submit {
    width: 100%;
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
}

.vote-submit:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.vote-submit:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* User Vote Info */
.user-vote-info {
    background: linear-gradient(135deg, var(--primary-bg), #fff8f0);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    text-align: center;
}

.vote-stat-badge {
    font-size: var(--font-size-sm);
    color: var(--primary);
}

.vote-note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

/* Vote Modal */
.vote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.vote-modal.active {
    display: flex;
}

.vote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.vote-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.vote-modal-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
}

.vote-modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.vote-modal-message {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    white-space: pre-line;
    line-height: 1.6;
}

.vote-modal-stats {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.vote-modal-stats:empty {
    display: none;
}

.vote-modal-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
}

.vote-modal-login {
    display: block;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-gray);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

/* Issue Share Button */
.issue-pulse-item {
    position: relative;
}

.issue-share-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: all 0.2s;
}

.issue-pulse-item:hover .issue-share-btn {
    opacity: 1;
}

.section-subtitle {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: var(--space-sm);
}

/* Vote Success Message */
.vote-success {
    text-align: center;
    padding: var(--space-xl);
}

.vote-success-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
    animation: bounce 0.5s ease;
}

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

.vote-success-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--space-sm);
}

.vote-success-message {
    color: var(--text-secondary);
}

/* Issue Pulse List */
.issue-pulse-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.issue-pulse-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.issue-pulse-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.issue-pulse-icon {
    font-size: var(--font-size-2xl);
}

.issue-pulse-name {
    font-weight: 600;
}

.issue-pulse-trend {
    font-size: var(--font-size-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
}

/* ========================================
   WEEKLY REPORT PAGE
   ======================================== */
.countdown-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1E293B 100%);
    color: white;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.countdown-timer {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.countdown-item {
    background: rgba(255,255,255,0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    min-width: 80px;
}

.countdown-value {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--primary);
}

.countdown-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.countdown-message {
    opacity: 0.9;
    max-width: 400px;
}

/* Weekly Summary Cards */
.weekly-summary {
    padding: var(--space-xl) var(--space-md);
}

.summary-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.summary-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.party-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.party-summary-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.party-summary-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.party-summary-percentage {
    font-size: var(--font-size-2xl);
    font-weight: 800;
}

.party-summary-change {
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.party-summary-change.up {
    color: var(--success);
}

.party-summary-change.down {
    color: var(--danger);
}

/* Issue Summary */
.issue-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.issue-summary-item {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.issue-summary-item.top {
    background: var(--danger-bg);
}

.issue-summary-item.rising {
    background: var(--warning-bg);
}

.issue-summary-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.issue-summary-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-xl) var(--space-md);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-statement {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.statement-text {
    font-size: var(--font-size-lg);
    margin: 0;
}

.footer-disclaimer {
    background: rgba(255,255,255,0.1);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.footer-disclaimer p {
    margin-bottom: var(--space-xs);
}

.footer-note {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.footer-share {
    margin-bottom: var(--space-lg);
}

.footer-share p {
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    font-size: var(--font-size-sm);
    opacity: 0.6;
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: var(--space-md);
    color: var(--text-secondary);
}

/* ========================================
   SHAREABLE CARD STYLES
   ======================================== */
.share-card-section {
    padding: var(--space-xl) var(--space-md);
}

.share-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.share-card {
    width: 320px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: white;
    box-shadow: var(--shadow-xl);
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.share-card-logo {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.share-card-badge {
    background: #22C55E;
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.share-card-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

.share-card-city {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
}

.share-card-pulse {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.share-pulse-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) 0deg,
        var(--primary) calc(var(--pulse-percent, 0) * 3.6deg),
        rgba(255,255,255,0.1) calc(var(--pulse-percent, 0) * 3.6deg)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.share-pulse-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: #1a1a2e;
    border-radius: 50%;
}

.share-pulse-value {
    position: relative;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary);
}

.share-pulse-label {
    position: relative;
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

.share-card-parties {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.share-party {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    position: relative;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.share-party-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    opacity: 0.3;
    transition: width 0.5s ease;
}

.share-party.bjp .share-party-bar { background: var(--bjp-color); }
.share-party.congress .share-party-bar { background: var(--congress-color); }
.share-party.other .share-party-bar { background: var(--other-color); }

.share-party-label {
    position: relative;
    width: 50px;
    font-weight: 600;
}

.share-party.bjp .share-party-label { color: var(--bjp-color); }
.share-party.congress .share-party-label { color: var(--congress-color); }
.share-party.other .share-party-label { color: var(--other-color); }

.share-party-value {
    position: relative;
    margin-left: auto;
    font-weight: 700;
}

.share-card-votes {
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.share-card-footer {
    text-align: center;
    font-size: var(--font-size-xs);
    opacity: 0.7;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 320px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #128C7E;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.share-btn.instagram:hover {
    opacity: 0.9;
}

.share-btn.copy {
    background: var(--bg-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.share-btn.copy:hover {
    background: var(--border-color);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none !important; }

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .district-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .district-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

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

.pulse-effect {
    animation: pulseEffect 0.5s ease;
}

@keyframes pulseEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* +1 Vote Animation */
.vote-plus-one {
    position: fixed;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--success);
    pointer-events: none;
    animation: floatUp 1s ease forwards;
    z-index: 1000;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.5); }
}

