
/* Premium Results Page Styles */

/* Results Hero Section */
.results-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--alt-dark-blue) 50%, var(--additional-dark) 100%);
    margin-bottom: 3rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 59, 111, 0.2);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><defs><pattern id=\"results-grid\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\"><path d=\"M 20 0 L 0 0 0 20\" fill=\"none\" stroke=\"rgba(255,255,255,0.03)\" stroke-width=\"1\"/></pattern></defs><rect width=\"100\" height=\"100\" fill=\"url(%23results-grid)\"/></svg>');
    opacity: 0.4;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-trophy, .floating-vote, .floating-chart {
    position: absolute;
    opacity: 0.1;
    font-size: 2rem;
    color: var(--light-neutral);
    animation: float 6s ease-in-out infinite;
}

.floating-trophy {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-vote {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-chart {
    bottom: 30%;
    left: 10%;
    animation-delay: 4s;
}

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

.results-badge {
    background: rgba(77, 173, 232, 0.2);
    border: 2px solid var(--accent-light);
    color: var(--light-neutral) !important;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--light-neutral) !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-neutral) !important;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px);
}

.hero-stat.stat-entrance {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat.stat-complete {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.hero-stat:hover::before {
    left: 100%;
}

.stat-icon-wrapper {
    margin-bottom: 1rem;
}

.stat-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-stat:hover .stat-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-context {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-weight: 500;
}

.participation-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.participation-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.participation-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer-flow 2s ease-in-out infinite;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-neutral);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: var(--light-neutral);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.9;
}

/* Results Content */
.results-content {
    background: var(--light-gray);
    min-height: 50vh;
    padding: 2rem 0 4rem 0;
}

/* Winner Spotlight */
.winner-spotlight {
    margin-bottom: 4rem;
}

.spotlight-card {
    background: var(--light-neutral);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--light-neutral), var(--light-neutral)),
    linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.spotlight-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 165, 0, 0.05) 100%);
    pointer-events: none;
}

.winner-crown {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: crown-glow 2s ease-in-out infinite alternate;
}

.spotlight-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
}

.winner-photo {
    position: relative;
    display: inline-block;
}

.winner-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFD700;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-neutral);
    font-size: 3rem;
}

.winner-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-neutral);
    font-size: 3rem;
    border: 4px solid #FFD700;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.winner-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--additional-dark);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.winner-info {
    padding-left: 2rem;
}

.winner-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.winner-number {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.winner-description {
    color: var(--neutral-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.winner-stats {
    display: flex;
    gap: 3rem;
}

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

.winner-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.winner-stat .stat-title {
    font-size: 0.9rem;
    color: var(--neutral-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--light-neutral);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.result-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.result-card.winner {
    border-left: 4px solid #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.02) 0%, var(--light-neutral) 100%);
}

.result-card.runner-up {
    border-left: 4px solid #C0C0C0;
}

.result-card.third-place {
    border-left: 4px solid #CD7F32;
}

.rank-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    text-align: center;
}

.rank-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--light-gray);
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
}

.winner-icon {
    color: #FFD700;
    font-size: 1.5rem;
}

.runner-icon {
    color: #C0C0C0;
    font-size: 1.5rem;
}

.third-icon {
    color: #CD7F32;
    font-size: 1.5rem;
}

.winner-label {
    font-size: 0.7rem;
    color: #FFD700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 4rem;
}

.candidate-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-gray);
    transition: all 0.3s ease;
}

