/* Palindrome Checker Specific Styles */

/* Gradient Text for Tool Title */
.gradient-text-palindrome {
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Focus styles for input */
#text-input:focus {
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

/* Buttons hover effects */
.check-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#clear-btn:hover, #examples-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Result animation container */
#result-animation {
    min-height: 80px;
}

/* Result message styling */
.is-palindrome {
    color: #15803d; /* green-700 */
}

.not-palindrome {
    color: #b91c1c; /* red-700 */
}

/* Character comparison styling */
.char-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2.5rem;
    margin: 0 2px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
}

.char-match {
    background-color: rgba(167, 243, 208, 0.5);
    border: 1px solid #10b981;
    color: #047857;
}

.char-mismatch {
    background-color: rgba(254, 202, 202, 0.5);
    border: 1px solid #ef4444;
    color: #b91c1c;
}

/* Animation for character check */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.char-animated {
    animation: fadeIn 0.3s ease forwards;
}

/* Example item hover effect */
.example-item {
    transition: all 0.2s ease;
}

.example-item:hover {
    transform: translateX(3px);
}

/* Success Animation */
@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-animation {
    color: #15803d;
    font-size: 3rem;
    animation: success-pulse 1s ease-in-out;
}

/* Failure Animation */
@keyframes failure-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.failure-animation {
    color: #b91c1c;
    font-size: 3rem;
    animation: failure-shake 0.6s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gradient-text-palindrome {
        font-size: 2rem;
    }
    
    #char-comparison {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .char-box {
        min-width: 1.5rem;
        height: 2rem;
        margin: 2px;
        font-size: 1rem;
    }
    
    .input-container div:last-child {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-container div:last-child button:first-child {
        width: 100%;
    }
    
    .input-container div:last-child div {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .input-container div:last-child div button {
        flex: 1;
    }
} 