/* Wireframe Display Styles for chat.boryssobiegraj.com */

/* Wireframe message bubble */
.wireframe-message .wireframe-bubble {
    max-width: 600px;
    padding: 16px;
}

.wireframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wireframe-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Wireframe image container */
.wireframe-container {
    position: relative;
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wireframe-container:hover {
    transform: scale(1.02);
}

.wireframe-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.coconut-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Wireframe info */
.wireframe-info {
    margin: 12px 0;
}

.wireframe-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.wireframe-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Feedback actions */
.wireframe-actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.btn-feedback {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-feedback:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Rationale */
.wireframe-rationale {
    margin-top: 12px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.wireframe-rationale summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}

.wireframe-rationale p {
    margin: 8px 0 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Coconut Divergence Grid */
.coconut-divergence .coconut-bubble {
    max-width: 900px;
    padding: 20px;
}

.coconut-header {
    margin-bottom: 20px;
}

.coconut-header p {
    margin: 8px 0 0 0;
    color: var(--text-muted);
}

.coconut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.coconut-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    background: white;
    transition: all 0.3s ease;
}

.coconut-option:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.option-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.wireframe-preview {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wireframe-preview:hover {
    transform: scale(1.05);
}

.coconut-prob {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.option-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.coconut-explanation {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.coconut-explanation summary {
    cursor: pointer;
    font-weight: 600;
    color: #f57c00;
}

.coconut-explanation p {
    margin: 12px 0 0 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Wireframe Modal (Zoom View) */
.wireframe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
}

.modal-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.modal-info p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Comment Dialog */
.comment-dialog {
    max-width: 500px;
    width: 90vw;
}

.comment-dialog h3 {
    margin: 0 0 16px 0;
}

.comment-dialog textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
}

.comment-dialog textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .coconut-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 16px;
    }

    .wireframe-actions {
        justify-content: space-between;
    }

    .btn-feedback {
        flex: 1;
        min-width: 0;
    }
}
