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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #CEC075 0%, #B26E63 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #654C4F;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.search-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#searchInput {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #654C4F;
    box-shadow: 0 0 0 3px rgba(101, 76, 79, 0.1);
}

#searchBtn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #654C4F, #B26E63);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#searchBtn:hover {
    transform: translateY(-2px);
}

#searchBtn:active {
    transform: translateY(0);
}

.results-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #654C4F;
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid #feb2b2;
}

.word-entry {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.word-header {
    background: linear-gradient(45deg, #654C4F, #B26E63);
    color: white;
    padding: 2rem;
}

.word-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pronunciation {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.meanings {
    padding: 2rem;
}

.part-of-speech {
    color: #654C4F;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 3px solid #CEC075;
    padding-bottom: 0.5rem;
}

.definition {
    margin: 1rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 5px solid #654C4F;
}

.definition-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.example {
    font-style: italic;
    color: #4a5568;
    margin-top: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #cbd5e0;
}

.synonyms {
    margin-top: 1rem;
}

.synonym-tag {
    display: inline-block;
    background: #654C4F;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.synonym-tag:hover {
    background: #B26E63;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }

    .word-title {
        font-size: 2rem;
    }
}