@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Playfair+Display:wght@400;700;900&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Enhanced Newspaper Publication Style */
:root {
    /* Light mode (default) */
    --page-bg: #fafafa;
    --paper-white: #ffffff;
    --text-black: #1a1a1a;
    --text-gray: #4a4a4a;
    --light-gray: #6a6a6a;
    --border-gray: #e0e0e0;
    --accent-black: #000000;
    --subtle-shadow: rgba(0, 0, 0, 0.08);
    --medium-shadow: rgba(0, 0, 0, 0.12);
    --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.02'%3E%3Cpolygon fill='%23000' points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
    --newsprint-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Ccircle cx='1' cy='1' r='0.5' fill='%23000' fill-opacity='0.02'/%3E%3Ccircle cx='3' cy='3' r='0.5' fill='%23000' fill-opacity='0.02'/%3E%3C/svg%3E");
}

/* Dark mode */
[data-theme="dark"] {
    --page-bg: #0f0f0f;
    --paper-white: #1a1a1a;
    --text-black: #e8e8e8;
    --text-gray: #b8b8b8;
    --light-gray: #888888;
    --border-gray: #333333;
    --accent-black: #ffffff;
    --subtle-shadow: rgba(0, 0, 0, 0.3);
    --medium-shadow: rgba(0, 0, 0, 0.5);
    --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.03'%3E%3Cpolygon fill='%23fff' points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
    --newsprint-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Ccircle cx='1' cy='1' r='0.5' fill='%23fff' fill-opacity='0.03'/%3E%3Ccircle cx='3' cy='3' r='0.5' fill='%23fff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: var(--page-bg);
    background-image: var(--newsprint-dots);
    color: var(--text-black);
    line-height: 1.6;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Main container - the "newspaper" */
.container {
    max-width: 1000px;
    margin: 20px auto;
    background: var(--paper-white);
    background-image: var(--paper-texture);
    box-shadow: 
        0 0 0 1px var(--border-gray),
        0 20px 60px var(--subtle-shadow),
        0 8px 20px var(--medium-shadow);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

/* Elegant dark mode toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--paper-white);
    color: var(--accent-black);
    border: 2px solid var(--border-gray);
    width: 45px;
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--subtle-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--medium-shadow);
    border-color: var(--accent-black);
}

.theme-icon {
    width: 20px;
    height: 20px;
    stroke: var(--accent-black);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background: var(--paper-white);
    border-color: var(--border-gray);
}

[data-theme="dark"] .theme-icon {
    stroke: var(--accent-black);
}

/* Header/Masthead */
header {
    text-align: center;
    padding: 40px 50px 30px;
    background: var(--paper-white);
    position: relative;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--accent-black);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    line-height: 0.9;
    text-transform: uppercase;
}

h1 a {
    color: var(--accent-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

h1 a:hover {
    color: var(--text-gray);
}

.tagline {
    font-size: 1rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.issue-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* FIXED Navigation */
nav {
    background: var(--paper-white);
    padding: 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    position: relative;
}

.nav-toggle {
    display: none;
    background: var(--paper-white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--accent-black);
    margin-bottom: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
    margin-bottom: 0;
}

/* Hamburger Animation - X Formation */
.nav-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

nav li {
    flex: 1;
    border-right: 1px solid var(--border-gray);
    position: relative;
}

nav li:last-child {
    border-right: none;
}

nav a {
    display: block;
    padding: 18px 20px;
    color: var(--accent-black);
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--paper-white);
    position: relative;
}

nav a:hover {
    background: var(--page-bg);
    color: var(--accent-black);
}

nav a.active,
nav li.active a {
    background: var(--accent-black);
    color: var(--paper-white);
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    min-height: 600px;
    background: var(--paper-white);
}

.single-column-layout {
    background: var(--paper-white);
}

/* Content areas */
.content {
    padding: 40px 50px 40px 50px;
    background: var(--paper-white);
    border-right: 1px solid var(--border-gray);
}

.single-column-layout .content {
    border-right: none;
}

/* Content boxes */
.content-box {
    margin-bottom: 40px;
}

.content-box:last-child {
    margin-bottom: 0;
}

.content-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-black);
    position: relative;
}

.content-box h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
}

