/* Voting Page Specific Styles */

/* Voting Hero Section */
.voting-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    padding: 120px 20px 60px;
}

.voting-content {
    text-align: center;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

.voting-header {
    margin-bottom: 60px;
}

.voting-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.voting-title .title-line {
    display: block;
    line-height: 1.1;
}

.voting-subtitle {
    font-size: 1.3rem;
    color: #b8b8b8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.5s both;
}

/* Voting Timer */
.voting-timer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.7s both;
}

.timer-label {
    font-size: 1.2rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    font-weight: 600;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timer-unit {
    text-align: center;
    min-width: 80px;
}

.timer-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    animation: pulse 2s infinite;
}

.timer-text {
    display: block;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Voting Stats */
.voting-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.9s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b8b8b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Voting Options Section */
.voting-options {
    padding: 80px 0;
    background: linear-gradient(180deg, #000000 0%, #1a1a2e 100%);
}

/* Add Meme Section */
.add-meme-section {
    margin: 40px 0;
    text-align: center;
}

.add-meme-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.add-meme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.4);
}

.add-meme-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: none;
    animation: slideDown 0.3s ease;
}

.add-meme-form.active {
    display: block;
}

.add-meme-form h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.submit-meme-btn {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-meme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.char-counter {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Voting List */
.voting-list {
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.vote-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}

.vote-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.vote-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.vote-item:hover::before {
    transform: translateX(100%);
}

.vote-item.voted {
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.vote-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4ecdc4;
    min-width: 40px;
    text-align: center;
}

.vote-emoji {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vote-item:hover .vote-emoji {
    transform: scale(1.1) rotate(5deg);
}

.vote-info {
    flex: 1;
    min-width: 0;
}

.vote-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.vote-category {
    font-size: 0.9rem;
    color: #4ecdc4;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vote-description {
    color: #b8b8b8;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.vote-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vote-count {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.vote-percentage {
    color: #4ecdc4;
    font-weight: 700;
    font-size: 1rem;
    min-width: 40px;
}

.vote-progress-container {
    flex: 1;
    max-width: 200px;
}

.vote-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.vote-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.vote-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.vote-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.vote-btn:disabled {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    cursor: not-allowed;
    opacity: 0.7;
}

.vote-btn.voted {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.community-submitted {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Voting Progress */
.voting-progress {
    margin: 25px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vote-count {
    color: #fff;
    font-weight: 600;
}

.vote-percentage {
    color: #4ecdc4;
    font-weight: 700;
    font-size: 1.1rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Progress bar colors for different memes */
.bonk-fill { background: linear-gradient(90deg, #ff6b6b, #ff8e53); }
.ponke-fill { background: linear-gradient(90deg, #4ecdc4, #44a08d); }
.brett-fill { background: linear-gradient(90deg, #45b7d1, #96c93d); }
.pepe-fill { background: linear-gradient(90deg, #fd79a8, #fdcb6e); }

/* Dynamic progress fills for user-submitted memes */
.default-fill { background: linear-gradient(90deg, #4ecdc4, #44a08d); }

/* Vote Button */
.vote-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
}

.vote-button:active {
    transform: translateY(0);
}

.vote-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vote-button:hover .vote-sparkle {
    opacity: 1;
    animation: sparkleEffect 0.6s ease;
}

/* Leaderboard Section */
.leaderboard {
    padding: 80px 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.leaderboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.podium {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 20px;
    height: 300px;
}

.podium-place {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
    position: relative;
}

.podium-place.first {
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.podium-place.second {
    height: 180px;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.05));
    border-color: rgba(192, 192, 192, 0.3);
}

.podium-place.third {
    height: 140px;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.05));
    border-color: rgba(205, 127, 50, 0.3);
}

.place-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.place-name {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.place-votes {
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 5px;
}

.place-percentage {
    color: #888;
    font-size: 0.9rem;
}

/* Voting History */
.voting-history {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.voting-history h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.vote-feed {
    max-height: 200px;
    overflow-y: auto;
}

.vote-entry {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8b8b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.vote-entry:last-child {
    border-bottom: none;
}

.voter {
    color: #4ecdc4;
    font-weight: 600;
}

.bot-voted {
    color: #ff6b6b;
    font-weight: 600;
}

.vote-time {
    float: right;
    color: #888;
    font-size: 0.8rem;
}

/* Previous Winners */
.previous-winners {
    padding: 80px 0;
    background: linear-gradient(180deg, #16213e 0%, #000000 100%);
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.winner-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.winner-card.coming-soon {
    border-style: dashed;
    border-color: rgba(255, 107, 107, 0.5);
}

.winner-week {
    color: #4ecdc4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.winner-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.winner-description {
    color: #b8b8b8;
    margin-bottom: 15px;
    line-height: 1.4;
}

.winner-votes {
    color: #ff6b6b;
    font-weight: 600;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes sparkleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .voting-title {
        font-size: 2.5rem;
    }
    
    .add-meme-form {
        margin: 0 15px;
        padding: 20px;
    }
    
    .vote-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .vote-rank {
        order: 1;
    }
    
    .vote-emoji {
        order: 2;
    }
    
    .vote-info {
        order: 3;
    }
    
    .vote-btn {
        order: 4;
        align-self: center;
    }
    
    .vote-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .vote-progress-container {
        max-width: 100%;
    }
    
    .timer-display {
        gap: 10px;
    }
    
    .timer-number {
        font-size: 2rem;
    }
    
    .voting-stats {
        gap: 20px;
    }
    
    .leaderboard-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .podium {
        height: 250px;
    }
    
    .podium-place {
        min-width: 100px;
        padding: 15px;
    }
    
    .podium-place.first { height: 180px; }
    .podium-place.second { height: 150px; }
    .podium-place.third { height: 120px; }
}

@media (max-width: 480px) {
    .voting-hero {
        padding: 100px 15px 40px;
    }
    
    .voting-title {
        font-size: 2rem;
    }
    
    .timer-unit {
        min-width: 60px;
    }
    
    .timer-number {
        font-size: 1.8rem;
    }
    
    .vote-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .vote-emoji {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .vote-name {
        font-size: 1.1rem;
    }
    
    .vote-description {
        font-size: 0.85rem;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-meme-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Special Effects */
.vote-card.voted {
    animation: votePulse 0.8s ease;
    border-color: #4ecdc4;
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

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

.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes parachuteFall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(50px) rotate(5deg) scale(1);
    }
    25% {
        transform: translateY(150px) rotate(-3deg) scale(1.05);
    }
    40% {
        transform: translateY(300px) rotate(2deg) scale(1);
    }
    55% {
        transform: translateY(450px) rotate(-1deg) scale(1.02);
    }
    70% {
        transform: translateY(600px) rotate(3deg) scale(0.98);
    }
    85% {
        transform: translateY(750px) rotate(-2deg) scale(0.95);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

.celebration-parachute {
    pointer-events: none;
    will-change: transform;
}

.celebration-parachute:hover {
    animation-play-state: paused;
}

/* Voting Disabled State */
.voting-disabled {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.voting-disabled h2 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
}

.voting-disabled p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.disabled-icon {
    font-size: 4rem;
    margin-top: 30px;
    animation: pulse 2s infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 