/* ==================== GRAMMATIK-LEXIKON STYLES ==================== */

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

.lexikon-search {
    margin: 2rem 0;
}

#lexikon-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    transition: all 0.2s;
}

#lexikon-search-input:focus {
    outline: none;
    border-color: #d52b1e;
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.1);
}

.lexikon-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.7rem 1.2rem;
    background: #f5f5f5;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.category-filter:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.category-filter.active {
    background: #d52b1e;
    color: white;
    border-color: #d52b1e;
}

.lexikon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lexikon-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.lexikon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(213, 43, 30, 0.2);
    border-color: #d52b1e;
}

.lexikon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lexikon-card h3 {
    color: #333;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.lexikon-category {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.lexikon-detail {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lexikon-detail-content h2 {
    color: #d52b1e;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.back-btn-lexikon {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

.back-btn-lexikon:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.grammar-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.grammar-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.grammar-table thead {
    background: linear-gradient(135deg, #d52b1e 0%, #a02318 100%);
    color: white;
}

.grammar-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.grammar-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.grammar-table tbody tr:hover {
    background: #f8f9fa;
}

.grammar-table tbody tr:last-child td {
    border-bottom: none;
}

.grammar-explanation {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.grammar-explanation h3 {
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 1rem;
}

.grammar-explanation p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.grammar-examples {
    background: #f5f5f5;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.grammar-examples h3 {
    color: #388e3c;
    margin-top: 0;
    margin-bottom: 1rem;
}

.grammar-examples ul {
    list-style: none;
    padding: 0;
}

.grammar-examples li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.grammar-examples li:last-child {
    border-bottom: none;
}

.grammar-examples strong {
    color: #333;
    font-size: 1.05rem;
}

.am-text {
    display: block;
    color: #666;
    font-size: 1rem;
    margin-top: 0.3rem;
    font-family: 'Noto Sans Ethiopic', 'Nyala', sans-serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lexikon-container {
        padding: 1rem;
    }
    
    .lexikon-grid {
        grid-template-columns: 1fr;
    }
    
    .lexikon-categories {
        flex-direction: column;
    }
    
    .category-filter {
        width: 100%;
    }
    
    .grammar-table {
        font-size: 0.9rem;
    }
    
    .grammar-table th,
    .grammar-table td {
        padding: 0.7rem 0.5rem;
    }
    
    .lexikon-detail-content h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .back-btn-lexikon,
    .lexikon-search,
    .lexikon-categories {
        display: none;
    }
    
    .grammar-table {
        page-break-inside: avoid;
    }
}
