/* Base styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f1e8;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.newspaper-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

/* Header styles */
header {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-container {
    position: relative;
    border-bottom: 2px solid #333;
    padding-bottom: 60px;
}

.header-top {
    margin-bottom: 30px;
}

.tagline, .location {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

.site-title {
    font-size: 4em;
    font-weight: bold;
    margin: 10px 0;
    text-transform: uppercase;
}

.logo-container {
    position: absolute;
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 0 10px;
    z-index: 2;
}

.logo, .logo-xray {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.logo-xray {
    position: absolute;
    top: 2px;
    left: 8px;
    opacity: 0;
    transition: opacity 0.1s ease;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5) contrast(2);
}

/* Navigation styles */
.nav-container {
    position: relative;
    text-align: center;
    padding: 20px 0 10px;
    border-bottom: 2px solid #333;
    margin-top: -2px;
}

nav {
    display: inline-block;
    position: relative;
    background-color: #fff;
    padding: 0 20px;
}

nav a {
    margin: 0 15px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    color: #e67e22;
}

/* Main content styles */
main {
    padding: 20px 0;
}

/* Post grid and newspaper styles */
.post-grid,
.newspaper-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.post-card,
.newspaper-article {
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.post-card::before,
.newspaper-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #f9b96e, #1a1501);
}

.post-card:hover,
.newspaper-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-card h2,
.article-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.post-card h2 a,
.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h2 a:hover,
.article-title a:hover {
    color: #f9b96e;
}

.post-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

.post-excerpt,
.article-excerpt {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    flex-grow: 1;
}

.read-more,
.category-tag {
    display: inline-block;
    font-style: italic;
    color: #1a1501;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
    font-weight: bold;
}

.read-more:hover,
.category-tag:hover {
    color: #f9b96e;
    text-decoration: underline;
}

/* WaniKani stats styles */
.wanikani-stats {
    margin: 2em auto;
    padding: 1.5em;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    max-width: 800px;
}

.wanikani-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #f9b96e, #1a1501);
}

.wanikani-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.wanikani-stats h2 {
    margin-bottom: 1em;
    color: #333;
    font-size: 1.8em;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}

.chart-container {
    margin-top: 2em;
    padding: 1em;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#levelProgressionChart,
#categoryDistributionChart {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Table styles */
.table-container {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.table-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #f9b96e, #1a1501);
}

.table-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.accuracy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

.accuracy-table thead {
    background-color: #1a1501;
    color: #ffffff;
}

.accuracy-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
}

.accuracy-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.accuracy-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.accuracy-table td {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

.accuracy-table tbody tr:hover {
    background-color: #fff5e6;
}

.accuracy-table tfoot {
    background-color: #1a1501;
    color: #ffffff;
    font-weight: bold;
}

.accuracy-table tfoot td {
    padding: 15px;
    border-top: 1px solid #eee;
}

/* Footer styles */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    margin-right: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links i {
    margin-right: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .newspaper-container {
        padding: 10px;
    }

    .site-title {
        font-size: 2.5em;
    }

    .post-grid,
    .newspaper-columns {
        grid-template-columns: 1fr;
    }

    .category-title,
    .home-title {
        font-size: 2.5em;
    }

    nav {
        padding: 0 10px;
    }

    nav a {
        margin: 0 5px;
        font-size: 0.9em;
    }

    .logo-container {
        bottom: -40px;
    }

    .logo, .logo-xray {
        width: 80px;
        height: 80px;
    }

    .header-container {
        padding-bottom: 50px;
    }

    .nav-container {
        padding-top: 15px;
    }

    .wanikani-stats {
        padding: 1em;
        margin: 1em auto;
    }

    .wanikani-stats h2 {
        font-size: 1.5em;
    }

    .chart-container {
        padding: 0.5em;
    }

    .table-container {
        padding: 10px;
    }

    .accuracy-table th,
    .accuracy-table td {
        padding: 10px;
    }
}

pre {
    background: #fffdfa;
    border: 2px solid #e0cfa0;
    border-left: 8px solid #f9b96e;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(80, 60, 10, 0.07), 0 0 0 4px #f9b96e33;
    color: #2d2d2d;
    font-family: 'Fira Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.7;
    margin: 2em 0;
    padding: 1.5em 2em 1.5em 2.5em;
    position: relative;
    overflow-x: auto;
    transition: box-shadow 0.2s;
    word-break: break-word;
}

pre::before {
    content: "CODE";
    position: absolute;
    top: -2px;
    left: 0;
    background: linear-gradient(90deg, #f9b96e 60%, #fffdfa 100%);
    color: #1a1501;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.15em;
    padding: 0.25em 1em 0.25em 1.5em;
    border-radius: 10px 0 10px 0;
    border-bottom: 2px solid #e0cfa0;
    border-right: 2px solid #e0cfa0;
    box-shadow: 2px 2px 0 #f9b96e44;
    z-index: 2;
    pointer-events: none;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
}

code {
    font-family: 'Fira Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.97em;
    padding: 0.18em 0.45em;
    background: #fff7e0;
    color: #1a1501;
    border-radius: 5px;
    border: 1px solid #f9b96e55;
    box-shadow: 0 1px 2px #f9b96e22;
    margin: 0 2px;
    word-break: break-word;
}

/* Main code block container */
pre {
    background: #fffdfa;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 24px 0 rgba(80,60,10,0.10), 0 0 0 4px #f9b96e33;
    color: #2d2d2d;
    font-family: 'Fira Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.7;
    margin: 2.5em 0;
    padding: 1.7em 2.2em 1.7em 2.7em;
    position: relative;
    overflow-x: auto;
    transition: box-shadow 0.2s;
    word-break: break-word;
    outline: 1.5px solid #e0cfa0;
    outline-offset: -2px;
}

/* Subtle torn-paper effect at top and bottom */
pre::before, pre::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; right: 0;
    height: 12px;
    background: repeating-linear-gradient(
        -45deg,
        #f9b96e 0px, #f9b96e 6px,
        #fffdfa 6px, #fffdfa 12px
    );
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}
pre::before {
    top: -12px;
    border-radius: 12px 12px 0 0;
}
pre::after {
    bottom: -12px;
    border-radius: 0 0 12px 12px;
}

/* Newspaper "label" */
pre[data-language]::after,
pre:not([data-language])::after {
    content: attr(data-language);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #f9b96e 60%, #fffdfa 100%);
    color: #1a1501;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.15em;
    padding: 0.18em 1em 0.18em 1.2em;
    border-radius: 10px 0 10px 0;
    border-bottom: 2px solid #e0cfa0;
    border-right: 2px solid #e0cfa0;
    box-shadow: 2px 2px 0 #f9b96e44;
    z-index: 2;
    pointer-events: none;
}
pre:not([data-language])::after {
    content: "CODE";
}

/* Remove line-by-line borders from syntax highlighting plugins */
pre .highlight, pre code .highlight {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Code inside pre */
pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
    display: block;
    white-space: pre;
}

/* Inline code */
code {
    font-family: 'Fira Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.97em;
    padding: 0.18em 0.45em;
    background: #fff7e0;
    color: #1a1501;
    border-radius: 5px;
    border: 1px solid #f9b96e55;
    box-shadow: 0 1px 2px #f9b96e22;
    margin: 0 2px;
    word-break: break-word;
}

/* Inline code in headings or links */
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code, a code {
    font-size: 0.95em;
    padding: 0.12em 0.35em;
}

/* Responsive code block */
@media (max-width: 768px) {
    pre {
        font-size: 13px;
        padding: 1.1em 0.7em 1.1em 1.2em;
    }
    pre::before, pre::after {
        height: 8px;
    }
    pre[data-language]::after,
    pre:not([data-language])::after {
        font-size: 0.8em;
        padding: 0.12em 0.7em 0.12em 1em;
    }
}


/* --- Syntax Highlighting (Light) --- */
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt { color: #b85c00; font-weight: bold; }
.highlight .n { color: #2d2d2d; }
.highlight .o { color: #a67c52; }
.highlight .p { color: #2d2d2d; }
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs { color: #7a7a7a; font-style: italic; }
.highlight .cp { color: #b85c00; }
.highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .s1 { color: #4070a0; }
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .mo { color: #40a070; }
.highlight .na { color: #4070a0; }
.highlight .nb { color: #b85c00; }
.highlight .nc { color: #1a1501; font-weight: bold; }
.highlight .no { color: #f9b96e; }
.highlight .nd { color: #555555; font-weight: bold; }
.highlight .ni { color: #d55537; font-weight: bold; }
.highlight .ne { color: #b85c00; }
.highlight .nf { color: #06287e; }
.highlight .nl { color: #002070; font-weight: bold; }
.highlight .nn { color: #1a1501; font-weight: bold; }
.highlight .nt { color: #b85c00; font-weight: bold; }
.highlight .nv { color: #bb60d5; }
.highlight .ow { color: #b85c00; font-weight: bold; }
.highlight .w { color: #bbbbbb; }
.highlight .gl { background-color: transparent; padding: 0; }

/* Odds cards styling */
.odds-stats {
    margin-top: 30px;
}

#oddsChart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.game-scoreboard {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 15px;
}

.game-scoreboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #f9b96e, #1a1501);
}

.game-scoreboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.hold-info {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.hold-percentage {
    font-size: 1.1em;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.team-name {
    font-weight: bold;
    flex: 1;
}

.team-odds {
    font-weight: bold;
    color: #1a1501;
    margin: 0 10px;
}

.team-bookmaker {
    font-size: 0.9em;
    color: #666;
}

.game-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.game-info div {
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    #oddsChart {
        grid-template-columns: 1fr;
    }

    .team-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-odds, .team-bookmaker {
        margin-top: 5px;
    }
}

/* Dark mode toggle button styles */
#darkModeToggle {
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

#darkModeToggle:hover {
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#darkModeToggle svg {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s, transform 0.3s;
  color: #333; /* Dark color for light mode */
}

#darkModeToggle .moon-icon {
  opacity: 1;
  transform: scale(1);
}

#darkModeToggle .sun-icon {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

.dark-mode .newspaper-container {
  background-color: #2a2a2a;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.dark-mode .site-title,
.dark-mode .header-container,
.dark-mode .nav-container {
  border-color: #444;
}

.dark-mode .logo-container {
  background-color: #2a2a2a; /* Dark background for logo container */
}

.dark-mode .nav-container {
  background-color: #2a2a2a; /* Dark background for navigation container */
}

.dark-mode .logo {
  border-color: #e0e0e0;
}

.dark-mode nav a {
  color: #e0e0e0;
}

.dark-mode .post-card,
.dark-mode .newspaper-article,
.dark-mode .game-scoreboard {
  background-color: #2a2a2a;
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.dark-mode .post-card h2 a,
.dark-mode .article-title a,
.dark-mode .team-name {
  color: #e0e0e0;
}

.dark-mode .post-meta,
.dark-mode .game-info {
  color: #aaa;
}

.dark-mode .read-more,
.dark-mode .category-tag {
  color: #f9b96e;
}

.dark-mode .team-row {
  background-color: #333;
}

.dark-mode .team-odds {
  color: #f9b96e;
}

.dark-mode #darkModeToggle {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode #darkModeToggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.dark-mode #darkModeToggle svg {
  color: #e0e0e0; /* Light color for dark mode */
}

.dark-mode #darkModeToggle .moon-icon {
  opacity: 0;
  transform: scale(0.8);
}

.dark-mode #darkModeToggle .sun-icon {
  opacity: 1;
  transform: scale(1);
}

/* Dark mode styles for navigation */
.dark-mode .nav-container {
    background-color: #2a2a2a;
    border-color: #444;
}

.dark-mode nav {
    background-color: #2a2a2a;
}

.dark-mode nav a {
    color: #e0e0e0;
}

.dark-mode nav a:hover {
    color: #f9b96e;
}

.dark-mode nav a.active {
    color: #f9b96e;
}

/* Dark mode styles for WaniKani stats */
.dark-mode .wanikani-stats {
    background-color: #2a2a2a;
}

.dark-mode .wanikani-stats h2 {
    color: #e0e0e0;
}

.dark-mode .chart-container {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(255,255,255,0.05);
}

/* Dark mode styles for accuracy table */
.dark-mode .table-container {
    background-color: #2a2a2a;
}

.dark-mode .accuracy-table {
    background-color: #2a2a2a;
}

.dark-mode .accuracy-table thead {
    background-color: #1a1501;
}

.dark-mode .accuracy-table tbody tr:nth-child(even) {
    background-color: #333;
}

.dark-mode .accuracy-table tbody tr:nth-child(odd) {
    background-color: #2a2a2a;
}

.dark-mode .accuracy-table td {
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .accuracy-table tbody tr:hover {
    background-color: #444;
}

/* --- Dark mode code block styles --- */
body.dark-mode pre {
    background: #23201a;
    color: #f9eac7;
    outline: 1.5px solid #f9b96e;
    box-shadow: 0 4px 24px 0 rgba(249,185,110,0.13), 0 0 0 4px #f9b96e33;
}
body.dark-mode pre::before, body.dark-mode pre::after {
    background: repeating-linear-gradient(
        -45deg,
        #f9b96e 0px, #f9b96e 6px,
        #23201a 6px, #23201a 12px
    );
    opacity: 0.13;
}
body.dark-mode pre[data-language]::after,
body.dark-mode pre:not([data-language])::after {
    background: linear-gradient(90deg, #f9b96e 60%, #23201a 100%);
    color: #23201a;
    border-bottom: 2px solid #f9b96e;
    border-right: 2px solid #f9b96e;
    box-shadow: 2px 2px 0 #f9b96e88;
}

/* --- Syntax Highlighting (Dark) --- */
body.dark-mode .highlight .k, body.dark-mode .highlight .kd, body.dark-mode .highlight .kn, body.dark-mode .highlight .kp, body.dark-mode .highlight .kr, body.dark-mode .highlight .kt { color: #f9b96e; font-weight: bold; }
body.dark-mode .highlight .n { color: #f9eac7; }
body.dark-mode .highlight .o { color: #f9b96e; }
body.dark-mode .highlight .p { color: #f9eac7; }
body.dark-mode .highlight .c, body.dark-mode .highlight .cm, body.dark-mode .highlight .c1, body.dark-mode .highlight .cs { color: #bfae8e; font-style: italic; }
body.dark-mode .highlight .cp { color: #f9b96e; }
body.dark-mode .highlight .s, body.dark-mode .highlight .sb, body.dark-mode .highlight .sc, body.dark-mode .highlight .sd, body.dark-mode .highlight .s2, body.dark-mode .highlight .se, body.dark-mode .highlight .sh, body.dark-mode .highlight .si, body.dark-mode .highlight .sx, body.dark-mode .highlight .s1 { color: #f9eac7; }
body.dark-mode .highlight .m, body.dark-mode .highlight .mf, body.dark-mode .highlight .mh, body.dark-mode .highlight .mi, body.dark-mode .highlight .mo { color: #f9b96e; }
body.dark-mode .highlight .na { color: #f9b96e; }
body.dark-mode .highlight .nb { color: #f9eac7; }
body.dark-mode .highlight .nc { color: #f9b96e; font-weight: bold; }
body.dark-mode .highlight .no { color: #f9b96e; }
body.dark-mode .highlight .nd { color: #f9eac7; font-weight: bold; }
body.dark-mode .highlight .ni { color: #f9eac7; font-weight: bold; }
body.dark-mode .highlight .ne { color: #f9b96e; }
body.dark-mode .highlight .nf { color: #f9eac7; }
body.dark-mode .highlight .nl { color: #f9eac7; font-weight: bold; }
body.dark-mode .highlight .nn { color: #f9eac7; font-weight: bold; }
body.dark-mode .highlight .nt { color: #f9b96e; font-weight: bold; }
body.dark-mode .highlight .nv { color: #f9eac7; }
body.dark-mode .highlight .ow { color: #f9b96e; font-weight: bold; }
body.dark-mode .highlight .w { color: #bfae8e; }
body.dark-mode .highlight .gl { background-color: transparent; padding: 0; }

/* Additional dark mode styles for other elements */
.dark-mode .tagline, .dark-mode .location {
    color: #aaa;
}

.dark-mode .logo {
    border-color: #e0e0e0;
}

.dark-mode .post-meta {
    color: #aaa;
}

.dark-mode .read-more,
.dark-mode .category-tag {
    color: #f9b96e;
}

.dark-mode .footer-links a {
    color: #e0e0e0;
}

.odds-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color, #4a4a4a);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.odds-link:hover {
    background: var(--accent-color-hover, #666);
}

.odds-link i {
    font-size: 1.2em;
}

.dark-mode .odds-link {
    background: #f9b96e; /* Using your existing accent color */
    color: #1a1501; /* Dark text for contrast */
}

.dark-mode .odds-link:hover {
    background: #ffa500; /* Slightly lighter on hover */
}

.dark-mode .odds-link i {
    color: #1a1501;
}

/* Light mode styles */
/* Dates listing page */
.dates-container {
    margin: 2rem 0;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.date-card {
    background: var(--bg-secondary, #f5f5f5);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.date-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--accent-color, #f9b96e);
}

.date-card a {
    color: var(--text-primary, #333);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

/* Odds display page */
.odds-container {
    margin-top: 2rem;
}

.game-card {
    background: var(--bg-secondary, #f5f5f5);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.game-header h3 {
    margin: 0;
    color: var(--text-primary, #333);
}

.game-time {
    color: var(--text-secondary, #666);
    font-size: 0.9em;
    margin-top: 0.5rem;
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.odds-section {
    background: var(--bg-primary, #fff);
    padding: 1rem;
    border-radius: 4px;
}

.odds-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #333);
}

.prediction-section {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

/* Navigation */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary, #333);
    text-decoration: none;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: var(--accent-color, #f9b96e);
}

/* Error messages */
.error-message {
    color: #dc3545;
    text-align: center;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    margin: 1rem 0;
}

/* Dark mode styles */
.dark-mode .date-card {
    background-color: #2a2a2a;
    border-color: #444;
}

.dark-mode .date-card a {
    color: #e0e0e0;
}

.dark-mode .date-card:hover {
    border-color: #f9b96e;
    box-shadow: 0 4px 8px rgba(255,255,255,0.1);
}

.dark-mode .game-card {
    background-color: #2a2a2a;
    border-color: #444;
}

.dark-mode .game-header {
    border-color: #444;
}

.dark-mode .game-header h3 {
    color: #e0e0e0;
}

.dark-mode .game-time {
    color: #aaa;
}

.dark-mode .odds-section {
    background-color: #333;
    color: #e0e0e0;
}

.dark-mode .odds-section h4 {
    color: #e0e0e0;
}

.dark-mode .back-link {
    color: #e0e0e0;
}

.dark-mode .back-link:hover {
    color: #f9b96e;
}

.dark-mode .error-message {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

/* Newsletter content layout */
.newsletter-content {
    display: flex;
    gap: 2em;
    margin: 2em 0;
}

.article-excerpt {
    flex: 1;
    min-width: 300px;
    padding: 1.5em;
    background: white;
    border-radius: 12px;
    position: relative;
    box-sizing: border-box;
}

/* Creates gradient border effect */
.article-excerpt::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9b96e, #2d2d2d);
    z-index: -1;
}

.excerpt-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1.5em;
}

.excerpt-header i {
    font-size: 1.8em;
    color: #f9b96e;
}

.excerpt-header h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    color: #2d2d2d;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
    margin-bottom: 1.5em;
}

.benefit-item {
    padding: 1em;
    background: #fff;
    border: 1px solid rgba(249, 185, 110, 0.3);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
}

.benefit-item i {
    font-size: 1.2em;
    color: #f9b96e;
    margin-bottom: 0.5em;
}

.benefit-item h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0.5em 0;
    color: #2d2d2d;
}

.benefit-item p {
    font-size: 0.95em;
    margin: 0;
    color: #2d2d2d;
    line-height: 1.4;
}

.join-prompt {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em;
    background: linear-gradient(135deg, #f9b96e, #2d2d2d);
    color: white;
    border-radius: 8px;
    margin-top: 1.5em;
}

.join-prompt p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
}

.join-prompt i {
    font-size: 1.5em;
}

.signup-section {
    flex: 1;
    min-width: 300px;
}

.signup-section iframe {
    width: 100%;
    min-height: 500px;
    border: none;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        gap: 1.5em;
    }
    
    .article-excerpt, .signup-section {
        width: 100%;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .signup-section iframe {
        min-height: 550px;
    }
}

/* Dark mode styles for the info and excerpt */
.dark-mode .article-excerpt {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #444;
}

/* Dark mode gradient border for article-excerpt */
.dark-mode .article-excerpt::before {
    background: linear-gradient(135deg, #f9b96e, #444);
}

/* Dark mode styles for excerpt header */
.dark-mode .excerpt-header h3 {
    color: #f9b96e;
}

/* Dark mode for benefits list items */
.dark-mode .benefit-item {
    background: #444;
    border: 1px solid rgba(249, 185, 110, 0.2);
}

.dark-mode .benefit-item i {
    color: #f9b96e;
}

.dark-mode .benefit-item h4, 
.dark-mode .benefit-item p {
    color: #e0e0e0;
}

/* Dark mode join prompt */
.dark-mode .join-prompt {
    background: linear-gradient(135deg, #f9b96e, #444);
    color: #e0e0e0;
}

.dark-mode .join-prompt i {
    color: #f9b96e;
}

/* Dark mode styles for signup section */
.dark-mode .signup-section iframe {
    border: 1px solid #444;
}

/* Small screen optimization */
@media screen and (max-width: 480px) {
    .article-excerpt {
        padding: 1em;
    }
    
    .excerpt-header {
        gap: 0.5em;
    }
    
    .excerpt-header h3 {
        font-size: 1.3em;
    }
    
    .join-prompt {
        flex-direction: column;
        text-align: center;
    }
    
    .signup-section iframe {
        min-height: 600px;
    }
}

.heatmap-container {
    display: grid;
    gap: 3px;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Header row for months */
.heatmap-header {
    display: grid;
    grid-template-columns: 30px repeat(53, 10px);
    gap: 3px;
    margin-bottom: 6px;
    align-items: end;
    position: relative;
}

.heatmap-header-cell {
    font-size: 12px;
    color: #57606a;
    text-align: left;
    padding: 0;
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    position: relative;
}

/* Rows for days of week */
.heatmap-row {
    display: grid;
    grid-template-columns: 30px repeat(53, 10px);
    gap: 3px;
    margin-bottom: 3px;
    height: 10px;
}

/* Row header (weekday name) */
.heatmap-row-header {
    font-size: 12px;
    color: #57606a;
    text-align: left;
    padding: 0;
    font-weight: normal;
}

/* Individual cells (days) */
.heatmap-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    transition: background-color 0.1s ease-in-out;
}

.heatmap-cell.level-1 {
    background-color: #e74c3c;  /* Bright red */
}
.heatmap-cell.level-2 {
    background-color: #e67e22;  /* Orange-red */
}
.heatmap-cell.level-3 {
    background-color: #f39c12;  /* Orange */
}
.heatmap-cell.level-4 {
    background-color: #f1c40f;  /* Yellow */
}
.heatmap-cell.level-5 {
    background-color: #c1e11c;  /* Yellow-green */
}
.heatmap-cell.level-6 {
    background-color: #7cb342;  /* Light green */
}
.heatmap-cell.level-7 {
    background-color: #388e3c;  /* Dark green */
}

/* Hover effect */
.heatmap-cell:hover {
    border: 1px solid rgba(27, 31, 35, 0.06);
    cursor: pointer;
}

/* Container title styling */
.activity-heatmap h2 {
    font-size: 16px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 8px;
}

.image-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap; 
  }
  
  .image-grid img {
    max-width: calc(50% - 16px);
    height: auto;
    flex: 1 1 250px;
  }
  
  @media (max-width: 768px) {
    .image-grid {
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .image-grid img {
      max-width: 100%;
    }
  }

/* Updated Odds Display Styles */
.odds-section {
    background: var(--bg-primary, #fff);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.odds-section h4 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary, #333);
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color, #ddd);
    padding-bottom: 0.5rem;
}

.odds-section h5 {
    margin: 0 0 1rem 0;
    color: var(--text-primary, #333);
    font-size: 1.1rem;
    font-weight: 600;
}

.odds-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.odds-subsection {
    padding: 1rem;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 6px;
}

.odds-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.5rem;
    font-size: 1rem;
}

.prediction-row {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0.25rem;
    font-size: 1rem;
}

.team-name {
    font-weight: 500;
    min-width: 100px;
    color: var(--text-primary, #333);
}

.odds-value, .prediction-value {
    font-weight: 600;
    color: var(--text-primary, #333);
}

.bookmaker {
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
}

.model-name {
    font-weight: 500;
    color: var(--text-primary, #333);
}

.team-predictions {
    margin-bottom: 1rem;
}

.team-predictions .team-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #333);
}

.no-predictions {
    color: var(--text-secondary, #666);
    font-style: italic;
    padding: 0.5rem 0;
}

/* Dark mode updates */
.dark-mode .odds-section {
    background-color: #2a2a2a;
}

.dark-mode .odds-subsection {
    background-color: #333;
}

.dark-mode .odds-section h4,
.dark-mode .odds-section h5 {
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode .team-name,
.dark-mode .model-name {
    color: #e0e0e0;
}

.dark-mode .odds-value,
.dark-mode .prediction-value {
    color: #e0e0e0;
}

.dark-mode .bookmaker {
    color: #aaa;
}

.dark-mode .no-predictions {
    color: #aaa;
}

/* Responsive adjustments for odds sections */
@media (max-width: 768px) {
    .odds-section {
        padding: 1rem;
    }

    .odds-subsection {
        padding: 0.75rem;
    }

    .team-name, .model-name {
        min-width: 80px;
        font-size: 0.9rem;
    }

    .odds-row {
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .bookmaker {
        width: 100%;
        margin-left: 80px;
    }
}

@media (max-width: 480px) {
    .odds-grid {
        grid-template-columns: 1fr;
    }

    .odds-section {
        padding: 0.75rem;
    }

    .odds-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .odds-section h5 {
        font-size: 1rem;
    }
}

/* About Page and Resume Styles */
.page-content {
    font-family: 'Times New Roman', Times, serif;
    padding: 40px;
    background-color: #fff;
}

.dark-mode .page-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

blockquote {
    font-style: italic;
    border-left: 3px solid #333;
    padding-left: 20px;
    margin: 20px 0;
    color: #555;
}

.dark-mode blockquote {
    border-left-color: #f9b96e;
    color: #aaa;
}

.author-image {
    float: right;
    margin: 0 0 20px 30px;
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dark-mode .author-image {
    border-color: #e0e0e0;
    background: #333;
    box-shadow: 3px 3px 0 #555;
}

@media (min-width: 768px) {
    .page-content {
        column-count: 2;
        column-gap: 40px;
    }
}

/* Resume Specific Styling */
.resume-divider {
    margin: 40px 0;
    border: 0;
    height: 1px;
    background-color: #333;
}

.dark-mode .resume-divider {
    background-color: #f9b96e;
}

.resume-container {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    margin: 0 auto;
    padding: 20px 0;
}

.dark-mode .resume-container {
    color: #e0e0e0;
}

.resume-header h1 {
    font-size: 1.5em;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.dark-mode .resume-header h1 {
    border-bottom-color: #f9b96e;
}

.resume-section h2 {
    font-size: 1.2em;
    margin-top: 20px;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.dark-mode .resume-section h2 {
    border-bottom-color: #f9b96e;
}

.resume-section {
    margin-bottom: 20px;
}

.contact-info p {
    margin: 0;
}

.dark-mode .contact-info p {
    color: #e0e0e0;
}

.job-title, .degree {
    font-weight: bold;
}

.job-date, .edu-date {
    float: right;
}

.resume-link {
    color: blue;
    text-decoration: underline;
}

.dark-mode .resume-link {
    color: #f9b96e;
}

.resume-download-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.resume-download-button:hover {
    background-color: #555;
}

.dark-mode .resume-download-button {
    background-color: #f9b96e;
    color: #1a1501;
}

.dark-mode .resume-download-button:hover {
    background-color: #ffa500;
}

@media print {
    .resume-link {
        color: black;
        text-decoration: none;
    }
    
    .dark-mode .resume-link {
        color: black;
    }
}

@media (min-width: 768px) {
    .resume-container {
        column-span: all;
    }
}


/* App-like section styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

.app-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.app-content h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

.app-content p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.dark-mode .app-content h3 {
    color: #e0e0e0;
}

.dark-mode .app-content p {
    color: #aaa;
}

/* Resume specific styles - consolidated from inline styles */
.resume-container {
    max-width: 8.5in;
    margin: 0 auto;
    padding: 0 30px;
    background-color: #fff;
    font-family: 'Roboto','Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    font-size: 10pt;
}
.resume-header {
    margin-bottom: 12px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 12px;
    text-align: center;
}
.resume-header h1 {
    font-size: 18pt;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.contact-info {
    font-size: 9pt;
    color: #555;
    line-height: 1.5;
}
.contact-info p {
    margin: 0;
}
.degree, .job-title {
    font-weight: 600;
    color: #333;
    font-size: 10pt;
}
.edu-date, .job-date {
    float: right;
    font-style: italic;
    color: #777;
    font-size: 9pt;
}
.company, .school {
    font-weight: 500;
    font-size: 9pt;
}
.resume-section ul {
    margin-left: 20px;
    margin-bottom: 8px;
    margin-top: 4px;
}
.resume-section li {
    margin-bottom: 3px;
    font-size: 9pt;
    word-spacing: normal;
    line-height: 1.4;
}
.resume-section p {
    margin-bottom: 4px;
}
.skills-category {
    font-weight: 600;
}
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}
.project {
    width: 48%;
}

/* Education section styles */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.education-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.education-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #f9b96e, #1a1501);
}
.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.education-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ddd;
}
.education-content h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}
.education-content p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Dark mode styles */
.dark-mode .resume-container {
    background-color: #1a1a1a;
    color: #e0e0e0;
}
.dark-mode .resume-header {
    border-bottom-color: #4a5568;
}
.dark-mode .resume-header h1 {
    color: #e0e0e0;
}
.dark-mode .contact-info {
    color: #b0b0b0;
}
.dark-mode .contact-info p {
    color: #e0e0e0;
}
.dark-mode .degree, 
.dark-mode .job-title {
    color: #e0e0e0;
}
.dark-mode .edu-date, 
.dark-mode .job-date {
    color: #aaa;
}
.dark-mode .company, 
.dark-mode .school {
    color: #d0d0d0;
}
.dark-mode .resume-section li {
    color: #d0d0d0;
}
.dark-mode .resume-section p {
    color: #d0d0d0;
}
.dark-mode .skills-category {
    color: #e0e0e0;
}
.dark-mode .education-item {
    background-color: #2a2a2a;
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}
.dark-mode .education-item:hover {
    box-shadow: 0 15px 30px rgba(255,255,255,0.15);
}
.dark-mode .education-logo {
    border-color: #444;
}
.dark-mode .education-content h3 {
    color: #e0e0e0;
}
.dark-mode .education-content p {
    color: #aaa;
}

@media print {
    .resume-container {
        max-width: 100%;
        padding: 15px 30px;
    }
    
    .resume-link {
        color: #2c3e50 !important;
        text-decoration: underline !important;
    }
    
    .resume-section {
        page-break-inside: avoid;
    }
}

/* Bookshelf grid for blog bookshelf posts */
.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
    margin: 32px 0;
    padding: 0;
}

.bookshelf-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(80,60,10,0.09);
    padding: 18px 18px 18px 18px;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    cursor: pointer;
    border: 2px solid #f9b96e22;
    text-decoration: none;
}

.bookshelf-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(80,60,10,0.13);
    border-color: #f9b96e;
    text-decoration: none;
}

.bookshelf-cover {
    width: 64px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(80,60,10,0.13);
    flex-shrink: 0;
    background: #f4f1e8;
    border: 1.5px solid #e0cfa0;
}

.bookshelf-content h3 {
    font-size: 1.08em;
    font-weight: bold;
    margin: 0 0 6px 0;
    color: #2d2d2d;
    line-height: 1.25;
}

.bookshelf-content p {
    margin: 0 0 3px 0;
    color: #666;
    font-size: 0.97em;
    line-height: 1.4;
}

.bookshelf-rating {
    color: #f9b96e;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.bookshelf-date {
    color: #aaa;
    font-size: 0.92em;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .bookshelf-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .bookshelf-item {
        padding: 12px;
    }
    .bookshelf-cover {
        width: 48px;
        height: 72px;
    }
}

/* Dark mode for bookshelf */
body.dark-mode .bookshelf-grid {
    background: none;
}
body.dark-mode .bookshelf-item {
    background: #23201a;
    border-color: #f9b96e33;
    box-shadow: 0 6px 18px rgba(249,185,110,0.09);
}
body.dark-mode .bookshelf-item:hover {
    border-color: #f9b96e;
    box-shadow: 0 12px 32px rgba(249,185,110,0.13);
}
body.dark-mode .bookshelf-cover {
    background: #2a2a2a;
    border-color: #f9b96e55;
}
body.dark-mode .bookshelf-content h3 {
    color: #f9b96e;
}
body.dark-mode .bookshelf-content p,
body.dark-mode .bookshelf-date {
    color: #aaa;
}
body.dark-mode .bookshelf-rating {
    color: #f9b96e;
}

.bookshelf-goal-meter {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.15em;
    font-weight: bold;
    margin: 18px 0 18px 0;
    background: #fffdfa;
    border: 2px solid #e0cfa0;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(80,60,10,0.07);
    width: fit-content;
    flex-wrap: wrap;
}
.bookshelf-goal-meter .goal-label {
    color: #b85c00;
    margin-right: 0.3em;
}
.bookshelf-goal-meter .goal-current {
    color: #388e3c;
}
.bookshelf-goal-meter .goal-divider,
.bookshelf-goal-meter .goal-total {
    color: #888;
}
.bookshelf-goal-meter .goal-meter-bar {
    flex: 1 1 120px;
    min-width: 120px;
    max-width: 200px;
    height: 18px;
    background: #f4f1e8;
    border-radius: 8px;
    margin-left: 1em;
    margin-right: 0.5em;
    border: 1.5px solid #e0cfa0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(80,60,10,0.05);
    display: flex;
    align-items: center;
}
.bookshelf-goal-meter .goal-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #f9b96e 60%, #388e3c 100%);
    border-radius: 8px 0 0 8px;
    transition: width 0.4s cubic-bezier(.4,2,.6,1);
}
.bookshelf-goal-meter .goal-current.over,
.bookshelf-goal-meter .goal-meter-fill.over {
    color: #e67e22;
    background: linear-gradient(90deg, #e67e22 60%, #c0392b 100%);
}
body.dark-mode .bookshelf-goal-meter {
    background: #23201a;
    border-color: #f9b96e;
    color: #f9b96e;
}
body.dark-mode .bookshelf-goal-meter .goal-label,
body.dark-mode .bookshelf-goal-meter .goal-current,
body.dark-mode .bookshelf-goal-meter .goal-divider,
body.dark-mode .bookshelf-goal-meter .goal-total {
    color: #f9b96e;
}
body.dark-mode .bookshelf-goal-meter .goal-meter-bar {
    background: #2a2a2a;
    border-color: #f9b96e;
}
body.dark-mode .bookshelf-goal-meter .goal-meter-fill {
    background: linear-gradient(90deg, #f9b96e 60%, #c1e11c 100%);
}