* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --bg-light: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-gold-hover: #f4cf47;
    --border-color: #3a3a3a;
    --red-strike: #ff4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: var(--bg-medium);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.navbar .center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .center-logo img {
    height: 100%;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar .left {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar .brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar .brand .fake-text {
    text-decoration: line-through;
    text-decoration-color: var(--red-strike);
    text-decoration-thickness: 3px;
    color: var(--red-strike);
    opacity: 1;
    margin-right: 0.3rem;
    font-weight: 700;
}

.navbar .brand .vivis-text {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: #333;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.user-menu .pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    transition: transform 0.3s ease;
}

.user-menu:hover .pfp {
    transform: scale(1.05);
}

.user-menu span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

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

.dropdown.hidden {
    display: none;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown a:hover {
    background: var(--bg-medium);
    color: var(--accent-gold);
}

.login-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.vote-btn svg {
    transition: transform 0.3s ease;
}

.vote-btn:hover {
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.vote-btn:hover svg {
    transform: translateX(5px);
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 3rem;
    text-align: center;
}

.center h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.center .title-with-strike {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.center .title-with-strike .fake-text {
    text-decoration: line-through;
    text-decoration-color: var(--red-strike);
    text-decoration-thickness: 3px;
    color: var(--red-strike);
    opacity: 1;
    margin-right: 0.3rem;
    font-weight: 700;
}

.center .title-with-strike .vivis-text {
    color: var(--accent-gold);
}

.center p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Categories Scroll Container */
.categories-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.scroll-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.scroll-btn:hover {
    background: var(--bg-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn svg {
    width: 20px;
    height: 20px;
}

.categories-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 1rem 2rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-btn:hover {
    background: #333;
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.voting-content {
    min-height: calc(100vh - 250px);
    padding: 3rem;
}

.category-info {
    text-align: center;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.voting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.voting-grid.emote-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.voting-grid.song-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.voting-grid.longboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.vote-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.vote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

.vote-card.selected {
    border-color: var(--accent-gold);
    border-width: 3px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.vote-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.vote-card:hover .vote-card-image {
    transform: scale(1.1);
}

.vote-card.selected .vote-card-image {
    border-color: var(--accent-gold);
    border-width: 4px;
}

.vote-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    word-break: break-word;
}

.vote-card-button {
    padding: 0.75rem 2rem;
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.vote-card-button:hover {
    background: var(--bg-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.vote-card-button.selected {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Emote card specific styles */
.emote-card {
    min-width: 250px;
}

.emote-card .emote-image {
    border-radius: 12px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: var(--bg-medium);
    padding: 0.5rem;
}

.emote-card .vote-card-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

.emote-card .vote-card-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.emote-card .vote-card-button {
    flex: 1;
}

.vote-card-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.vote-card-link-button:hover {
    background: var(--bg-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.05);
}

.vote-card-link-button svg {
    width: 20px;
    height: 20px;
}

/* Song card specific styles */
.song-card {
    min-width: 250px;
}

.song-card .song-image {
    border-radius: 12px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    background: var(--bg-medium);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.song-card .vote-card-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

.song-card .vote-card-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.song-card .vote-card-button {
    flex: 1;
}

.longboard-card {
    background: var(--bg-medium);
    border-color: rgba(255, 255, 255, 0.1);
}

.longboard-image {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    object-fit: cover;
    border-color: rgba(255, 255, 255, 0.2);
}

.alert-card {
    border-color: rgba(255, 68, 68, 0.8);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.35);
}

.alert-overlay {
    position: absolute;
    width: 160px;
    height: 160px;
    background: url('/static/alert.gif') center/contain no-repeat;
    top: 55%;
    left: 42%;
    transform: translate(-50%, -25%);
    pointer-events: none;
    opacity: 0.95;
}

.loading, .no-data, .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
}

.site-footer span,
.site-footer a {
    color: inherit;
}

.site-footer .vgregor-highlight {
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffe9a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-footer .nurliebe-emote {
    height: 1em;
    width: auto;
    vertical-align: text-bottom;
    margin-left: 0.35rem;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .navbar .left,
    .navbar .brand {
        font-size: 1.2rem;
    }
    
    .user-menu span {
        display: none;
    }
    
    .center h1,
    .center .title-with-strike {
        font-size: 2rem;
    }
    
    .center p {
        font-size: 1rem;
    }
    
    .categories-container {
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
    }
    
    .category-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

