/* ===== CSS Variables ===== */
:root {
    --primary-dark: #2F3842;
    --primary-medium: #317197;
    --primary-light: #B54545;
    --background-light: #f5f5f5;
    --background-cream: #fafafa;
    --text-dark: #2F3842;
    --accent-warm: #F7DA90;
    --white: #ffffff;
    --shadow-light: rgba(47, 56, 66, 0.1);
    --shadow-medium: rgba(47, 56, 66, 0.2);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: Calibri, Arial, sans-serif;
    background-color: #317197;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

/* ===== Site Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #2e3842;
    height: 56px;
}

.site-header > h1 {
    font-family: 'Rokkitt', serif;
    font-size: 250%;
    margin: 0;
    line-height: 56px;
    text-align: center;
}

.site-header > h1 > a {
    color: #000;
    text-decoration: none;
}

.site-header > h1 > a > span:first-child {
    color: #fff;
}

.site-header > h1 > a > span:nth-child(2) {
    color: #a6a9ad;
}

/* ===== Container ===== */
.container {
    max-width: 1300px;
    width: 90%;
    min-height: 100vh;
    background-color: #fff;
    -webkit-box-shadow: 2px 10px 29px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 10px 29px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 10px 29px 0px rgba(0, 0, 0, 0.75);
    padding: 20px;
    margin-top: 56px;
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== Typography ===== */
h2 {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 32px;
    text-decoration: none;
    color: #1682b6;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
}

/* General paragraph styling to match parent site */
p {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 1.1rem;
    line-height: 1.6em;
}

.subtitle {
    color: var(--primary-medium);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Hedvig Letters Serif', serif;
}

/* ===== Section Divider ===== */
.section-divider {
    border: none;
    border-top: 2px solid #e0e6ed;
    margin: 25px auto;
    width: 60%;
}

/* ===== Copy Instruction ===== */
.copy-instruction {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin: 20px 0;
    font-style: italic;
    font-family: 'Hedvig Letters Serif', serif;
}

/* ===== Current Day Notice ===== */
.calendar-link-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border: 2px solid var(--primary-medium);
    padding: 18px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px var(--shadow-light);
}

.calendar-link-notice p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Hedvig Letters Serif', serif;
}

.calendar-link-notice a {
    color: var(--primary-medium);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.calendar-link-notice a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

#current-day-notice {
    background-color: #e8f4f8;
    border-left: 4px solid var(--primary-medium);
    padding: 15px;
    margin-bottom: 30px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
}

#current-day-notice p {
    margin: 0;
    font-size: 1rem;
    font-family: 'Hedvig Letters Serif', serif;
}

#current-day-notice a {
    color: var(--primary-medium);
    font-weight: 600;
    text-decoration: none;
}

#current-day-notice a:hover {
    text-decoration: underline;
}

/* ===== Day Grid ===== */
.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.day-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #ecf0f1;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
}

.day-button:hover {
    background: var(--primary-medium);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.day-button.current-day {
    background: #B54545;
    color: white;
}

/* ===== Breadcrumb Navigation ===== */
.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--primary-medium);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== Reading Sections ===== */
.reading-section {
    margin: 30px 0;
}

.psalm-list {
    list-style: none;
    padding: 0;
}

.psalm-list li {
    padding: 12px;
    margin: 8px 0;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-medium);
    border-radius: 4px;
    display: flex;
    gap: 15px;
}

.psalm-number {
    font-weight: 600;
    color: var(--primary-medium);
    min-width: 100px;
    font-family: 'Roboto', sans-serif;
}

.psalm-name {
    color: #555;
    font-style: italic;
    font-family: 'Merriweather', serif;
}

/* ===== Day Navigation ===== */
.day-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.nav-button {
    color: var(--primary-medium);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--primary-medium);
    border-radius: 4px;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.nav-button:hover {
    background: var(--primary-medium);
    color: white;
}

/* ===== Responsive Design ===== */
@media only screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .content-inner {
        padding: 20px 10px;
    }
    
    .site-header > h1 {
        font-size: 200%;
    }
}

@media only screen and (max-width: 600px) {
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .day-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 8px;
    }
    
    .psalm-list li {
        flex-direction: column;
        gap: 5px;
    }
    
    .psalm-number {
        min-width: auto;
    }
    
    .day-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        text-align: center;
    }
}

/* ===== Full Calendar View ===== */
.calendar-view {
    max-width: 1200px;
}

.calendar-grid {
    margin: 30px 0;
}

.calendar-day-card {
    background: #ffffff;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px var(--shadow-light);
}

.calendar-day-card.current-day {
    border: 3px solid #B54545;
    box-shadow: 0 6px 16px rgba(181, 69, 69, 0.3);
}

.calendar-day-card.current-day .calendar-day-header {
    background: linear-gradient(135deg, #B54545 0%, #8b3535 100%);
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-medium) 0%, #2980b9 100%);
    user-select: none;
}

.day-title {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-title:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

.copy-icon {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.day-title:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

.calendar-day-content {
    padding: 20px;
}

.calendar-reading-section {
    margin: 15px 0;
}

.calendar-reading-section h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: #317197;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e6ed;
    text-align: center;
}

.calendar-psalm-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.calendar-psalm-list li {
    padding: 10px 12px;
    margin: 6px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--primary-medium);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.calendar-psalm-list li:hover {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fc 100%);
    border-left-width: 6px;
    transform: translateX(4px);
}

.calendar-reading-section.morning .calendar-psalm-list li {
    border-left-color: #f39c12;
}

.calendar-reading-section.evening .calendar-psalm-list li {
    border-left-color: #8e44ad;
}

.calendar-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #e0e6ed;
    text-align: center;
}

/* ===== Responsive Calendar View ===== */
@media only screen and (max-width: 768px) {
    .calendar-day-header {
        padding: 12px 16px;
    }
    
    .day-title {
        font-size: 1.1rem;
    }
}

@media only screen and (max-width: 480px) {
    .calendar-psalm-list li {
        padding: 8px 10px;
    }
    
    .psalm-number {
        font-size: 0.9rem;
    }
    
    .psalm-name {
        font-size: 0.85rem;
    }
}
    }
}

@media only screen and (max-width: 400px) {
    .site-header > h1 {
        font-size: 150%;
    }
    
    .container {
        padding: 10px;
    }
}
