/* Interaction-specific styles - see main.css for shared components */

.interaction-view {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.interaction-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    max-width: 800px;
}

.word-cloud-container {
    width: 100%;
    max-width: 900px;
    min-height: 400px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 2rem;
}

.word-cloud-item {
    font-weight: 700;
    animation: scaleIn 0.5s ease backwards;
    padding: 0.25rem 0.5rem;
}

.options-grid { display: grid; gap: 1rem; width: 100%; max-width: 600px; }

.option-btn {
    padding: 1.25rem 1.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(99,102,241,0.15);
}

.option-btn.selected {
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.bar-chart { width: 100%; max-width: 700px; }
.bar-item { margin-bottom: 1rem; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.bar-track { height: 36px; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); overflow: hidden; }
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2rem;
}

.scale-display { font-size: 4rem; font-weight: 800; color: var(--primary-color); margin: 1rem 0; }
.scale-slider { width: 100%; height: 8px; -webkit-appearance: none; background: rgba(255,255,255,0.1); border-radius: 4px; }
.scale-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
}

.yesno-buttons { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.yesno-btn {
    width: 160px; height: 160px; border-radius: 50%;
    border: 3px solid var(--glass-border); background: var(--glass-bg);
    font-size: 3rem; cursor: pointer; transition: all var(--transition);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.ranking-list { width: 100%; max-width: 500px; list-style: none; }
.ranking-item {
    padding: 1rem 1.25rem; margin-bottom: 0.5rem; cursor: grab;
    display: flex; align-items: center; gap: 1rem;
}

.raise-hand-btn {
    width: 200px; height: 200px; border-radius: 50%;
    border: 4px solid var(--glass-border); background: var(--glass-bg);
    font-size: 5rem; cursor: pointer; transition: all var(--transition);
}

.raise-hand-btn.active {
    border-color: var(--warning);
    background: rgba(245,158,11,0.2);
    animation: pulse 1.5s ease infinite;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
}

.candidate-card { padding: 1.5rem; text-align: center; cursor: pointer; transition: all var(--transition); }
.candidate-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }

.presentation-view { min-height: 100vh; display: flex; flex-direction: column; padding: 1.25rem 2rem 2rem; }
.presentation-view--present { padding-top: 1rem; }
.presentation-content { flex: 1; display: flex; align-items: center; justify-content: center; }

.presentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.presentation-header--compact {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.presentation-header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.presentation-logo {
    height: 28px;
    width: auto;
    opacity: 0.85;
}

.presentation-event-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(420px, 50vw);
}

.presentation-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.presentation-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.presentation-slide {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 0;
}

.presentation-question {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 1.25rem;
    padding: 0 1rem;
    flex-shrink: 0;
}

.presentation-results {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.word-cloud-stage-wrap {
    flex: 1;
    width: 100%;
    min-height: min(70vh, 640px);
    position: relative;
}

.word-cloud-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: min(70vh, 640px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.06) 0%, transparent 65%);
}

.word-cloud-node {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    white-space: nowrap;
    pointer-events: auto;
    cursor: default;
    user-select: none;
    will-change: transform, font-size, opacity;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: filter 0.2s ease;
}

.word-cloud-node:hover {
    filter: brightness(1.15) drop-shadow(0 0 12px currentColor);
    z-index: 9999 !important;
}

.word-cloud-node--pulse {
    filter: brightness(1.25) drop-shadow(0 0 16px currentColor);
}

.participant-count { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.5s ease infinite; }

.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.type-option { padding: 1rem; text-align: center; cursor: pointer; border: 2px solid transparent; }
.type-option.selected { border-color: var(--primary-color); background: rgba(99,102,241,0.15); }
.type-option-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.waiting-state { text-align: center; padding: 4rem 2rem; }
.waiting-icon { font-size: 4rem; margin-bottom: 1rem; animation: pulse 2s ease infinite; }

.word-input-group { display: flex; gap: 0.5rem; width: 100%; max-width: 500px; }
.word-input-group .form-input { flex: 1; }

.scale-container { width: 100%; max-width: 500px; }
.scale-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }

.quiz-timer { font-size: 2rem; font-weight: 800; color: var(--warning); margin-bottom: 1rem; }
.quiz-timer.urgent { color: var(--danger); animation: pulse 0.5s ease infinite; }

.qa-list { width: 100%; max-width: 700px; text-align: left; margin-top: 2rem; }
.qa-item { padding: 1rem; margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.qa-upvote-btn { background: none; border: none; color: var(--primary-color); font-size: 1.1rem; cursor: pointer; padding: 0.25rem; }
.qa-upvote-btn:disabled { opacity: 0.4; cursor: default; }
.qa-count { font-weight: 700; min-width: 1.5rem; text-align: center; }
.qa-text { flex: 1; }
.qa-author { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

.open-text-list { width: 100%; max-width: 700px; text-align: left; }
.open-text-item { padding: 1rem; margin-bottom: 0.75rem; }
.open-text-item.highlighted { border-left: 3px solid var(--warning); background: rgba(245,158,11,0.1); }

.distribution-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 2rem; padding: 0 1rem; }
.dist-bar { flex: 1; background: linear-gradient(to top, var(--primary-color), var(--secondary-color)); border-radius: 4px 4px 0 0; min-height: 4px; position: relative; }
.dist-bar-label { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: var(--text-muted); }

.yesno-results { display: flex; gap: 2rem; width: 100%; max-width: 500px; margin-top: 2rem; }
.yesno-result { flex: 1; text-align: center; padding: 1.5rem; border-radius: var(--radius-md); }
.yesno-percent { font-size: 3rem; font-weight: 800; }

.hand-queue { width: 100%; max-width: 500px; margin-top: 2rem; text-align: left; }
.hand-item { display: flex; justify-content: space-between; padding: 0.75rem 1rem; margin-bottom: 0.5rem; }

.candidate-photo-placeholder { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1rem; }
.candidate-votes { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); margin-top: 0.5rem; }
.candidate-card.voted { opacity: 0.6; pointer-events: none; }

.ranking-handle { color: var(--text-muted); }
.ranking-position { font-weight: 800; color: var(--primary-color); min-width: 2rem; }
.ranking-item.dragging { opacity: 0.5; }
.ranking-item.drag-over { border-color: var(--primary-color); }

.option-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.yesno-btn:disabled { opacity: 0.5; cursor: not-allowed; }
