/* ===============================
   Variables
   =============================== */
:root {
    --primary-color: #140904; /* almost black */
    --secondary-color: #993D00; /* brown */
    --highlight-color: #fbf2ee; /* off-white */
    --hover-highlight: #ffdd57; /* hover highlight text */
    --footer-link-hover: #ffda89; /* footer hover color */
    --background-color: #f4f4f4; /* light gray */
    --twitter-hover-start: #1da1f2;
    --twitter-hover-end: #0d8bd9;
    --facebook-hover-start: #1877f2;
    --facebook-hover-end: #166fe5;
    --linkedin-hover-start: #0077b5;
    --linkedin-hover-end: #005885;
    --reddit-hover-start: #ff4500;
    --reddit-hover-end: #e03d00;
    --pinterest-hover-start: #bd081c;
    --pinterest-hover-end: #9e0719;
    --copy-hover-start: #666;
    --copy-hover-end: #555;
}

/* ===============================
   General Styles
   =============================== */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 10px;
    padding: 0px;
    background-color: var(--background-color);
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===============================
   Buttons: Muted Autumn Palette
   =============================== */
   .button-base {
    padding: 10px 20px; /* Reduce size */
    font-size: 14px; /* Subtle text size */
    border-radius: 10px; /* Slightly rounded corners */
    background-color: #140904; /* Dark base */
    color: #fbf2ee; /* Light text */
    border: 1px solid #265a32; /* Define border */
    box-shadow: none; /* Remove heavy shadow */
    transition: all 0.2s ease-in-out;
}

.button-base:hover {
    background-color: #3c5a40; /* Muted green */
    color: #d9e8d4; /* Soft highlight */
    border-color: #3c5a40; /* Border matches background */
    transform: scale(1.02); /* Subtle zoom */
}

.button-base:active {
    background-color: #265a32; /* Rich green */
    transform: translateY(2px); /* Less dramatic press effect */
}

/* ===============================
   Buy Me a Coffee button
   =============================== */
.bmc-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d4a574 0%, #e2a07c 100%);
    color: #140904;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    margin: 0.5rem 0;
}

.bmc-button:focus {
    outline: 2px solid #993D00;
    outline-offset: 2px;
}

.bmc-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #c99660 0%, #d4a574 100%);
}

.bmc-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bmc-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    filter: brightness(0.8);
}

/* Enhanced tip jar styles */
.tip-jar {
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #e2a07c;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffdfa 0%, #fefbf6 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    line-height: 1.6;
    max-width: 420px;
}

.tip-jar p {
    margin: 0.75rem 0;
}

.tip-jar .tip-lead {
    font-weight: 600;
    font-size: 1.05rem;
    color: #140904;
    margin-bottom: 1rem;
}

.tip-jar .tip-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

.tip-jar em {
    color: #993D00;
    font-style: italic;
}

@media (max-width: 480px) {
    .bmc-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .tip-jar {
        margin: 1.5rem auto;
        padding: 1.25rem;
        max-width: 100%;
    }
    
    .tip-jar .tip-lead {
        font-size: 1rem;
    }
    
    .tip-jar .tip-note {
        font-size: 0.85rem;
    }
}

/* ===============================
   Social Share Buttons
   =============================== */
/* Rounded pill fallback layout */
.share-pillbar{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.4rem;
  margin-top:.5rem;
}

