/* style.css - Celestial Sky Theme */

/* --- Import Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

/* --- Page Body & Background --- */
body {
    font-family: 'Merriweather', 'Georgia', serif; /* Beautiful, readable serif */
    background: linear-gradient(170deg, #e0f7fa 0%, #f1f8e9 60%, #ffffff 100%) fixed; /* Light Cyan to Light Green to White */
    color: #37474f; /* Dark blue-grey */
    line-height: 1.8;
    margin: 0;
    padding: 10px;
    font-size: 16px; /* Base size */
}

/* --- Main Content Container --- */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px 40px;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent */
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 105, 120, 0.1);
    border-top: 5px solid #00acc1; /* Bright Cyan */
    position: relative; /* For the logo */
}

/* --- Book Cover Logo --- */
.site-logo {
    position: absolute;
    top: -35px; /* Sits halfway over the top border */
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 5px; /* Small white border around the icon */
    box-sizing: border-box; /* Ensures padding is included in width/height */
}

/* --- Headers & Dates --- */
h1 {
    font-family: 'Lato', 'Helvetica Neue', sans-serif;
    color: #006064; /* Deep Cyan */
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 40px; /* Make space for the logo */
    margin-bottom: 5px;
}

.dates {
    font-family: 'Lato', sans-serif;
    text-align: center;
    font-style: italic;
    color: #00838f; /* Medium Cyan */
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 0.95em;
    display: flex; /* Aligns calendar icons */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Calendar Controls --- */
.calendar-controls {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.calendar-icon, .today-button {
    cursor: pointer;
    color: #00838f;
    text-decoration: none;
    font-style: normal;
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    margin-left: 8px;
    transition: all 0.2s ease;
}
.calendar-icon svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    fill: #00838f;
}
.today-button {
    font-weight: 700;
    border: 1px solid #b2ebf2;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f4fcff;
}
.calendar-icon:hover, .today-button:hover {
    color: #006064;
    background: #e0f7fa;
}
.calendar-icon:hover svg {
    fill: #006064;
}

/* --- Meditation Text Block (Bold & Centered) --- */
blockquote {
    font-size: 1.25em; /* Larger for focus */
    font-weight: 700;  /* Bold */
    color: #004d40; /* Deep Teal */
    border: none;
    padding: 25px;
    margin: 35px 0;
    background-color: #f0fbfd; /* Very faint blue background */
    border-left: 5px solid #00acc1;
    text-align: center;
    line-height: 1.7;
    border-radius: 8px;
}

blockquote p {
    margin: 0.8em 0;
    text-align: center; /* Explicitly center paragraphs */
}

/* --- Video & YouTube Link --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.youtube-link {
    display: block;
    text-align: center;
    margin-top: -15px; /* Pull it closer to the video */
    margin-bottom: 30px;
    color: #00838f;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9em;
}
.youtube-link:hover {
    text-decoration: underline;
}

/* --- Commentary Text --- */
h2 {
    font-family: 'Lato', sans-serif;
    color: #455a64;
    border-bottom: 1px solid #b2ebf2;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 1.6em;
}

/* Commentary paragraphs: clean, large, and readable */
.container p { /* Specific to commentary paragraphs */
    margin-bottom: 1.5em;
    text-align: justify;
    font-size: 1.1em; /* Larger for easy reading */
    color: #37474f;
}

/* --- Mobile Responsive Design --- */
@media (max-width: 600px) {
    body {
        padding: 5px;
        font-size: 15px; /* Adjust base font size for mobile */
    }
    .container {
        padding: 20px 20px;
        margin-top: 40px; /* More space for the top logo */
    }
    blockquote {
        font-size: 1.1em;
        padding: 20px 15px;
    }
    h1 {
        font-size: 1.5em;
        margin-top: 45px; /* More space for logo on mobile */
    }
    h2 {
        font-size: 1.4em;
    }
    .container p { /* Commentary on mobile */
        font-size: 1.0em;
        text-align: left; /* Justify can be hard on small screens */
    }
    .dates {
        flex-direction: column; /* Stack date and controls */
    }
    .calendar-controls {
        margin-left: 0;
        margin-top: 10px; /* Add space between date and controls */
    }
}

/* --- Pikaday Calendar Theme --- */
.pika-single {
    border: 1px solid #00acc1;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 105, 120, 0.1);
}
.pika-title {
    color: #006064;
    font-family: 'Lato', sans-serif;
}
.pika-table th {
    color: #00838f;
    font-family: 'Lato', sans-serif;
}
.pika-button:hover {
    background: #e0f7fa;
    color: #004d40;
}
.pika-day.is-today .pika-button {
    color: #00acc1;
    font-weight: bold;
}
.pika-day.is-selected .pika-button {
    background: #00acc1;
    box-shadow: none;
    color: #fff;
}