/* File: C:\Dropbox\Shared Files\Claude.AI Projects\Dictionary of the Hebrew Language\dictionary.barpaleo.org\public\assets\css\modern.css */

@import url('fonts.css');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #2d3748;
    line-height: 1.6;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

header h1 a {
    color: #1a202c;
    text-decoration: none;
}

/* Search */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.625rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    min-width: 250px;
}

.search-form input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-form button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #3182ce;
}

/* Main */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #718096;
    font-size: 1.05rem;
}

/* Stats Bar */
.stats-bar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-bar .count,
.stats-bar h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
}

.view-links a {
    color: #4299e1;
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 500;
}

.view-links a:hover {
    color: #3182ce;
}

/* Cards Grid */
.roots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.root-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem 1.75rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.root-card:hover {
    border-color: #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
    transform: translateY(-2px);
}

.root-card.featured {
    border: 2px solid #f6ad55;
}

/* Hebrew Text */
.root-card .hebrew {
    font-family: 'BaR Paleo', serif;
    font-size: 3.5rem;
    color: #2d3748;
    text-align: center;
    direction: rtl;
    margin-bottom: 1rem;
    line-height: 1;
}

.root-card .transliteration {
    text-align: center;
    font-size: 1.25rem;
    color: #4299e1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.root-card .definition {
    text-align: center;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Detail Page */
.root-detail {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.root-detail .hebrew-large {
    font-family: 'BaR Paleo', serif;
    font-size: 4.5rem;
    color: #2d3748;
    text-align: center;
    direction: rtl;
    margin-bottom: 1rem;
    line-height: 1;
}

.root-detail .transliteration-large {
    font-size: 2rem;
    font-weight: 700;
    color: #4299e1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.root-detail .pronunciation {
    text-align: center;
    color: #718096;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.root-detail section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.root-detail section:last-of-type {
    border-bottom: none;
}

.root-detail h2 {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.root-detail .definition {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d3748;
}

.root-detail p {
    line-height: 1.7;
    color: #4a5568;
}

.back-link {
    text-align: center;
    margin-top: 2.5rem;
}

.back-link a {
    display: inline-block;
    background: #4299e1;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.back-link a:hover {
    background: #3182ce;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        width: 100%;
        flex-direction: column;
    }
    
    .search-form input {
        width: 100%;
        min-width: 0;
    }
    
    .roots-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
}
