* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 25%, #4ECDC4 50%, #95E1D3 75%, #FFD93D 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#searchInput {
    flex: 1;
    padding: 18px 24px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: box-shadow 0.3s;
}

#searchInput:focus {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

#searchBtn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s, box-shadow 0.3s;
}

#searchBtn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6);
}

#searchBtn:active {
    transform: scale(0.95);
}

.loading, .error {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s;
}

.loading {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: 500;
}

.error {
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    font-weight: 500;
}

.result-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95), rgba(78, 205, 196, 0.95));
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s, cardPulse 2s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

.result-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 8px;
}

.pronunciation {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.verb-details {
    display: grid;
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
}

.value {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

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

@media (max-width: 640px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .result-card {
        padding: 24px;
    }

    .result-card h2 {
        font-size: 1.5rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
