/* Win The Movies - Custom Styles */

/* ========== Glass Morphism ========== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-gold {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(184, 134, 11, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.glass-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Animations ========== */
@keyframes trophy-shine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.trophy-animate {
    animation: trophy-shine 2s ease-in-out infinite;
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

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

.text-gold-shimmer {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

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

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(218, 165, 32, 0.3); }
    50% { box-shadow: 0 0 40px rgba(218, 165, 32, 0.5); }
}

.glow-gold {
    animation: glow 2s ease-in-out infinite;
}

/* ========== Leaderboard Ranks ========== */
.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
}

.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
    border-color: rgba(192, 192, 192, 0.5);
}

.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
    border-color: rgba(205, 127, 50, 0.5);
}

/* ========== Nominee Cards ========== */
.nominee-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.nominee-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.nominee-card.selected {
    border-color: #DAA520;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(218, 165, 32, 0.05));
}

.nominee-card.winner {
    border-color: #22C55E;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
}

.nominee-card.winner.selected {
    border-color: #22C55E;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.nominee-card.loser {
    opacity: 0.5;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== Form Styles ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

/* Custom checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background: #DAA520;
    border-color: #DAA520;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    display: block;
    text-align: center;
    color: black;
    font-weight: bold;
    font-size: 14px;
    line-height: 16px;
}

/* ========== Button States ========== */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========== Mobile Navigation ========== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Hamburger animation */
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Chat Styles ========== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.chat-message {
    animation: slideIn 0.2s ease-out;
}

.chat-message.system {
    background: linear-gradient(90deg, rgba(218, 165, 32, 0.1), transparent);
    border-left: 3px solid #DAA520;
}

/* ========== Category Pills ========== */
.category-pill {
    transition: all 0.2s ease;
}

.category-pill:hover {
    transform: scale(1.05);
}

.category-pill.major {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(218, 165, 32, 0.1));
    border-color: rgba(218, 165, 32, 0.3);
}

/* ========== Progress Bar ========== */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ========== Countdown Timer ========== */
.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== Trophy Podium ========== */
.podium-1 { order: 2; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }

@media (max-width: 640px) {
    .podium-1, .podium-2, .podium-3 { order: unset; }
}

/* ========== Share Code ========== */
.share-code {
    font-family: monospace;
    letter-spacing: 0.3em;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    user-select: all;
}

/* ========== Responsive Utilities ========== */
@media (max-width: 640px) {
    /* Larger touch targets */
    button,
    a.btn,
    input[type="submit"] {
        min-height: 44px;
    }

    /* Stack on mobile */
    .mobile-stack {
        flex-direction: column;
    }

    /* Full width on mobile */
    .mobile-full {
        width: 100%;
    }

    /* Hide on mobile */
    .mobile-hide {
        display: none;
    }

    /* Countdown adjustments */
    .countdown-value {
        font-size: 1.5rem;
    }
}

@media (min-width: 641px) {
    /* Hide on desktop */
    .desktop-hide {
        display: none;
    }
}

/* ========== Tooltip ========== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========== Empty States ========== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========== Skeleton Loading ========== */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

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