.content-area {
    margin-top: 30px;
}

/* Articles */
.blog-post,
.article {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-gray);
}

.blog-post:last-child,
.article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-post h3,
.article h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-black);
    line-height: 1.2;
    margin-bottom: 8px;
}

.blog-post h3 a {
    color: var(--accent-black);
    text-decoration: none;
}

.meta {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.blog-post p,
.article p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-black);
    font-weight: 400;
}

/* Drop caps */
.blog-post p:first-of-type::first-letter,
.article p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    line-height: 0.8;
    margin: 0.05em 0.15em 0 0;
    color: var(--accent-black);
    font-weight: 900;
}

/* Sidebar */
.sidebar {
    background: var(--paper-white);
    padding: 40px 30px;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-gray);
}

.sidebar-box {
    margin-bottom: 40px;
    position: relative;
}

.sidebar-box:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
}

.sidebar-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--accent-black);
    padding-bottom: 8px;
    position: relative;
}

.sidebar-box h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
}

/* Recent Observations */
#recent-observations-entries .log-entry {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dotted var(--border-gray);
}

#recent-observations-entries .log-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.log-timestamp {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 600;
}

.log-entry p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-black);
}

/* Photo gallery */
.photo-section {
    margin: 40px 0 0 0;
    padding: 30px 0 0 0;
    border-top: 2px solid var(--accent-black);
    position: relative;
}

.photo-section::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
}

.photo-gallery,
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.photo-item,
.gallery-item {
    background: var(--paper-white);
    border: 1px solid var(--border-gray);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--subtle-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover,
.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--medium-shadow);
}

.photo-item img,
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 15px;
    background: var(--paper-white);
    border-top: 1px solid var(--border-gray);
}

.photo-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 5px;
}

.photo-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
    font-style: italic;
}

/* Forms */
.guestbook-form {
    background: var(--paper-white);
    padding: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 2px;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    background: var(--paper-white);
    color: var(--text-black);
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-black);
}

/* Buttons */
.site-btn,
.admin-btn,
button[type="submit"] {
    background: var(--accent-black);
    color: var(--paper-white);
    border: none;
    padding: 10px 20px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.site-btn:hover,
.admin-btn:hover,
button[type="submit"]:hover {
    background: var(--text-gray);
}

/* Links */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted var(--border-gray);
}

.links-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.links-list h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 5px;
}

.links-list p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.links-list a {
    color: var(--text-black);
    text-decoration: none;
}

.links-list a:hover {
    color: var(--accent-black);
}

/* Guestbook entries with scroll */
.guestbook-entries {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 10px;
}

.guestbook-entries::-webkit-scrollbar {
    width: 6px;
}

.guestbook-entries::-webkit-scrollbar-track {
    background: var(--page-bg);
    border-radius: 3px;
}

.guestbook-entries::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 3px;
}

.guestbook-entries::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

.guestbook-entry {
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-gray);
    font-size: 0.9rem;
}

.guestbook-entry:last-child {
    border-bottom: none;
}

.guestbook-name {
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 3px;
    font-size: 0.85rem;
}

.guestbook-date {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.75rem;
    color: var(--light-gray);
    margin-top: 5px;
}

/* Coffee button styling - newspaper aesthetic */
.coffee-button {
    display: inline-block;
    background: var(--accent-black);
    color: var(--paper-white);
    padding: 12px 24px;
    border: 2px solid var(--accent-black);
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: none;
}

.coffee-button:hover {
    transform: translateY(-1px);
    background: var(--paper-white);
    color: var(--accent-black);
    box-shadow: 0 4px 12px var(--subtle-shadow);
}

/* Recently Read section */
#recently-read-section .book-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Gallery filter buttons */
.gallery-filter-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
    opacity: 0.8;
}

