:root {
    --bg-color: #fdfaf6;
    --text-color: #1a202c;
    --primary-color: #1b5b6b; /* Dark teal */
    --primary-hover: #154653;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    
    /* Card colors */
    --color-oraciones: #e5f0f4;
    --color-consuelo: #f8ebe0;
    --color-esperanza: #eef2e6;
    --color-escuchar: #e8e6f4;
    
    --base-font-size: 1.125rem; /* 18px base */
    --font-sans: system-ui, -apple-system, sans-serif;
    --font-serif: "Georgia", "Times New Roman", serif;
}

[data-theme="dark"] {
    --bg-color: #1a202c;
    --text-color: #f7fafc;
    --primary-color: #4fd1c5;
    --primary-hover: #38b2ac;
    --card-bg: #2d3748;
    --card-border: #4a5568;
    
    --color-oraciones: #2a4365;
    --color-consuelo: #7b341e;
    --color-esperanza: #276749;
    --color-escuchar: #44337a;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: var(--base-font-size);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: font-size 0.2s;
}

h1, h2, h3, h4, .site-title {
    font-family: var(--font-serif);
    font-weight: normal;
    color: var(--text-color);
}

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

/* Header */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-title {
    font-size: 1.75rem;
    text-decoration: none;
    font-weight: bold;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

[data-theme="dark"] .btn-outline {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* Hero Section */
.hero {
    text-align: center;
    margin: 3rem 0;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
[data-theme="dark"] .btn-primary {
    color: #1a202c;
}

/* Word of the Day Card */
.wotd-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}
.wotd-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}
.wotd-content {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.wotd-actions {
    display: flex;
    gap: 1rem;
}
.btn-icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.nav-card {
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: transform 0.2s;
}
.nav-card:hover {
    transform: translateY(-2px);
}
.nav-card h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    font-weight: bold;
}
.nav-card p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}
.icon {
    font-size: 1.5rem;
}

/* Colors for specific cards */
.card-oraciones { background-color: var(--color-oraciones); }
.card-consuelo { background-color: var(--color-consuelo); }
.card-esperanza { background-color: var(--color-esperanza); }
.card-escuchar { background-color: var(--color-escuchar); }

/* Footer */
.main-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
}
.main-footer p {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.main-footer strong {
    font-size: 1.25rem;
}

/* Reading View Specifics */
.reading-header {
    margin-bottom: 2rem;
}

.reading-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.passage-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.passage-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}

.translation-info {
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audio-controls-card {
    background-color: var(--color-oraciones);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    text-align: center;
}

[data-theme="dark"] .audio-controls-card {
    background-color: #2a4365;
}

.audio-status {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.audio-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.audio-buttons .btn-primary, .audio-buttons .btn-outline {
    padding: 0.75rem 1.5rem;
}

.audio-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.passage-content {
    font-size: calc(var(--base-font-size) * 1.1); /* Slightly larger for reading */
}

.passage-content p {
    margin-bottom: 1.5rem;
}

.verse-number {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.8em;
}

.verse-text {
    /* For word highlighting later if needed */
    transition: background-color 0.2s;
}
.verse-text.highlight {
    background-color: #ffeb3b;
    color: #000;
}
