/**
 * Participate Pages Styling
 * 
 * Design: Split-Card Layout (wie Login-Seite)
 * Mit survey-modern.css Elementen für Wiedererkennungswert
 */

/* ============================================
   1. BACKGROUND & CONTAINER (wie auth.css)
   ============================================ */
.participate-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    position: relative;
    overflow-x: hidden; /* Nur horizontal hidden für Hintergrund-Blur */
    overflow-y: auto;   /* Vertikal scrollbar */
    /* background: linear-gradient(135deg, #1a4d78a3 0%, #6366f1a6 100%); */
    background: linear-gradient(135deg, #1a4d786b 0%, #6366f126 100%)
}

/* Background - Dezent und unauffällig */
/* .participate-page::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background-image: url('../../images/stock/team-collaboration.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.5) saturate(0.7);
    z-index: 0;
    transform: scale(1.1);
} */

/* ============================================
   2. SPLIT-CARD CONTAINER
   ============================================ */
.participate-container {
    display: flex;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* ============================================
   3. LEFT SIDE - Visual/Branding
   ============================================ */
.participate-visual {
    width: 380px;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    flex-shrink: 0;
}

/* Background Image */
.participate-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../../images/stock/team-collaboration.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Gradient Overlay - Standard (kann via Klasse überschrieben werden) */
.participate-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(26, 77, 120, 0.85) 0%, rgb(6 6 10 / 98%) 100%);
    z-index: 1;
}

/* Success-Variante (grün) */
.participate-visual--success::after {
    /* background: linear-gradient(180deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.95) 100%); */
    background: linear-gradient(180deg, rgb(22 219 154 / 26%) 0%, rgb(14 75 56 / 95%) 100%)
}

/* Error-Variante (rot) */
.participate-visual--error::after {
    /* background: linear-gradient(180deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.95) 100%); */
    background: linear-gradient(180deg, rgb(211 87 87 / 48%) 0%, rgb(77 11 11) 100%)
}

.participate-visual__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

/* Logo Ring im Visual-Bereich */
.participate-visual .logo-progress-ring {
    margin-bottom: 2rem;
}

.participate-visual .logo-progress-ring__icon {
    /* filter: brightness(0) invert(1); */
    opacity: 0.95;
    width: 250px;
    height: auto;
}

