/* Moonball Public Voting Styles - Black & Gold Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.moonball-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #000000;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.moonball-notice {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #FFD700;
    font-size: 16px;
    margin: 20px;
    font-weight: 600;
}

/* Header Section */
.moonball-header {
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #FFD700;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
}

.back-link:hover {
    color: #FFA500;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(-5px);
}

.moonball-main-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.category-icon-large {
    font-size: 56px;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.moonball-subtitle {
    font-size: 18px;
    color: rgba(255, 215, 0, 0.8);
    font-weight: 400;
}

.voted-alert {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 2px solid #FFD700;
    border-radius: 16px;
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.checkmark-large {
    display: inline-block;
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.voted-alert p {
    color: #FFD700;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Categories Grid */
.moonball-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.moonball-category-card {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.moonball-category-card:hover {
    transform: translateY(-8px);
    border-color: #FFD700;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.category-card-link {
    display: block;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.category-icon-wrapper {
    margin-bottom: 20px;
}

.category-icon-bg {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border: 3px solid #FFD700;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.moonball-category-card:hover .category-icon-bg {
    border-color: #FFA500;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.category-icon-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { transform: rotate(45deg) translateY(-100%); }
    50% { transform: rotate(45deg) translateY(100%); }
}

.category-icon-bg.voted {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-color: #FFD700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

.category-icon {
    font-size: 72px;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.category-name {
    font-size: 22px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.vote-now-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.vote-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.vote-now-btn:hover::before {
    left: 100%;
}

.vote-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.voted-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.voted-badge .checkmark {
    font-size: 18px;
}

.category-meta {
    color: rgba(255, 215, 0, 0.6);
    font-size: 14px;
    margin-top: 15px;
    font-weight: 500;
}

/* Participants Grid */
.moonball-participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.moonball-participants-grid.voted {
    opacity: 0.7;
    pointer-events: none;
}

.moonball-participant-card {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.moonball-participant-card:hover {
    transform: translateY(-8px);
    border-color: #FFD700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
}

.participant-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-bottom: 3px solid rgba(255, 215, 0, 0.3);
}

.participant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
}

.moonball-participant-card:hover .participant-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.participant-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.placeholder-icon {
    font-size: 100px;
    opacity: 0.3;
    color: #FFD700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.vote-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.vote-icon {
    font-size: 18px;
}

.vote-count {
    color: #FFD700;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 5px rgba(255, 215, 0, 0.5);
}

.participant-content {
    padding: 25px;
    flex-grow: 1;
    background: linear-gradient(to bottom, #0a0a0a, #000000);
}

.participant-name {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.participant-description {
    font-size: 15px;
    color: rgba(255, 215, 0, 0.7);
    line-height: 1.6;
    margin: 0;
}

.moonball-vote-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.moonball-vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.moonball-vote-btn:hover::before {
    left: 100%;
}

.moonball-vote-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.moonball-vote-btn:active {
    transform: scale(0.98);
}

.moonball-vote-btn:disabled {
    background: linear-gradient(135deg, #333, #555);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Modal Styles */
.moonball-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.moonball-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.moonball-modal-content {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.5);
    animation: slideIn 0.3s;
    position: relative;
    border: 3px solid #FFD700;
}

.moonball-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.moonball-modal-close:hover {
    color: #FFA500;
    transform: rotate(90deg);
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.8);
}

.moonball-modal-body {
    padding: 50px 40px;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.4);
    border: 3px solid #000000;
}

.moonball-modal-body h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.moonball-modal-body p {
    font-size: 16px;
    color: rgba(255, 215, 0, 0.8);
    margin: 0 0 25px 0;
}

.moonball-back-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.moonball-back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.moonball-back-btn:hover::before {
    left: 100%;
}

.moonball-back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

/* Loading Animation */
.moonball-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
    }
    to {
        transform: scale(1) rotate(0);
    }
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.glow-effect {
    animation: glow 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .moonball-container {
        padding: 30px 15px;
    }
    
    .moonball-main-title {
        font-size: 32px;
    }
    
    .category-icon-large {
        font-size: 40px;
    }
    
    .moonball-categories-grid,
    .moonball-participants-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-icon-bg {
        width: 120px;
        height: 120px;
    }
    
    .category-icon {
        font-size: 60px;
    }
    
    .category-name {
        font-size: 20px;
        min-height: auto;
    }
    
    .participant-image-wrapper {
        height: 250px;
    }
    
    .moonball-modal-content {
        width: 95%;
    }
    
    .moonball-modal-body {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .moonball-main-title {
        font-size: 28px;
    }
    
    .moonball-subtitle {
        font-size: 14px;
    }
    
    .category-icon-bg {
        width: 100px;
        height: 100px;
    }
    
    .category-icon {
        font-size: 50px;
    }
    
    .vote-now-btn {
        font-size: 14px;
        padding: 12px 30px;
    }
    
    .participant-name {
        font-size: 20px;
    }
    
    .participant-description {
        font-size: 14px;
    }
    
    .back-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Print Styles */
@media print {
    .moonball-container {
        background: white;
        color: black;
    }
    
    .vote-now-btn,
    .moonball-vote-btn {
        display: none;
    }
}