/* Main CSS for Giber Tabetai 2.0 - New Retro / Pop Style */

:root {
    /* Color Palette - Pop & Kawaii */
    --color-main: #FF8F8F;
    /* Coral Pink - Primary */
    --color-sub: #A8E6CF;
    /* Mint Green - Secondary */
    --color-accent: #FDFFB6;
    /* Butter Yellow - Accent/Highlight */
    --color-bg: #FFFAF0;
    /* Cream White - Background */
    --color-text: #4A4E69;
    /* Soft Navy/Grey - Text */
    --color-border: #FFD3B6;
    /* Peach - Soft Borders */

    /* Dark Mode Palette (Pale Mint Pop) */
    --color-bg-dark: #F3F9F6;
    /* Pale Mint (Low Saturation) */
    --color-text-dark: #4A4E69;
    /* Keep dark text for contrast */

    /* Spacing & Layout */
    --spacing-sm: 12px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --container-width: 1200px;
    --border-radius-sm: 12px;
    --border-radius-md: 24px;
    --border-radius-lg: 50px;
    /* Pill shape */

    /* Physics & Shadows - Soft UI */
    --shadow-soft: 8px 8px 24px rgba(0, 0, 0, 0.05), -8px -8px 24px rgba(255, 255, 255, 0.8);
    --shadow-depth: 4px 4px 12px rgba(0, 0, 0, 0.1);
    --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', sans-serif;
    /* Rounded Fonts */
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Cute Dot Pattern */
    padding-bottom: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    /* Ensure body fits */
}

body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
    background-image: radial-gradient(rgba(74, 78, 105, 0.1) 1px, transparent 1px);
    /* Dark dots for light background */
}

a {
    color: var(--color-main);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--color-sub);
}

/* Typography Fluidity */
html {
    font-size: 16px;
    overflow-x: hidden;
    /* Prevent horizontal scroll at root */
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
    margin-top: 0;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw + 1rem, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw + 1rem, 2rem);
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* UI Components: Buttons (Pill & Soft) */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-main);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(255, 143, 143, 0.3);
    transition: all var(--transition-bounce);
    cursor: pointer;
    letter-spacing: 0.1em;
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(255, 143, 143, 0.2);
}

/* Cards (Soft UI & Glassmorphism) */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #fff;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Layout Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Header */
/* Header */
.site-header {
    background-color: rgba(255, 250, 240, 0.85);
    /* Content-aware background (Cream) */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0;
    /* Zero padding on container */
    /* Minimized padding */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
    /* Smooth hide/show */
    min-height: 50px;
    /* Force small height */
}

.site-header.hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    /* Explicit height constraint */
    position: relative;
    /* For absolute animals */
}

/* Header Animals Animation */
.header-animals {
    position: absolute;
    bottom: -15px;
    /* Walk on the border */
    left: 0;
    width: 100%;
    height: 1px;
    /* Minimal height to not affect layout */
    overflow: visible;
    pointer-events: none;
    z-index: 10;
}

.animal {
    position: absolute;
    bottom: 0;
    animation: walk-across 30s linear infinite;
}

.animal.deer {
    animation-delay: 0s;
    left: -100px;
    /* Start off-screen */
}

.animal.boar {
    animation-delay: 2s;
    /* Boar follows deer */
    left: -100px;
}

