/* Public Dictionary View Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
    --text-muted: #6c757d;
}

.dictionary-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Dictionary List */
.dictionary-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dictionary-entry {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.dictionary-entry:last-child {
    border-bottom: none;
}

.dictionary-entry:hover {
    background-color: #f8f9fa;
}

.word-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.aetheli-word {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 1rem 0 0;
}

.pronunciation {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9em;
}

.part-of-speech {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.english-translation {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.example, .notes {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.example strong {
    color: var(--text-color);
}

/* Search and Filter */
.search-filter-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.search-box {
    margin-bottom: 1rem;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.25);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--light-bg);
}

.pagination button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .dictionary-entry {
        padding: 1.25rem;
    }
    
    .word-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .aetheli-word {
        font-size: 1.3rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Message Alerts */
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message .close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.message .close-btn:hover {
    opacity: 1;
}
