/* Poll Page Styles - Black & White UI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.poll-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    z-index: -1;
}

.poll-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--primary-black);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-black);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-white);
    font-family: 'JetBrains Mono', monospace;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-white);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-white);
    color: var(--primary-black);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-white);
}

.back-btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.poll-hero {
    background: var(--primary-black);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 3px solid var(--primary-black);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-white);
}

.gradient-text {
    color: var(--primary-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-white);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Poll Section */
.poll-section {
    background: var(--primary-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-black);
}

.poll-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.poll-intro h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.poll-intro p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    position: relative;
    background: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feature-card label {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.feature-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.feature-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.feature-votes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: 12px;
    margin-top: auto;
    border: 2px solid var(--primary-black);
}

.vote-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-black);
    font-family: 'JetBrains Mono', monospace;
}

.vote-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Checked State */
.feature-card:has(input:checked) {
    background: var(--primary-black);
    border-color: var(--primary-black);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-card:has(input:checked) .feature-content h3,
.feature-card:has(input:checked) .feature-content p {
    color: var(--primary-white);
}

.feature-card:has(input:checked) .feature-votes {
    background: var(--primary-white);
    border-color: var(--primary-white);
}

.feature-card:has(input:checked) .vote-count,
.feature-card:has(input:checked) .vote-label {
    color: var(--primary-black);
}

.feature-card:hover {
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Submit Section */
.submit-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 16px;
}

.selected-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-700);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    background: var(--primary-black);
    color: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: var(--gray-900);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--gray-400);
    border-color: var(--gray-400);
}

/* Results Section */
.results-section {
    background: var(--primary-white);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-black);
}

.results-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.results-section p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.top-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.top-feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary-white);
    border-radius: 12px;
    border: 3px solid var(--primary-black);
}

.top-feature-name {
    font-weight: 600;
    color: var(--primary-black);
}

.top-feature-votes {
    font-weight: 700;
    color: var(--primary-black);
    font-family: 'JetBrains Mono', monospace;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--primary-black);
    color: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--primary-white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

.toast.info {
    border-left: 4px solid var(--accent-blue);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .poll-container {
        padding: 1rem;
    }

    .poll-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .poll-hero {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .poll-section {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