@keyframes walk-across {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

/* Header Chars */
.header-chars {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 10px;
    height: 40px;
    /* Constrain height */
}

@media (max-width: 600px) {
    .header-chars {
        height: 24px;
        margin-left: 5px;
    }
}

.header-char {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-char:hover {
    transform: rotate(10deg) scale(1.1);
}

.site-branding {
    display: flex;
    /* Make branding flex to align title and chars */
    align-items: center;
}

.site-title {
    margin: 0;
    /* Reset margin */
    line-height: 1;
    /* Tight line height */
    display: flex;
    /* Remove inline spacing */
    align-items: center;
}

.site-title a {
    color: var(--color-main);
    font-size: 1.2rem;
    /* Even smaller title */
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 0 var(--color-accent);
    display: flex;
    align-items: center;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    /* Reduce gap */
    align-items: center;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: bold;
    font-size: 0.9rem;
    /* Smaller font */
    padding: 0.25rem 0.75rem;
    /* Minimal padding */
    border-radius: var(--border-radius-lg);
    transition: all 0.2s;
}

.main-navigation a:hover {
    background-color: var(--color-sub);
    color: #fff;
    box-shadow: 0 4px 10px rgba(168, 230, 207, 0.4);
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 20px;
    /* Floating look */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-item {
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex: 1;
}

.mobile-wild-active {
    background-color: transparent;
    background-image: url('../images/wild-plate.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #333 !important;
    border-radius: 50%;
    /* border: 1px solid #e0e0e0; */
    /* Border handled by image */
    width: 50px;
    /* Increased slightly for image */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: none;
    /* Shadow handled by image or not needed */
    margin-top: -8px;
    /* Adjusted lift */
}

.mobile-wild-active.voted {
    background-color: transparent;
    /* Plate image remains */
}

.mobile-wild-active .icon {
    transform: scale(1.0);
    /* Reset scale or adjust fit */
    margin-top: 2px;
    /* Center optically */
}


/* Single Page Specific Protrusion */
body.single .mobile-wild-active {
    width: 80px;
    /* Larger plate */
    height: 80px;
    margin-top: -45px;
    /* Pull up significantly */
    /* Ensure z-index is maintained */
}

body.single .mobile-wild-active .icon {
    font-size: 2.2rem;
    /* Larger icon if needed */
}


.nav-item .label {
    display: none;
}

.nav-item .icon {
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* HUNT FAB */
.hunt-fab {
    position: relative;
    top: -30px;
}

.hunt-circle {
    width: 65px;
    height: 65px;
    background-color: var(--color-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(255, 143, 143, 0.4);
    border: 4px solid #fff;
    /* White rim */
    transition: var(--transition-bounce);
}

.hunt-fab:active .hunt-circle {
    transform: scale(0.9);
}

/* Visibility */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* =========================================
   Page Specific Styles
   ========================================= */

/* Hero Section */
.hero-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(rgba(255, 143, 143, 0.7), rgba(168, 230, 207, 0.7)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 50% 50% / 40px;
    /* Cute curve at bottom */
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    /* For overlay */
}

.hero-title {
    margin-bottom: var(--spacing-sm);
    color: #fff;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.hero-logo {
    max-width: 400px;
    width: 90%;
    height: auto;
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.1));
}

@media (max-width: 600px) {
    .hero-logo {
        max-width: 280px;
    }
}

.hero-chars-overlay {
    position: absolute;
    bottom: -10px;
    right: 5%;
    height: 120px;
    /* Adjust size as needed */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float-y 3s ease-in-out infinite;
    z-index: 1;
}

@media (max-width: 600px) {
    .hero-chars-overlay {
        height: 80px;
        right: 10px;
        bottom: -5px;
    }
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
}

/* LINE Button Styles */
.hero-line-container {
    position: absolute;
    bottom: 110px;
    /* Above the characters which are at bottom: -10px */
    right: 5%;
    z-index: 10;
}

.hero-line-button {
    display: inline-block;
    background-color: #06C755;
    /* LINE Green */
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #fff;
    white-space: nowrap;
}

.hero-line-button:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #05b34c;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.6);
    color: #fff !important;
}

.hero-line-button:active {
    transform: translateY(-1px) scale(0.98);
}

@media (max-width: 600px) {
    .hero-line-container {
        bottom: 80px;
        /* Adjust for smaller hero characters overlay */
        right: 15px;
    }

    .hero-line-button {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* Marquee - Now a ticker tape */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: var(--color-main);
    color: #fff;
    padding: 8px 0;
    transform: rotate(-2deg);
    /* Playful tilt */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Timeline Grid (Bento Style) */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.timeline-grid .card {
    display: flex;
    flex-direction: column;
    /* Vertical cards for Bento grid */
    align-items: flex-start;
    text-align: left;
    height: auto;
    /* Natural height */
    align-self: start;
    /* Prevent grid stretching */
    padding: 0;
    /* Remove padding for image flush */
    overflow: hidden;
}

.timeline-grid .post-thumbnail {
    width: 100%;
    height: 200px;
    margin: 0;
    position: relative;
    /* For overlay */
}

.prefecture-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    pointer-events: none;
    /* Click through to image */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.pref-tag {
    display: flex;
    align-items: center;
    gap: 3px;
    background-color: var(--color-accent);
    color: var(--color-text);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1.5px solid #fff;
    /* White border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Status Badges Container */
.status-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: row-reverse;
    /* Align from right: First item is rightmost */
    gap: 8px;
    /* Space between badges */
    pointer-events: none;
}

.status-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.event-badge {
    background-color: #FF5252;
    /* Vivid Red/Pink */
    transform: rotate(15deg);
}

.shop-badge {
    background-color: #FFA726;
    /* Warm Orange */
    transform: rotate(-10deg);
    /* Counter tilt */
}

.timeline-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-grid .card:hover .post-thumbnail img {
    transform: scale(1.05);
    /* Zoom effect */
}

.timeline-grid .entry-header {
    padding: var(--spacing-md);
    width: 100%;
}

.timeline-grid h2.entry-title {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .timeline-grid h2.entry-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

/* Search Controls (Dropdowns) */
.prefecture-filter-container,
.filter-group-container {
    margin-bottom: var(--spacing-lg);
}

.custom-select {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text);
    background-color: #fff;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5252' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    transition: all 0.2s ease;
}

.custom-select:focus {
    outline: none;
    border-color: var(--color-main);
}

.custom-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.custom-input {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text);
    background-color: #fff;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    width: 250px;
    /* Set a reasonable width */
}

.custom-input:focus {
    outline: none;
    border-color: var(--color-main);
}

.custom-input:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.btn-search-icon {
    background-color: var(--color-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-search-icon:hover {
    transform: scale(1.1);
    background-color: #ff6b6b;
    /* Slightly darker coral */
}

/* Single Post */
.single-post-card {
    padding: var(--spacing-lg);
}

.single-post-card .entry-title {
    font-size: 2rem;
    color: var(--color-main);
}

@media (max-width: 600px) {
    .single-post-card {
        padding: 50px 1rem 1rem 1rem;
        /* Reduce side/bottom padding but increase top for indicators */
    }

    .single-post-card .entry-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

/* Swipe Indicators (Mobile) */
.single-post-card {
    position: relative;
    /* Ensure relative positioning for absolute children */
}

.swipe-indicators {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 0;
    /* Don't take up space */
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 10;
}

.swipe-hint {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--color-main);
    opacity: 0.8;
    transform: translateY(0);
    animation: hint-bounce 2s infinite ease-in-out;
}

.swipe-left {
    left: 10px;
}

.swipe-right {
    right: 10px;
    flex-direction: row-reverse;
}

@keyframes hint-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Post Tags */
.post-tags .tag-chip {
    padding: 4px 12px;
    background-color: var(--color-accent);
    color: var(--color-text);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Loading Screen */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 4rem;
    animation: spin 3s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Collapsible Search */
/* Removed search border, kept logic visible implicitly via layout */
#search-panel {
    background: rgba(255, 255, 255, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

/* Theme Toggle (Floating) */
.theme-toggle {
    bottom: 100px;
    right: 20px;
    background-color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination a,
.pagination span.current {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.pagination a {
    background: #fff;
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
}

.pagination a:hover {
    background-color: var(--color-sub);
    color: #fff;
    transform: translateY(-2px);
}

.pagination span.current {
    background-color: var(--color-main);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 143, 143, 0.4);
    pointer-events: none;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
    /* Pill shape for text buttons */
}

/* Blog Card (Archive/Generic) */
/* Blog Card (Archive/Generic) */
.blog-card {
    display: flex;
    background: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Stronger shadow */
    border: 1px solid var(--color-border);
    /* Explicit border */
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
    min-height: 120px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-content {
    flex: 1;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-description {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-site {
    font-size: 0.8rem;
    color: var(--color-main);
    font-weight: bold;
}

.blog-card-thumbnail {
    flex: 0 0 140px;
    background-size: cover;
    background-position: center;
    border-left: 2px solid var(--color-border);
}

@media (max-width: 600px) {
    .blog-card {
        flex-direction: column-reverse;
    }

    .blog-card-thumbnail {
        width: 100%;
        height: 160px;
        /* Explicit height for stacking */
        flex: none;
        /* Disable flex shrinking */
        border-left: none;
        border-bottom: 2px solid var(--color-border);
    }
}

/* Single Post Readability Bump */
.single-post-card {
    background: rgba(255, 255, 255, 0.95);
    /* More opaque for reading */
    color: var(--color-text);
    /* Enforce dark text */
}

.entry-meta {
    font-size: 0.9rem;
    color: #888;
    /* Distinct grey for meta */
    margin-bottom: 2rem;
}

.entry-content {
    color: var(--color-text);
    line-height: 1.8;
    font-weight: 500;
    /* Slightly bolder for readability */
}

.entry-content p {
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-left: 5px solid var(--color-main);
    padding-left: 1rem;
}

.entry-content h3 {
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px dashed var(--color-border);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-content h3::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3e%3cpath d='M36 12c2-4 6-6 8-6 M36 12c-2-4-1-8 2-9' fill='none' stroke='%235D4037' stroke-width='2.5' stroke-linecap='round' /%3e%3cellipse cx='28' cy='18' rx='2.5' ry='5' fill='%235D4037' transform='rotate(-20 28 18)' /%3e%3ccircle cx='36' cy='20' r='9' fill='%23A1887F' /%3e%3ccircle cx='43' cy='22' r='2' fill='%233E2723' /%3e%3ccircle cx='38' cy='18' r='1.5' fill='%233E2723' /%3e%3cpath d='M22 28h14c6 0 10 5 10 10v4c0 4-3 7-7 7H22c-4 0-7-3-7-7v-4c0-5 3-10 7-10z' fill='%23A1887F' /%3e%3ccircle cx='26' cy='34' r='1.5' fill='%23D7CCC8' /%3e%3ccircle cx='32' cy='32' r='1.5' fill='%23D7CCC8' /%3e%3ccircle cx='30' cy='38' r='1.5' fill='%23D7CCC8' /%3e%3ccircle cx='15' cy='32' r='3' fill='%23FFF' /%3e%3cpath d='M24 49v6 M36 49v6' stroke='%23A1887F' stroke-width='4' stroke-linecap='round' /%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Embeds */
.embed-container {
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-sm);
}

.embed-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: var(--border-radius-sm);
}

/* UMAINE Count */
.umaine-count {
    color: var(--color-main);
    font-weight: bold;
}

/* Desktop Side Navigation */
.single-post-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    /* Aligns header of article with buttons */
    justify-content: center;
    position: relative;
}

.desk-nav {
    flex: 0 0 auto;
    width: 60px;
    /* Space for button */
    position: sticky;
    top: 50vh;
    /* Center vertically relative to viewport */
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    justify-content: center;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--color-main);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--color-main);
    text-decoration: none;
}

.nav-btn:hover {
    background-color: var(--color-main);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 143, 143, 0.4);
}

/* Ensure article takes remaining space but not too much */
.single-post-card {
    flex: 1;
    max-width: 900px;
    /* Prevent over-stretch */
    width: 100%;
    /* Fill flex child */
}

/* Share Buttons */
.share-area {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-md);
    border: 2px dashed var(--color-border);
}

.share-title {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.share-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.btn-x {
    background-color: #000;
}

.btn-fb {
    background-color: #1877F2;
}

.btn-line {
    background-color: #06C755;
}

.btn-insta {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-copy {
    background-color: #A0A0A0;
    cursor: pointer;
}

.btn-copy.copied {
    background-color: var(--color-sub);
}

/* Desktop HUNT FAB */
.desktop-hunt-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-main);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 143, 143, 0.4);
    border: 3px solid #fff;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.desktop-hunt-fab:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(255, 143, 143, 0.6);
    color: #fff;
}

.desktop-hunt-fab .hunt-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 2px;
}

.desktop-hunt-fab .hunt-text {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}