/* Text Highlighter Specific Styles */

/* Gradient Text for Tool Title */
.gradient-text-highlight {
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Highlight Term Input Styles */
.highlight-term-input {
    transition: all 0.3s ease;
}

.highlight-term-input:hover {
    background-color: #fef3c7;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* Color Picker Styles */
.color-picker {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 0.375rem;
    padding: 0;
}

/* Feature Cards */
.feature-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: #fffbeb;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Highlight Styles */
.highlight-background {
    padding: 0 2px;
    border-radius: 3px;
}

.highlight-underline {
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.highlight-box {
    border-width: 2px;
    border-style: solid;
    border-radius: 3px;
    padding: 0 2px;
}

/* Term Occurrence List Item */
.term-occurrence-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.term-occurrence-item .color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

/* Animations */
@keyframes highlight-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.highlight-animate {
    animation: highlight-fade-in 0.3s ease-out;
}

@keyframes pulse-highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-highlight {
    animation: pulse-highlight 0.5s ease-out;
}

@keyframes sweep-highlight {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.sweep-highlight {
    background-size: 200% 100%;
    animation: sweep-highlight 1s ease-out;
}

/* Stats Updates Animation */
@keyframes number-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #d97706; }
    100% { transform: scale(1); }
}

.number-updated {
    animation: number-update 0.5s ease-out;
}

/* Copy Button Animation */
@keyframes copy-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copy-success 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .gradient-text-highlight {
        font-size: 2rem;
    }
    
    .highlight-term-input {
        flex-wrap: wrap;
    }
    
    .highlight-term-input .flex-grow {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .highlight-term-input .w-10,
    .highlight-term-input button {
        margin-top: 0.5rem;
    }
}

/* Custom Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #f59e0b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #d97706;
    transform: scale(1.1);
}

/* No Results Message */
.no-results {
    padding: 1rem;
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #7f1d1d;
    border-radius: 0.25rem;
}

/* Loading Indicator */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    border-top-color: #f59e0b;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip for additional info */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
} 