.participate-visual__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.participate-visual__subtitle {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   4. RIGHT SIDE - Content
   ============================================ */
.participate-content {
    flex: 1;
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

.participate-content__header {
    margin-bottom: 1.75rem;
}

.participate-content__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary, #1A4D78);
    margin: 0 0 0.5rem 0;
}

.participate-content__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.participate-content__subtitle {
    font-size: 1rem;
    color: var(--gray-500, #6b7280);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   SURVEY META - Elegantes 2-Spalten-Layout
   ============================================ */
.survey-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.survey-meta__item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.survey-meta__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    color: var(--primary, #1A4D78);
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.survey-meta__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.survey-meta__label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500, #6b7280);
}

.survey-meta__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
}

/* ============================================
   PRIVACY BADGE - Kompakt & Modern
   ============================================ */
.privacy-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.privacy-badge__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.privacy-badge__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.privacy-badge__content strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #065f46;
}

.privacy-badge__content span {
    font-size: 0.8rem;
    color: #047857;
}

/* ============================================
   EDIT HINT - Dezenter Hinweis
   ============================================ */
.edit-hint {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.edit-hint__text {
    font-size: 0.85rem;
    color: var(--gray-500, #6b7280);
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.edit-hint__text i {
    color: var(--gray-400, #9ca3af);
    margin-right: 0.375rem;
}

.edit-hint__text a {
    color: var(--primary, #1A4D78);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.edit-hint__text a:hover {
    color: var(--primary-dark, #0d3a5c);
    text-decoration: underline;
}

/* ============================================
   COUNTDOWN TIMER (für noch nicht gestartete Umfragen)
   ============================================ */
.countdown-section {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary, #1A4D78);
    margin-bottom: 1rem;
}

.countdown-header i {
    font-size: 1.25rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary, #1A4D78);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.countdown-exact {
    font-size: 0.85rem;
    color: var(--gray-600, #4b5563);
    margin: 0;
}

.countdown-exact i {
    margin-right: 0.375rem;
    color: var(--primary, #1A4D78);
}

/* ============================================
   STATUS INFO BOXES (pausiert, abgeschlossen, etc.)
   ============================================ */
.status-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.status-info__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-info__icon i {
    font-size: 1.5rem;
}

.status-info__content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem 0;
}

.status-info__content p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Draft - Grau/Blau */
.status-info--draft {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
}

.status-info--draft .status-info__icon {
    background: #e5e7eb;
}

.status-info--draft .status-info__icon i {
    color: #6b7280;
}

.status-info--draft .status-info__content h3 {
    color: #374151;
}

.status-info--draft .status-info__content p {
    color: #6b7280;
}

/* Pausiert - Orange */
.status-info--paused {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
}

.status-info--paused .status-info__icon {
    background: #ffedd5;
}

.status-info--paused .status-info__icon i {
    color: #ea580c;
}

.status-info--paused .status-info__content h3 {
    color: #c2410c;
}

.status-info--paused .status-info__content p {
    color: #9a3412;
}

/* Abgeschlossen - Grün */
.status-info--completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.status-info--completed .status-info__icon {
    background: #dcfce7;
}

.status-info--completed .status-info__icon i {
    color: #16a34a;
}

.status-info--completed .status-info__content h3 {
    color: #166534;
}

.status-info--completed .status-info__content p {
    color: #15803d;
}

/* Max erreicht - Rot */
.status-info--max {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

.status-info--max .status-info__icon {
    background: #fee2e2;
}

.status-info--max .status-info__icon i {
    color: #dc2626;
}

.status-info--max .status-info__content h3 {
    color: #991b1b;
}

.status-info--max .status-info__content p {
    color: #b91c1c;
}

/* Mobile Anpassungen */
@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.5rem 0.75rem;
        min-width: 50px;
    }
    
    .countdown-value {
        font-size: 1.25rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .status-info {
        flex-direction: column;
        text-align: center;
    }
    
    .status-info__icon {
        margin: 0 auto;
    }
}

/* ============================================
   5. LEGACY SUPPORT (für alte Elemente)
   ============================================ */
.participate-header {
    display: none; /* Nicht mehr benötigt */
}

.welcome-card {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary, #1A4D78) 0%, var(--indigo-500, #6366f1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.welcome-icon i {
    font-size: 2.5rem;
    color: white;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.welcome-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Survey Info */
.survey-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.info-item i {
    color: var(--primary, #1A4D78);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Privacy Notice */
.privacy-notice {
    background: #e8f4f8;
    border: 1px solid #0dcaf0;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 2rem 0;
    text-align: left;
    display: flex;
    gap: 1rem;
}

.privacy-notice i {
    color: #0dcaf0;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.privacy-notice p {
    margin: 0;
    font-size: 0.95rem;
    color: #055160;
    line-height: 1.5;
}

.privacy-notice strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-large {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    min-width: 250px;
    margin-top: 1rem;
}

/* Error States */
.error-card .welcome-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.error-message {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 1.5rem 0;
}

/* Success States */
.success-card .welcome-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.success-icon i {
    color: white;
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
}

.survey-name {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1.5rem;
    color: var(--gray-700);
    text-align: center;
}

.survey-name .survey-company {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Continue Notice (Fortsetzen-Option) */
.continue-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    text-align: left;
}

.continue-notice i {
    color: var(--primary, #1A4D78);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.continue-notice p {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.button-group form {
    display: inline-block;
}

.btn-secondary {
    /* background: white;
    color: var(--primary, #1A4D78);
    border: 2px solid var(--primary, #1A4D78); */
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--primary, #1A4D78);
    color: white;
}

/* Footer im Content-Bereich */
.participate-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500, #6b7280);
    border-top: 1px solid var(--gray-200, #e5e7eb);
}

.participate-footer p {
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
    .participate-visual {
        width: 280px;
    }
    
    .participate-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .participate-page {
        padding: 1rem;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 1rem;
    }
    
    .participate-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
        min-height: auto; /* WICHTIG: auto statt 100vh */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    /* Header-Banner mit Logo - kompakt */
    .participate-visual {
        width: 100%;
        min-height: auto;
        padding: 1.25rem;
    }
    
    .participate-visual .logo-progress-ring {
        margin-bottom: 0;
    }
    
    .participate-visual .logo-progress-ring__icon {
        max-height: 70px;
        width: auto;
    }
    
    .participate-visual__title,
    .participate-visual__subtitle {
        display: none;
    }
    
    /* Hauptinhalt */
    .participate-content {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .participate-content__header {
        margin-bottom: 1.25rem;
    }
    
    .participate-content__title {
        font-size: 1.35rem;
    }
    
    .participate-content__subtitle {
        font-size: 0.9rem;
    }
    
    /* Survey Meta - Vertikal auf Mobile */
    .survey-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .survey-meta__item {
        padding: 0.875rem;
    }
    
    .survey-meta__icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Privacy Badge kompakter */
    .privacy-badge {
        padding: 0.875rem 1rem;
    }
    
    .privacy-badge__icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Cards kompakter */
    .intro-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .intro-card h3 {
        font-size: 0.95rem;
    }
    
    .intro-card p {
        font-size: 0.85rem;
    }
    
    .intro-tips li {
        padding: 0.5rem;
    }
    
    /* Buttons */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
        width: 100%;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .button-group form {
        width: 100%;
    }
    
    /* Footer */
    .participate-footer {
        padding-top: 1.25rem;
        /* margin-top: 1rem; */
        font-size: 0.75rem;
        /* border-top: none; */
    }
}

@media (max-width: 480px) {
    .participate-page {
        padding: 0.5rem;
    }
    
    .participate-container {
        border-radius: 12px;
    }
    
    .participate-visual {
        padding: 1rem;
    }
    
    .participate-visual .logo-progress-ring__icon {
        max-height: 100px;
    }
    
    .participate-content {
        padding: 1.25rem;
    }
    
    .participate-content__title {
        font-size: 1.2rem;
    }
}

/* Error Message Box */
.error-box {
    background: #fee2e2;
    border: 1px solid #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    color: #dc2626;
    text-align: left;
}

.error-box i {
    margin-right: 0.5rem;
}

/* Personal Code Display (Success Page) */
.personal-code-box {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.personal-code-box h3 {
    margin: 0 0 1rem 0;
    color: #166534;
}

.personal-code-box h3 i {
    margin-right: 0.5rem;
}

.personal-code-display {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary, #1A4D78);
    border: 1px solid #22c55e;
}

.personal-code-box .code-warning {
    margin: 1rem 0 0 0;
    font-size: 0.875rem;
    color: #166534;
}

.personal-code-box .code-warning i {
    margin-right: 0.25rem;
}

/* Action Links */
.action-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.action-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary, #1A4D78);
}

/* Info Divider */
.info-divider {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.info-divider p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.info-divider i {
    margin-right: 0.5rem;
}

/* Error Card specific */
.error-card .welcome-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.error-card .error-message {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 1.5rem 0;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .participate-page {
        padding: 1rem 0.7rem;
    }
    
    .welcome-card {
        padding: 2rem 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-description {
        font-size: 1rem;
    }
    
    .btn-large {
        min-width: 100%;
    }
}
