/* Import a clean font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #9370DB, #6A5ACD);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.wrapper {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #4B0082;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #9370DB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    background: #9370DB;
    color: white;
    border: none;
    padding: 14px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    /* border-radius: 2px; */
}

.search-box button:hover {
    background: #7B68EE;
}

.results {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.result-part-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.result-part-1 .word {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4B0082;
}

.result-part-1 .pronounciation{
    font-size: 0.9rem;
    color: #666;
}

.result-part-1 .adjective{
  font-size: 0.9rem;
  color: #666;
}

.result-part-1 i {
    font-size: 1.2rem;
    color: #9370DB;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

.result-part-1 i:hover {
    transform: scale(1.1);
    color: #7B68EE;
}

.result-part-2, .result-part-3, .result-part-4 {
    background: #f9f7ff;
    padding: 12px;
    border-radius: 10px;
}

.result-part-2 p:first-child,
.result-part-3 p:first-child,
.result-part-4 p:first-child {
    font-weight: bold;
    color: #4B0082;
    margin-bottom: 5px;
}

.Meaning-result,
.Example-result,
.Synonims-result {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
}

.search-placeholder{
    font-size: small;
}

/* Responsive */
@media (max-width: 600px) {
    .wrapper {
        padding: 15px;
    }
    h1 {
        font-size: 1.4rem;
    }
}
