/* Reverse Text Tool Specific Styles */

/* Gradient Text for Tool Title */
.gradient-text-reverse {
    background: linear-gradient(135deg, #059669, #10b981, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Button Animations and Effects */
button {
    position: relative;
    overflow: hidden;
}

button:active {
    transform: translateY(1px);
}

/* Ripple Effect for Buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.5;
}

/* Application Cards */
.application-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Example Items */
.example-item {
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: translateX(5px);
}

.reversal-result {
    position: relative;
    overflow: hidden;
}

.reversal-result::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(13, 148, 136, 0.05));
    pointer-events: none;
}

/* Input and Output Styles */
#input-text, #output-text {
    resize: none;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.3s ease;
}

#input-text:focus {
    border-color: #10b981;
}

#output-text {
    background-color: #f9fafb;
    cursor: default;
}

/* Copy Button and Tooltip */
#copy-tooltip {
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.tooltip-visible {
    opacity: 1 !important;
}

/* Character Count */
#character-count {
    transition: all 0.3s ease;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-animation {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Text Input Animation */
@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(16, 185, 129, 0.1); }
    100% { background-color: transparent; }
}

.highlight-animation {
    animation: highlight 1s ease-out;
}

/* Result Text Animation */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Reverse Animation */
@keyframes reverse-chars {
    0% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}

.reverse-chars-animation {
    animation: reverse-chars 0.5s ease-out;
    transform-origin: center;
}

/* Sample Button Animation */
@keyframes flash {
    0% { background-color: #e5e7eb; }
    50% { background-color: #d1fae5; }
    100% { background-color: #e5e7eb; }
}

.flash-animation {
    animation: flash 1s ease;
}

/* Responsive Design Adjustments */
@media (max-width: 640px) {
    .gradient-text-reverse {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .flex-wrap {
        justify-content: center;
    }
    
    button {
        margin-bottom: 0.5rem;
    }
} 