/* Clubbing Survey Styles - Dark Theme */

.clubbing-survey-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
}

.survey-counter {
    text-align: right;
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 20px;
    font-weight: 600;
}

#survey-counter {
    color: #60a5fa;
    font-weight: bold;
}

.clubbing-survey-form {
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding: 30px;
    border: 1px solid #2a2a2a;
}

.survey-section {
    margin-bottom: 35px;
}

.survey-section h3 {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.borda-instruction {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
}

.borda-budget {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #252525;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    color: #e0e0e0;
    border: 1px solid #333;
}

.budget-counter {
    color: #60a5fa;
    font-size: 18px;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.survey-button,
.borda-button {
    padding: 12px 20px;
    border: 2px solid #333;
    background: #252525;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e0e0;
}

.survey-button:hover,
.borda-button:hover {
    border-color: #60a5fa;
    background: #2a2a2a;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

.survey-button.selected {
    border-color: #60a5fa;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

.borda-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.borda-button .score {
    background: #3b82f6;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    min-width: 30px;
    text-align: center;
}

.borda-button.has-score {
    border-color: #60a5fa;
    background: #1e3a5f;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

.reset-button {
    padding: 8px 16px;
    border: 1px solid #333;
    background: #252525;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.2s ease;
    color: #b0b0b0;
}

.reset-button:hover {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-button:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.submit-button:disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
}

.survey-message,
.clubbing-survey-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

.survey-message.success,
.clubbing-survey-message {
    background: #1e4620;
    color: #86efac;
    border: 1px solid #2d5a2e;
}

.survey-message.error {
    background: #4a1c1c;
    color: #fca5a5;
    border: 1px solid #6b2525;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clubbing-survey-wrapper {
        padding: 10px;
    }

    .clubbing-survey-form {
        padding: 20px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .survey-section h3 {
        font-size: 16px;
    }

    .survey-button,
    .borda-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Loading State */
.survey-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.survey-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #333;
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip for reasons */
.borda-button[title] {
    cursor: help;
}
