/* Sentence Case Formatter Specific Styles */

/* Gradient Text for Tool Title */
.gradient-text-sentence {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Feature Cards */
.feature-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border-left: 3px solid #4f46e5;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: #f3f4f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Use Case Cards */
.use-case-card {
    padding: 1.25rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border-left: 3px solid #818cf8;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    background-color: #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Highlight for formatted text */
.sentence-highlight {
    position: relative;
    display: inline;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 2px;
    padding: 0 2px;
    transition: background-color 0.3s ease;
}

.sentence-highlight:hover {
    background-color: rgba(79, 70, 229, 0.2);
}

/* First letter style */
.first-letter {
    color: #4f46e5;
    font-weight: 500;
    position: relative;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes highlight-fade-in {
    from { opacity: 0; background-color: rgba(79, 70, 229, 0.3); }
    to { opacity: 1; background-color: rgba(79, 70, 229, 0.1); }
}

.highlight-fade-in {
    animation: highlight-fade-in 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;
}

/* Statistics update animation */
@keyframes number-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #4f46e5; }
    100% { transform: scale(1); }
}

.number-updated {
    animation: number-update 0.5s ease-out;
}

/* Sample animation */
@keyframes sample-loaded {
    0% { opacity: 0.5; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.sample-loaded {
    animation: sample-loaded 0.5s ease-out;
}

/* Loading indicator */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(79, 70, 229, 0.2);
    border-radius: 50%;
    border-top-color: #4f46e5;
    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;
}

/* Before and After comparison */
.comparison-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.comparison-panel {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
}

.comparison-panel.before {
    border-left: 3px solid #ef4444;
}

.comparison-panel.after {
    border-left: 3px solid #10b981;
}

.comparison-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.comparison-title i {
    margin-right: 0.5rem;
}

.before .comparison-title {
    color: #ef4444;
}

.after .comparison-title {
    color: #10b981;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gradient-text-sentence {
        font-size: 2rem;
    }
    
    .feature-card, .use-case-card {
        padding: 1rem;
    }
}

/* Detect changes animation */
@keyframes detected-change {
    0% { background-color: rgba(79, 70, 229, 0); }
    50% { background-color: rgba(79, 70, 229, 0.2); }
    100% { background-color: rgba(79, 70, 229, 0.1); }
}

.detected-change {
    animation: detected-change 1s ease-out;
}

/* Word and sentence counters */
.counter-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #e0e7ff;
    color: #4338ca;
    margin-left: 0.5rem;
}

/* Custom checkbox styles */
input[type="checkbox"] {
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
} 