/* Featured / Highlighted content on homepage */
.featured-highlight {
    background: var(--paper-white);
    border: 2px solid var(--accent-black);
    padding: 30px;
    position: relative;
    margin-top: 25px;
}

.featured-highlight::before {
    content: 'FEATURED';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--accent-black);
    color: var(--paper-white);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 2px 12px;
    text-transform: uppercase;
}

.featured-highlight .featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 8px;
}

.featured-highlight .featured-meta {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.featured-highlight .featured-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-black);
}

.featured-highlight .featured-body img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    border: 1px solid var(--border-gray);
}

/* Video modal styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    background: var(--paper-white);
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--medium-shadow);
    position: relative;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.video-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
    padding: 5px;
}

.video-modal-close:hover {
    color: var(--accent-black);
}

.video-embed {
    width: 800px;
    height: 450px;
    max-width: 100%;
    border: none;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-gray);
    flex-shrink: 0;
    width: 200px;
    height: 112px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .video-play-button {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video comments within video items */
.video-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.video-comments h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-comment-form {
    margin-bottom: 15px;
}

.video-comment-form input,
.video-comment-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.video-comment-form button {
    background: var(--accent-black);
    color: var(--paper-white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.video-comment {
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-gray);
    font-size: 0.9rem;
}

.video-comment:last-child {
    border-bottom: none;
}

.video-comment-author {
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 3px;
    font-size: 0.85rem;
}

.video-comment-date {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.75rem;
    color: var(--light-gray);
    margin-top: 5px;
}

/* Updated book rating styles - remove emoji stars */
.book-rating {
    color: var(--accent-black);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Source Sans Pro', sans-serif;
}

.book-rating .star {
    color: var(--accent-black);
}

/* Comments */
.comments-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.comments-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comment-form {
    margin-bottom: 20px;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px dotted var(--border-gray);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 5px;
}

.comment-date {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: var(--light-gray);
}

/* View all links */
.view-all {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-gray);
}

.view-all a {
    color: var(--text-black);
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.view-all a:hover {
    color: var(--accent-black);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-gray);
    background: var(--paper-white);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: var(--text-gray);
}

footer a {
    color: var(--text-gray);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-black);
}

/* Book and video specific styles */
.book-entry,
.video-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-gray);
}

.book-entry:last-child,
.video-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 8px;
}

.book-genre {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.video-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.video-info {
    flex: 1;
}

.video-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 8px;
}

.video-info h4 a {
    color: var(--accent-black);
    text-decoration: none;
}

/* Modal styles */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--paper-white);
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--medium-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.modal-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent-black);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
    padding: 5px;
}

.modal-close:hover {
    color: var(--accent-black);
}

/* Slide in animation (for notifications) */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 0;
    }
    
    header {
        padding: 30px 25px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .coffee-button {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
    
    .video-embed {
        width: 100%;
        height: 250px;
    }
    
    .guestbook-entries {
        max-height: 200px;
    }
    
    /* FIXED Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper-white);
        box-shadow: 0 4px 12px var(--subtle-shadow);
        z-index: 1000;
        border-top: 1px solid var(--border-gray);
    }
    
    nav ul.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    nav li {
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
        width: 100%;
        flex: none;
    }

    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        padding: 18px 20px;
        text-align: left;
        display: block;
        width: 100%;
    }
    
    nav a:hover {
        background: var(--page-bg);
        padding-left: 30px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 30px 25px;
        border-right: none;
    }
    
    .sidebar {
        border-left: none;
        border-top: 1px solid var(--border-gray);
        padding: 25px;
    }

    .sidebar::before {
        display: none;
    }
    
    .photo-gallery,
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-item {
        flex-direction: column;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* Desktop Navigation (ensure it works properly) */
@media (min-width: 769px) {
    nav ul {
        display: flex !important;
    }
    
    .nav-toggle {
        display: none !important;
    }
    
    nav li {
        flex: 1;
        border-right: 1px solid var(--border-gray);
        border-bottom: none;
    }
    
    nav li:last-child {
        border-right: none;
    }
    
    nav a {
        text-align: center;
        padding: 18px 20px;
    }
}