/* MSG AI Survey Specific Styles */

/* MSG Brand Colors */
:root {
    --msg-green: #3AAA35;
    --msg-green-dark: #2d8829;
    --msg-green-light: #4bc045;
}

/* Gradient background - subtle dark gradient matching header */
.gradient-bg {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
    min-height: 100vh;
}

/* Sticky header */
.survey-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.survey-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.org-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.westcube-logo {
    height: 45px;
    width: auto;
    opacity: 1;
}

.survey-title {
    font-size: 1.25rem;
    font-weight: 300;
    color: white;
    white-space: nowrap;
}

.survey-title .msg-heart {
    color: var(--msg-green);
    font-size: 1.5rem;
}

.progress-section {
    flex-grow: 1;
    min-width: 200px;
}

/* Mobile responsive header */
@media (max-width: 768px) {
    .survey-header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
    }

    .survey-title {
        font-size: 1rem;
    }

    .org-logo {
        height: 32px;
    }

    .westcube-logo {
        height: 24px;
    }

    .progress-section {
        width: 100%;
    }
}

/* Progress bar */
.progress-container {
    margin-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--msg-green-dark), var(--msg-green), var(--msg-green-light));
    border-radius: 9999px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(58, 170, 53, 0.5);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-token-secondary);
    margin-bottom: 0.5rem;
}

/* Question cards - lichtere groene tint */
.question-card {
    background: linear-gradient(135deg, rgba(58, 170, 53, 0.15) 0%, rgba(75, 192, 69, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(58, 170, 53, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.question-card:hover {
    border-color: rgba(58, 170, 53, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(58, 170, 53, 0.2);
    background: linear-gradient(135deg, rgba(58, 170, 53, 0.2) 0%, rgba(75, 192, 69, 0.25) 100%);
}

/* Vraag kopjes gecentreerd */
.question-card h2,
.question-card h3 {
    text-align: center;
}

/* Radio/Checkbox options */
.option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--color-surface-secondary);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.option-label:hover {
    background-color: var(--color-surface-tertiary);
    border-color: var(--wc-color-primary);
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    margin-right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.option-label.selected {
    background-color: var(--color-surface-tertiary);
    border-color: var(--wc-color-primary);
}

/* Text inputs */
.text-input,
.textarea-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-surface-secondary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--wc-color-primary);
    box-shadow: 0 0 0 2px var(--wc-color-primary-bg);
}

.textarea-input {
    min-height: 100px;
    resize: vertical;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* Privacy notice */
.privacy-notice {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.privacy-notice h3 {
    color: var(--wc-color-success-light);
    margin-bottom: 0.75rem;
}

.privacy-notice ul {
    list-style: none;
    padding: 0;
}

.privacy-notice li {
    padding: 0.5rem 0;
    color: var(--color-token-primary);
}

/* Notification system - in header */
.notification-container-header {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.5rem 1rem 0;
}

.notification {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: slideDown 0.3s ease;
    border-left: 4px solid;
}

.notification.error {
    border-left-color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification.warning {
    border-left-color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.notification.success {
    border-left-color: #3AAA35;
    background: rgba(58, 170, 53, 0.1);
    border: 1px solid rgba(58, 170, 53, 0.3);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--color-token-primary);
    font-size: 0.875rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--color-token-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

/* Old warning banner - deprecated */
.warning-banner {
    display: none;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
    }
    50% {
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(45deg);
    }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--wc-color-success);
    margin: 2rem auto;
    position: relative;
}

.success-checkmark::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 20px;
    width: 15px;
    height: 30px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    animation: checkmark 0.5s ease 0.5s forwards;
    transform-origin: center;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--wc-color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .question-card {
        padding: 1.5rem;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .wc-btn-base {
        width: 100%;
    }
}

/* Smooth page transitions */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden class for conditional questions */
.hidden {
    display: none !important;
}
