/* Copyright (c) ITech4net SAS. All rights reserved.
   Created: 2026-01-14
   Modified: 2026-01-31
   
   Vote Page Styles
*/

:root {
    --bg-color: #0a0a0f;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #38ef7d;
    --purple-accent: #bf5af2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden;
}

/* Background Animation */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.bg-glow::before {
    background: var(--accent-color);
    top: -10%;
    left: -10%;
}

.bg-glow::after {
    background: var(--purple-accent);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 3.0rem;
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 40%, #d946ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    font-family: 'Space Grotesk', 'Urbanist', sans-serif;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 300;
    margin-bottom: 20px;
}

.poll-title-main {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 15px;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    line-height: 1.2;
}

.poll-author-sub {
    font-size: 1rem;
    opacity: 0.6;
    margin-top: 5px;
    font-weight: 500;
}

.poll-author-sub::before {
    content: 'by ';
}

.poll-desc-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 25px auto 10px;
    max-width: 600px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

nav.top-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: white;
    opacity: 1;
}

/* Brand Cards */
.brands-grid {
    display: grid;
    gap: 24px;
    position: relative;
}

.brand-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1),
        filter 0.5s ease,
        opacity 0.5s ease,
        border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 60px;
    height: 60px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #ffffff;
    position: relative;
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.vote-btn.active {
    background: var(--purple-accent);
    border-color: var(--purple-accent);
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.4);
}

.vote-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.vote-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--purple-accent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.vote-count.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Intro Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #12121a;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-color), var(--purple-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.brand-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.brand-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--purple-accent));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
}

/* Success animation */
@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pop-animation {
    animation: pop 0.3s ease-out;
}

/* Sorting Animations */
.brands-grid.animating-sort>.brand-card:not(.sorting-item) {
    filter: blur(8px);
    opacity: 0.4;
    pointer-events: none;
}

/* Jump/Pop effect for the voted item */
.brand-card.sorting-item {
    z-index: 100;
    box-shadow: 0 20px 60px rgba(191, 90, 242, 0.5);
    border-color: var(--purple-accent);
    transform: scale(1.04) translateY(-20px) !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 50px 20px 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer a {
    color: #bf5af2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .brand-name {
        font-size: 1.5rem;
    }

    .brand-card {
        padding: 20px;
    }

    .vote-btn {
        width: 50px;
        height: 50px;
    }
}