.candidate-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    color: var(--light-neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.candidate-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.candidate-number {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.candidate-desc {
    font-size: 0.85rem;
    color: var(--neutral-gray);
    line-height: 1.4;
    margin-bottom: 0;
}

.vote-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vote-count {
    text-align: center;
}

.vote-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.vote-label {
    font-size: 0.8rem;
    color: var(--neutral-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.percentage-display {
    flex: 1;
    margin-left: 2rem;
}

.percentage-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
}

.percentage-bar {
    background: rgba(0, 91, 159, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 91, 159, 0.15);
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.result-card.winner .percentage-fill {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
}

.result-actions {
    text-align: right;
    margin-top: 1rem;
}

/* Enhanced Insights Summary */
.insights-summary {
    margin-bottom: 4rem;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.insight-card {
    background: var(--light-neutral);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(40px);
}

.insight-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.insight-card.insight-entrance {
    animation: insight-glow 0.8s ease-out;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.winner-insight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, var(--light-neutral) 100%);
    border-left: 4px solid #FFD700;
}

.participation-insight {
    background: linear-gradient(135deg, rgba(77, 173, 232, 0.03) 0%, var(--light-neutral) 100%);
    border-left: 4px solid var(--accent-light);
}

.competition-insight {
    background: linear-gradient(135deg, rgba(0, 91, 159, 0.03) 0%, var(--light-neutral) 100%);
    border-left: 4px solid var(--primary-blue);
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-neutral);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.insight-card:hover .insight-icon {
    transform: scale(1.1) rotate(5deg);
}

.insight-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 0.75rem;
}

.insight-description {
    color: var(--neutral-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-metric {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--light-neutral);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.insight-metric.metric-highlight {
    animation: pulse-highlight 1s ease-in-out;
}

.participation-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.progress-fill.progress-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer-flow 1.5s ease-in-out infinite;
}

.progress-text {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.competition-gauge {
    margin-top: 1rem;
}

.gauge-container {
    position: relative;
    height: 40px;
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
    border-radius: 20px;
    width: 0%;
    transition: width 2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--secondary-dark);
    font-size: 0.9rem;
    z-index: 2;
}

/* Enhanced Statistics Grid */
.enhanced-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card-enhanced {
    background: var(--light-neutral);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(40px);
}

.stat-card-enhanced.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.stat-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    color: var(--light-neutral);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-header .stat-icon {
    font-size: 1.5rem;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.stat-body {
    padding: 2rem;
}

.primary-metric {
    text-align: center;
    margin-bottom: 1.5rem;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: var(--neutral-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-metrics {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 0.75rem;
}

.sub-metric {
    text-align: center;
}

.sub-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 0.25rem;
}

.sub-label {
    font-size: 0.8rem;
    color: var(--neutral-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visual-indicator {
    text-align: center;
}

.donut-chart {
    display: inline-block;
    position: relative;
}

.donut-svg {
    width: 100px;
    height: 100px;
}

.donut-progress {
    transition: stroke-dashoffset 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.donut-text {
    font-weight: 700;
    font-size: 14px;
    fill: var(--primary-blue);
}

.competition-level-indicator {
    text-align: center;
}

.level-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.level-dominan {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.level-jelas {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

.level-ketat {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.level-sangat-ketat {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.vote-distribution {
    space-y: 1rem;
}

.distribution-item {
    margin-bottom: 1rem;
}

.candidate-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
}

.vote-bar {
    position: relative;
    height: 24px;
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
}

.vote-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    border-radius: 12px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.vote-percentage {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.timeline-info {
    space-y: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.timeline-item i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.timeline-content {
    flex: 1;
}

.timeline-label {
    font-size: 0.8rem;
    color: var(--neutral-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.timeline-value {
    font-weight: 600;
    color: var(--secondary-dark);
}

.stat-card {
    background: var(--light-neutral);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    text-align: center;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--light-neutral);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

/* No Votes State */
.no-votes-state {
    padding: 4rem 0;
    text-align: center;
}

.no-votes-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--light-neutral);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.no-votes-animation {
    position: relative;
    margin-bottom: 2rem;
}

.empty-ballot {
    font-size: 5rem;
    color: var(--primary-blue);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.no-votes-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 1rem;
}

.no-votes-description {
    color: var(--neutral-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Navigation */
.results-navigation {
    padding: 3rem 0;
    text-align: center;
    background: var(--light-neutral);
    margin-top: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.nav-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-actions .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.nav-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-light) 100%);
    color: var(--light-neutral);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-dark) !important;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes crown-glow {
    0% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
    100% { text-shadow: 0 4px 12px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(77, 173, 232, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(77, 173, 232, 0); }
}

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

@keyframes shimmer-flow {
    0% { left: -50%; }
    100% { left: 100%; }
}

@keyframes insight-glow {
    0% { box-shadow: var(--shadow-lg); }
    50% { box-shadow: 0 0 30px rgba(77, 173, 232, 0.3), var(--shadow-lg); }
    100% { box-shadow: var(--shadow-lg); }
}

@keyframes pulse-highlight {
    0%, 100% { background: var(--primary-blue); }
    50% { background: var(--accent-light); transform: scale(1.05); }
}

@keyframes filling-animation {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.filling-animation {
    background: linear-gradient(
            90deg,
            var(--primary-blue) 30%,
            var(--accent-light) 50%,
            var(--primary-blue) 70%
    );
    background-size: 200% 100%;
    animation: filling-animation 2s ease-in-out infinite;
}

.fill-complete {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-light) 100%);
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes winner-celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.2) rotate(0deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

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

.pulse-glow {
    animation: pulse-glow 1.5s infinite;
}

.shimmer {
    background: linear-gradient(
            90deg,
            var(--primary-blue) 0%,
            var(--accent-light) 50%,
            var(--primary-blue) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

.icon-bounce {
    animation: icon-bounce 0.6s ease-in-out;
}

.winner-celebration {
    animation: winner-celebration 1s ease-in-out;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(77, 173, 232, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--light-neutral);
    border: 1px solid var(--light-gray);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid #28a745;
    color: #28a745;
}

.notification-info {
    border-left: 4px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .enhanced-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .insight-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-stat {
        min-width: auto;
        max-width: 100%;
        padding: 1.5rem;
    }

    .stat-icon-wrapper {
        margin-bottom: 0.75rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

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

    .winner-info {
        padding-left: 0;
        margin-top: 2rem;
    }

    .winner-name {
        font-size: 2rem;
    }

    .winner-stats {
        justify-content: center;
        gap: 2rem;
    }

    .candidate-info {
        flex-direction: column;
        text-align: center;
        padding-right: 0;
    }

    .vote-results {
        flex-direction: column;
        gap: 1rem;
    }

    .percentage-display {
        margin-left: 0;
    }

    .enhanced-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .insight-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .insight-card {
        padding: 1.5rem;
    }

    .stat-card-enhanced {
        margin-bottom: 1rem;
    }

    .stat-body {
        padding: 1.5rem;
    }

    .sub-metrics {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sub-metric {
        padding: 0.75rem;
        background: var(--light-neutral);
        border-radius: 0.5rem;
    }

    .nav-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        top: 1rem;
    }

    .donut-chart {
        margin: 1rem auto;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stat {
        padding: 1.25rem;
    }

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

    .spotlight-content {
        padding: 1.5rem 1rem;
    }

    .winner-image, .winner-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .winner-name {
        font-size: 1.5rem;
    }

    .result-card {
        padding: 1rem;
    }

    .rank-indicator {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }

    .insight-card {
        padding: 1.25rem;
    }

    .insight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .insight-title {
        font-size: 1.2rem;
    }

    .stat-header {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .stat-body {
        padding: 1.25rem;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .sub-value {
        font-size: 1.25rem;
    }

    .donut-svg {
        width: 80px;
        height: 80px;
    }

    .gauge-container {
        height: 32px;
    }

    .vote-bar {
        height: 20px;
    }

    .vote-percentage {
        font-size: 0.7rem;
        right: 6px;
    }

    .level-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .timeline-item {
        padding: 0.5rem;
    }

    .floating-elements {
        display: none; /* Hide decorative elements on small screens */
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .result-card, .stat-card-enhanced, .insight-card {
        transition: transform 0.2s ease;
    }

    .result-card:active, .stat-card-enhanced:active, .insight-card:active {
        transform: scale(0.98);
    }

    .hero-stat:active {
        transform: scale(0.95);
    }

    .btn:active {
        transform: scale(0.96);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .donut-svg {
        width: 120px;
        height: 120px;
    }

    .stat-icon {
        font-size: 2.2rem;
    }

    .insight-icon {
        width: 70px;
        height: 70px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-stat {
        min-width: 150px;
        padding: 1rem;
    }

    .insight-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-elements {
        display: none;
    }
}