/* Dictionary Styles */

.dictionary-section {
    max-width: 800px;
    margin: 0 auto;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    border: 3px solid #e0e0e0;
    border-radius: 50px;
    font-size: 18px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.btn-search {
    padding: 18px 35px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

/* Search History */
.search-history {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.history-label {
    color: #888;
    font-size: 14px;
}

.history-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-item {
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item:hover {
    background: #4a90e2;
    color: #fff;
}

/* Result Container */
.result-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    min-height: 300px;
}

.placeholder {
    text-align: center;
    padding: 40px;
}

.placeholder .icon {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
}

.placeholder p {
    color: #888;
    font-size: 18px;
    margin-bottom: 25px;
}

.suggestions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion {
    padding: 8px 18px;
    background: #f0f7ff;
    color: #4a90e2;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion:hover {
    background: #4a90e2;
    color: #fff;
}

/* Word Result */
.word-result {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.word-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.word-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.word-title h2 {
    font-size: 36px;
    color: #333;
    margin: 0;
}

.btn-audio {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #4a90e2;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.btn-audio:hover {
    transform: scale(1.1);
}

.btn-audio.playing {
    animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.phonetic {
    color: #888;
    font-size: 18px;
    font-style: italic;
}

/* Meanings */
.meanings {
    margin-bottom: 25px;
}

.meaning-item {
    margin-bottom: 25px;
}

.part-of-speech {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.definitions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.definition-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #4a90e2;
}

.definition-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.example {
    font-style: italic;
    color: #666;
    padding-left: 15px;
    border-left: 2px solid #ddd;
    margin-top: 10px;
}

/* Synonyms */
.synonyms-section {
    margin-top: 20px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 12px;
}

.synonyms-section h4 {
    margin-bottom: 12px;
    color: #333;
}

.synonym-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.synonym-tag {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.synonym-tag:hover {
    background: #4a90e2;
    color: #fff;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error-message .icon {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}

/* Guide Section */
.guide-section {
    margin-top: 40px;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guide-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guide-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.guide-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input,
    .btn-search {
        border-radius: 12px;
    }
    
    .word-title h2 {
        font-size: 28px;
    }
    
    .result-container {
        padding: 25px;
    }
}




