/* Interactive Demo CSS Styles */
/* Animation keyframes and styles for the feature editor demo */

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

@keyframes slideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 500px; opacity: 1; }
}

@keyframes slideUp {
    from { max-height: 500px; opacity: 1; }
    to { max-height: 0; opacity: 0; }
}

@keyframes strikeThrough {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes expand {
    from { max-height: 0; opacity: 0; }
    to { max-height: 1000px; opacity: 1; }
}

@keyframes collapse {
    from { max-height: 1000px; opacity: 1; }
    to { max-height: 0; opacity: 0; }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #0066FF;
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

.strike-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: #FF4444;
    transform: translateY(-50%);
    animation: strikeThrough 0.5s forwards;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

.pulse-once {
    animation: pulse 0.5s ease-in-out;
}

.radio-checked {
    background: #0066FF;
    border-color: #0066FF;
}

.radio-checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.section-content.expanded {
    max-height: 1000px;
    opacity: 1;
}

.chevron {
    transition: transform 0.3s;
}

.chevron.rotated {
    transform: rotate(180deg);
}

.editable-field {
    border: 2px solid transparent;
    transition: all 0.3s;
}

.editable-field.editing {
    border-color: #0066FF;
    background: #f0f9ff;
}

/* Simulated Cursor */
#simulated-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.4s ease-out;
    opacity: 0;
}

#simulated-cursor.visible {
    opacity: 1;
}

#simulated-cursor.pointer {
    width: 20px;
    height: 20px;
}

.cursor-pointer-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.cursor-text-icon {
    width: 2px;
    height: 18px;
    background: #000;
}

.delete-btn {
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.delete-btn.show {
    opacity: 1;
}

.delete-btn:hover {
    transform: scale(1.1);
}

/* Feature Editor Fixed Height Layout */
.feature-editor-fixed {
    height: 650px;
    display: flex;
    flex-direction: column;
}

.feature-editor-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* Smooth scrolling for better UX */
.feature-editor-scroll {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.feature-editor-scroll::-webkit-scrollbar {
    width: 8px;
}

.feature-editor-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.feature-editor-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.feature-editor-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.feature-editor-actions {
    flex-shrink: 0;
}

/* Responsive adjustments for feature editor */
@media (max-width: 640px) {
    .feature-editor-fixed {
        height: 550px;
    }
}