.share-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.4rem .8rem;
  border-radius:999px;
  background:linear-gradient(135deg,#d4a574 0%,#e2a07c 100%);
  color:#140904;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 2px 4px rgba(0,0,0,.08);
  cursor:pointer;
  font-size:.9rem;
  font-weight:600;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
  line-height:1;
  -webkit-tap-highlight-color:transparent;
}
.share-pill:hover{
  transform:translateY(-1px);
  box-shadow:0 3px 8px rgba(0,0,0,.12);
  background:linear-gradient(135deg,#c99660 0%,#d4a574 100%);
}
.share-pill:focus{outline:2px solid #993D00; outline-offset:2px;}

/* Reuse your existing platform hover colors if desired */
.share-pill.share-twitter:hover{background:linear-gradient(135deg,#1da1f2 0%,#0d8bd9 100%);color:#fff;}
.share-pill.share-facebook:hover{background:linear-gradient(135deg,#1877f2 0%,#166fe5 100%);color:#fff;}
.share-pill.share-linkedin:hover{background:linear-gradient(135deg,#0077b5 0%,#005885 100%);color:#fff;}
.share-pill.share-reddit:hover{background:linear-gradient(135deg,#ff4500 0%,#e03d00 100%);color:#fff;}
.share-pill.share-pinterest:hover{background:linear-gradient(135deg,#bd081c 0%,#9e0719 100%);color:#fff;}
.share-pill.share-copy:hover{background:linear-gradient(135deg,#666 0%,#555 100%);color:#fff;}

/* Native Share button (mobile) */
.share-native{
  display:block;
  margin:.5rem auto 0;
  padding:.5rem .9rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.1);
  background:#fffdfa;
  font-weight:600;
  cursor:pointer;
}
.share-native:hover{background:#fff5e8;}
.share-native:focus{outline:2px solid #993D00; outline-offset:2px;}

/* Responsive adjustments */
@media (max-width:480px){
  .share-pill{padding:.35rem .7rem; font-size:.85rem;}
}
/* Dynamic toast created at runtime (no IDs) */
.copy-toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(8px);
  background: #140904;
  color: #fbf2ee;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  opacity: 0;
  z-index: 1000;
  transition: opacity .18s ease, transform .18s ease;
}
.copy-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .copy-toast{ transition: none; }
}


/* ===============================
   Images and Avatars
   =============================== */
.avatar {
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin: 20px auto;
    display: block;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
    float: left;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .image {
        float: none;
        margin: 10px auto;
    }
}

/* ===============================
   Navbar
   =============================== */
   .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    background-color: var(--primary-color);
    border-top: 5px solid var(--secondary-color);
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar img {
    max-width: 100%;
    height: auto;
    width: 75px; /* Adjust as needed */
}

/* Menu */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Menu Items */
.menu li {
    margin: 0 10px;
}

/* Links */
.menu a {
    display: block;
    padding: 12px 20px; /* Increase padding for larger touch area */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px; /* Adjust font size for readability */
    color: var(--highlight-color);
    transition: all 0.2s ease-in-out;
    border-radius: 5px; /* Add rounded edges for better touch experience */
}

/* Hover and Focus States */
.menu a:hover {
    background-color: #281308; /* Darken background on hover */
    color: var(--hover-highlight);
}

.menu a:focus {
    outline: 2px solid var(--hover-highlight);
    outline-offset: 4px; /* Increase offset for better visibility */
}

/* Spacing and Alignment for Mobile */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: center;
    }
    .menu li {
        margin-bottom: 10px; /* Increase spacing between items */
    }
    .menu a {
        width: 100%; /* Make links full-width on mobile */
        text-align: center;
    }
}

/* ===============================
   Forms
   =============================== */
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 1em;
    background: var(--background-color);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

label {
    margin-top: 1em;
    display: block;
    font-weight: bold;
}

input, textarea, button {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
}

/* ===============================
   Footer
   =============================== */
.site-footer {
    clear: both;
    background-color: var(--primary-color);
    padding: 20px;
    text-align: center;
    color: var(--highlight-color);
    border-top: 5px solid var(--secondary-color);
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: var(--highlight-color);
    text-decoration: underline dotted;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}


/* ===============================
   Responsive Design for
   =============================== */
@media (max-width: 480px) {
    .button-base {
        font-size: 12px;
        padding: 10px 20px;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer {
        font-size: 12px;
        padding: 15px;
        font-size: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links li {
        margin-bottom: 5px;
    }
}

/* ===============================
   Post Container
   =============================== */
.post-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fbf2ee;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Post Header */
.post-header {
    border-bottom: 2px solid #e2a07c;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.post-header h1 {
    font-size: 28px;
    color: #140904;
}

.post-meta {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* Post Content */
.post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* Post Footer */
.post-footer {
    margin-top: 30px;
    text-align: center;
}

.back-link {
    font-size: 14px;
    color: #140904;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #993D00;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #993D00;
    border-color: #993D00;
}

/* ===============================
   General Styles for Stories Index
   =============================== */
.stories-index {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.stories-index h1 {
    font-size: 32px;
    color: #140904;
    margin-bottom: 10px;
}

.stories-index p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

/* Grid Layout for Story Cards */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Story Card */
.story-card {
    background-color: #fff;
    border: 1px solid #e2a07c;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Story Card Image */
.story-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

/* Story Card Content */
.story-content {
    padding: 20px;
    text-align: left;
}

.story-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #140904;
}

.story-content h2 a {
    text-decoration: none;
    color: inherit;
}

.story-content h2 a:hover {
    color: #993D00;
}

.story-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.story-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}
/* ===============================
   General Styles for Blog Index
   =============================== */
.blog-index {
text-align: center;
padding: 50px 25px;
background-color: #fcf7f3;
}

.blog-index h1 {
    font-size: 36px;
    color: #2d1506;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.blog-index p {
    font-size: 18px;
    color: #6d5e54;
    margin-bottom: 50px;
    line-height: 1.8;
}

.blog-index .blog-card-content h2 {
    color: #2d1506;
}

/* Grid Layout for Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Individual Blog Card */
.blog-card {
    background-color: #fff8f4;
    border: 2px solid #e3b591;
    border-radius: 12px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Blog Card Image */
.blog-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: brightness(0.95);
}

.blog-card:hover .blog-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Blog Card Content */
.blog-content {
    padding: 25px;
    text-align: left;
}

.blog-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2d1506;
    font-weight: 600;
}

.blog-content h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.blog-content h2 a:hover {
    color: #b5491e;
}

.blog-meta {
    font-size: 14px;
    color: #8c7a71;
    margin-bottom: 12px;
}

.blog-content p {
    font-size: 17px;
    color: #4f3b32;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stories-index {
        padding: 40px 15px;
    }

    .blog-grid {
        gap: 20px;
    }

    .blog-card {
        border-radius: 8px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-content h2 {
        font-size: 20px;
    }

    .blog-content p {
        font-size: 16px;
    }
}

/* ===============================
   Inline Image Styling
   =============================== */
.inline-image {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
}

.inline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inline-image figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    font-style: italic;
}

@media (max-width: 768px) {
    .inline-image {
        margin: 15px auto;
    }

    .inline-image figcaption {
        font-size: 12px;
    }
}
/* ===============================
   Cookie Banner Styling
   =============================== */
#cookie-banner a {
    text-decoration: underline;
  }
  #cookie-banner button:hover {
    background-color: #ffc107;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/Roboto-Regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/Roboto-Bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
/* ===============================
   Audio Player Styling (Legacy)
   =============================== */
.aa-wrap { max-width: 760px; margin: 1.25rem auto; }
.aa-underbar {
  display: flex; gap: .75rem; align-items: center; justify-content: space-between;
  margin-top: .5rem; font-size: .95rem;
}
.aa-download { border: 1px solid #ddd; padding: .35rem .6rem; border-radius: 6px; text-decoration: none; }

/* ===============================
   YouTube Player Styling
   =============================== */
.youtube-wrap {
  max-width: 760px;
  margin: 1.25rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--bg-color, #fff);
}

.youtube-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-underbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 0.95rem;
  background: var(--bg-color, #fff);
  border-top: 1px solid var(--border-light, #e5e5e5);
}

.youtube-meta {
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.youtube-title {
  display: block;
  font-weight: 600;
  color: var(--text-color, #333);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.youtube-caption {
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  line-height: 1.4;
}

.youtube-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color, #333);
  background: var(--bg-color, #fff);
  transition: all 0.2s ease;
}

.youtube-btn:hover {
  background: var(--primary-color, #993d00);
  color: var(--highlight-color, #fff);
  border-color: var(--primary-color, #993d00);
  transform: translateY(-1px);
}

.youtube-support {
  background: var(--secondary-color, #ff6b35);
  color: var(--highlight-color, #fff);
  border-color: var(--secondary-color, #ff6b35);
}

.youtube-support:hover {
  background: var(--primary-color, #993d00);
  border-color: var(--primary-color, #993d00);
}

.youtube-subscribe {
  background: #FF0000;
  color: #fff;
  border-color: #FF0000;
}

.youtube-subscribe:hover {
  background: #CC0000;
  border-color: #CC0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .youtube-underbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .youtube-actions {
    justify-content: center;
  }
  
  .youtube-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .youtube-wrap {
    background: var(--bg-dark, #1a1a1a);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .youtube-underbar {
    background: var(--bg-dark, #1a1a1a);
    border-top-color: var(--border-dark, #333);
  }
  
  .youtube-title {
    color: var(--text-dark, #fff);
  }
  
  .youtube-caption {
    color: var(--text-muted-dark, #ccc);
  }
  
  .youtube-btn {
    background: var(--bg-dark, #2a2a2a);
    color: var(--text-dark, #fff);
    border-color: var(--border-dark, #444);
  }
}

/* ===============================
   CTA Banner Styling
   =============================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a1208 100%);
  border: 3px solid var(--secondary-color);
  border-radius: 15px;
  padding: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 6px 20px rgba(20, 9, 4, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(153, 61, 0, 0.2), transparent);
  transition: left 0.8s ease;
}

.cta-banner:hover::before {
  left: 100%;
}

.cta-banner-text {
  font-size: 1.4rem;
  color: var(--highlight-color);
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.5;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #b8471a 100%);
  color: var(--highlight-color);
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(153, 61, 0, 0.4);
  position: relative;
  z-index: 1;
  border: 2px solid var(--hover-highlight);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(153, 61, 0, 0.6);
  background: linear-gradient(135deg, #cc4400 0%, #e55100 100%);
  color: var(--highlight-color);
  text-decoration: none;
  border-color: var(--footer-link-hover);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .cta-banner {
    padding: 2rem 1.25rem;
    margin: 2rem 0;
  }
  
  .cta-banner-text {
    font-size: 1.2rem;
    margin-bottom: 1.75rem;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}