/* Dark Neon Theme Container */
.vptl-container.vptl-dark-theme {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #fff;
    padding: 0 10px;
}

/* Card Style - Neon Glassmorphism */
.vptl-dark-theme .vptl-card {
    background: #12121c;
    /* Solid backup */
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ensure content is above background effects */
.vptl-info,
.vptl-action {
    position: relative;
    z-index: 5;
}

/* Hover effects only on devices that support hover */
@media (hover: hover) {
    .vptl-dark-theme .vptl-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 255, 255, 0.3);
        box-shadow: 0 8px 30px rgba(0, 243, 255, 0.15);
    }
}

/* Typography */
.vptl-dark-theme .vptl-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    line-height: 1.4;
}

.vptl-dark-theme .vptl-author {
    font-size: 0.95rem;
    color: #b0b0d0;
    margin: 0;
    font-style: italic;
}

.vptl-author-label {
    color: #00f3ff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
    font-weight: 600;
    font-style: normal;
}

/* Info & Actions Layout */
.vptl-info {
    margin-bottom: 1.5rem;
}

.vptl-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

/* Vote Count */
.vptl-count-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vptl-count {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00f3ff;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    line-height: 1;
    display: inline-block;
    min-width: 30px;
    /* Prevent layout shift */
}

.vptl-count.pop-animation {
    animation: countPop 0.3s ease-out;
    color: #fff;
}

.vptl-votes-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Button - Neon Style */
.vptl-vote-btn {
    background: rgba(0, 243, 255, 0.05);
    color: #00f3ff;
    border: 1px solid #00f3ff;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    min-width: 120px;
    z-index: 2;
}

/* Pulse Effect - Scoped to Hover */
@media (hover: hover) {
    .vptl-vote-btn:hover:not(:disabled) {
        background: #00f3ff;
        color: #000;
        box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
        transform: translateY(-2px);
        animation: pulse 1.5s infinite;
    }
}

.vptl-vote-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.vptl-vote-btn:disabled {
    border-color: #333;
    background: #222;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Voted State */
.vptl-voted.vptl-card {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.vptl-voted .vptl-vote-btn {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.vptl-voted .vptl-count {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Winner Banner */
.vptl-winner-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    color: #000;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
    border: 2px solid #fff;
    margin-top: 1rem;
}

.vptl-winner-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.vptl-winner-banner h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    opacity: 0.9;
    font-weight: 700;
    color: #000;
    /* Ensure visibility on gold/orange bg */
    text-shadow: none;
}

.vptl-winner-banner h1 {
    font-size: 2.2rem;
    margin: 0.5rem 0;
    line-height: 1.1;
    font-weight: 800;
    color: #000;
    text-shadow: none;
}

.vptl-winner-banner p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    color: #000;
}

/* Responsive Banner */
@media (max-width: 600px) {
    .vptl-winner-banner {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .vptl-winner-icon {
        font-size: 2.5rem;
    }

    .vptl-winner-banner h2 {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .vptl-winner-banner h1 {
        font-size: 1.6rem;
    }
}

/* Animations */
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 243, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

@keyframes countPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
        color: #fff;
    }

    100% {
        transform: scale(1);
    }
}

/* Loader */
.vptl-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s infinite linear;
}

.vptl-vote-btn.loading .vptl-btn-text {
    visibility: hidden;
}

.vptl-vote-btn.loading .vptl-loader {
    display: block;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .vptl-container.vptl-dark-theme {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}