/* ========================================
   ENHANCED HALL OF SHAME - PREMIUM STYLES
   Dynamic Ranking System with Animations
   ======================================== */

/* Stats Banner */
.stats-banner {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(20, 20, 30, 0.9) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #E63946;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number.live {
    color: #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Featured Candidate (#1) */
.featured-candidate {
    animation: slideInFeatured 0.6s ease-out;
}

@keyframes slideInFeatured {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.featured-card {
    background: linear-gradient(145deg, rgba(230, 57, 70, 0.15) 0%, rgba(20, 20, 30, 1) 100%);
    border: 2px solid #E63946;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(230, 57, 70, 0.3);
    transition: all 0.4s ease;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(230, 57, 70, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    animation: badgePulse 2s infinite;
    z-index: 10;
}

.featured-badge i {
    color: #FFD700;
    filter: drop-shadow(0 0 5px #FFA500);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid #E63946;
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.vote-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 3px solid #E63946;
    border-radius: 15px;
    transform: translate(-50%, -50%);
    animation: votePulse 2s infinite;
    pointer-events: none;
}

@keyframes votePulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.featured-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.featured-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.accusation-box {
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid #E63946;
    padding: 20px;
    border-radius: 10px;
}

.accusation-box strong {
    color: #E63946;
    font-size: 1.1rem;
}

.accusation-box p {
    color: #ddd;
    line-height: 1.6;
    margin: 0;
}

.vote-stats-featured {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.vote-count-large {
    font-size: 2rem;
    font-weight: 900;
    color: #E63946;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vote-percentage {
    color: #aaa;
    font-weight: 600;
}

.progress-bar-container {
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #E63946 0%, #FF6B7A 100%);
    border-radius: 15px;
    position: relative;
    transition: width 0.8s ease;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.action-buttons-featured {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-vote-featured {
    flex: 2;
    background: linear-gradient(135deg, #E63946, #C62F3A);
    color: #fff;
    border: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 10px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-vote-featured:hover {
    background: linear-gradient(135deg, #FF4D5A, #E63946);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
}

.btn-share-featured {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-share-featured:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #E63946;
    transform: translateY(-3px);
}

.btn-shop-featured {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000 !important;
    border: none;
    padding: 12px 15px;
    font-size: 0.9rem;
    font-weight: 900;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-shop-featured:hover {
    background: linear-gradient(135deg, #FFF, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-shop-card {
    background: #FFD700;
    color: #000 !important;
    border: none;
    padding: 8px 5px;
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: 5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-shop-card:hover {
    background: #fff;
    transform: scale(1.05);
}

.social-proof {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
}

/* Other Candidates Grid */
.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 50px 0 30px;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E63946, transparent);
}

.candidate-card-wrapper {
    animation: slideInCard 0.5s ease-out backwards;
}

.candidate-card-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.candidate-card-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.candidate-card-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.candidate-card {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.candidate-card:hover {
    transform: translateY(-10px);
    border-color: #E63946;
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.3);
}

.rank-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.2);
    border: 2px solid #E63946;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #E63946;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: #000;
    border-color: #C0C0C0;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #000;
    border-color: #CD7F32;
}

.candidate-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.candidate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.candidate-card:hover .candidate-image {
    transform: scale(1.1);
}

.candidate-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.candidate-title {
    color: #E63946;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.accusation-preview {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 60px;
    margin-bottom: 15px;
}

.vote-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.vote-count-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.vote-count {
    font-size: 2rem;
    font-weight: 900;
    color: #E63946;
}

.vote-label {
    color: #aaa;
    font-size: 0.9rem;
}

.mini-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E63946, #FF6B7A);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.vote-percentage-small {
    text-align: right;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-vote-card {
    width: 100%;
    background: #E63946;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 900;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-vote-card:hover {
    background: #C62F3A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.card-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(230, 57, 70, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.candidate-card:hover .card-hover-overlay {
    transform: translateY(0);
}

.btn-expand {
    width: 100%;
    background: #fff;
    color: #E63946;
    border: none;
    padding: 10px;
    font-weight: 700;
    border-radius: 6px;
}

/* New Leader Animation */
.new-leader {
    animation: newLeaderFlash 2s ease-out;
}

@keyframes newLeaderFlash {

    0%,
    100% {
        box-shadow: 0 15px 50px rgba(230, 57, 70, 0.3);
    }

    50% {
        box-shadow: 0 15px 80px rgba(230, 57, 70, 0.8), 0 0 50px rgba(255, 215, 0, 0.5);
    }
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #1a1a2e;
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    border-left: 5px solid #E63946;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4CAF50;
}

.notification-warning {
    border-left-color: #FFA500;
}

.notification-error {
    border-left-color: #E63946;
}

/* Modal */
.candidate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #1a1a2e;
    border: 2px solid #E63946;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(230, 57, 70, 0.2);
    color: #E63946;
}

/* Transitions */
#hall-of-shame-grid {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-name {
        font-size: 1.8rem;
    }

    .vote-count-large {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .action-buttons-featured {
        flex-direction: column;
    }
}