/*
UC Berkeley Yiddish Forum Website Styles
Copyright (c) Isaac L. Bleaman 2025
*/

:root {
    --blue: #003262;
    --orange: #febb10;
    --blue-light: #004080;
    --blue-dark: #002850;
}

body {
    font-family: 'David Libre', serif;
    background-color: #f8f9fa;
    direction: rtl;
}

/* English text uses Crimson Text */
body.ltr {
    direction: ltr;
    font-family: 'Crimson Text', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', sans-serif;
    color: var(--blue);
}

a {
    color: var(--blue-light);
    text-underline-offset: 4px;
}

a:hover {
    color: var(--blue-dark);
}

.hero-section {
    background: linear-gradient(135deg, var(--blue) 0%, #004080 100%);
    color: white;
    padding: 3rem 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    max-height: 145px;
}

.logo-subtitle {
    color: var(--orange);
    font-family: 'Heebo', sans-serif;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.section-header {
    border-bottom: 3px solid var(--orange);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.meeting-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    margin-bottom: 2rem;
}

.meeting-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.meeting-card .card-header {
    background-color: var(--orange);
    color: var(--blue);
    font-weight: bold;
}

.card-body .bi {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.btn-primary {
    background-color: var(--blue);
    border-color: var(--blue);
}

.btn-primary:hover {
    background-color: #002040;
    border-color: #002040;
}

.btn .bi {
    margin-left: 0;
    margin-right: 0.5em;
    display: inline;
}

.footer {
    background-color: var(--blue);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: white;
}

.footer a:hover {
    color: var(--orange);
}

.bi {
    margin-left: 0.5em;
    margin-right: 0;
}

/* Language toggle styles */
.language-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: #002040;
    transform: translateY(-1px);
}

/* RTL/LTR direction classes */
body.rtl {
    direction: rtl;
}

body.ltr {
    direction: ltr;
}

body.ltr .bi {
    margin-left: 0;
    margin-right: 0.5em;
}

/* Hidden content for inactive language */
.content-yi, .content-en {
    display: none;
}

body.rtl .content-yi {
    display: block;
}

body.ltr .content-en {
    display: block;
}