:root {
    --lebanese-red: #EE161F;
    --lebanese-green: #00A650;
    --bg-color: #f9f9f9;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #fff;
    border-bottom: 4px solid var(--lebanese-red);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    color: var(--lebanese-red);
}

header .cedar {
    color: var(--lebanese-green);
    font-size: 1.5em;
}

nav {
    margin-top: 10px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

nav a:hover {
    color: var(--lebanese-green);
}

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

.search-container {
    margin-bottom: 2rem;
    text-align: center;
}

#search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: var(--lebanese-green);
}

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    color: var(--lebanese-green);
    border-bottom: 2px solid var(--lebanese-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.word-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.word-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--lebanese-red);
}

.lebanese-word {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--lebanese-red);
}

.english-word {
    color: #666;
    font-style: italic;
}

.about-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--lebanese-green);
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #777;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .word-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .english-word {
        margin-top: 0.25rem;
    }
}
