/* Design System & Variables */
:root {
    /* Colors */
    --bg-base: #f9fafb;      
    --bg-surface: #ffffff;   
    --bg-surface-hover: #f3f4f6; 
    
    --text-primary: #1a1a1a; 
    --text-secondary: #4b5563; 
    --text-muted: #6b7280;   
    
    --accent-primary: #dc2626; /* Red */
    --accent-primary-hover: #b91c1c; /* Dark Red */

    --accent-success: #ffffff; /* White */
    --accent-danger: #dc2626;  /* Red */
    --accent-warning: #ffffff; /* White */
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    
    /* Typography */
    --font-sans: 'Roboto', system-ui, sans-serif;
    --font-heading: var(--font-sans);
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(56, 189, 248, 0.3);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

:root[data-theme="dark"] {
    --bg-base: #121212;
    --bg-surface: #1e1e1e;
    --bg-surface-hover: #2d2d2d;
    
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary-hover);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.main-content {
    flex: 1;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

/* Header */
.header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--bg-surface-hover);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: var(--font-sans);
}

.header-top {
    padding: 0.35rem 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.header-bottom {
    border-top: 1px solid #e5e7eb;
}

.header-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.logo a {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.nav-link {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.add-new-link {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.add-new-link:hover {
    color: var(--accent-primary);
}

.btn-store {
    background-color: #ff0000;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-store:hover {
    background-color: #cc0000;
}

/* Footer */
/* Premium Footer */
.premium-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--varp-border);
    padding: var(--space-6) 0 0 0;
    margin-top: var(--space-6);
    color: var(--text-primary);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    padding-bottom: var(--space-5);
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-3);
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 350px;
}

.footer-links-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--varp-border);
    padding: var(--space-4) 0;
    margin-top: var(--space-2);
}

[data-theme="dark"] .footer-bottom {
    background: rgba(255, 255, 255, 0.02);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: var(--space-3);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-body);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(56, 189, 248, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.23);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Cards */
.card {
    min-width: 0;
    background-color: var(--bg-surface);
    border: 1px solid #e5e7eb; /* Changed from rgba(0, 0, 0, 0.1) */
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: none; /* Removed shadow to see if it was causing the black line effect */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-3);
    display: flex;
    gap: var(--space-3);
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Forms */
.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--text-muted);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

/* Specific Views */
.hero {
    text-align: center;
    padding: var(--space-6) 0;
    margin-bottom: var(--space-6);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    background: linear-gradient(to right, #38bdf8, #a3e635);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-4) auto;
}

.app-section-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
}

.badge-grade {
    background-color: var(--accent-success);
    color: #000;
}

.route-list {
    list-style: none;
    margin-top: var(--space-4);
}

.route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition-fast);
}

.route-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.route-item:last-child {
    border-bottom: none;
}

.route-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.route-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: var(--space-6);
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: var(--space-4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

/* Drawing Studio Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.toolbar {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    background-color: var(--bg-surface);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.tools-group {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: var(--space-4);
}
.tools-group:last-child {
    border-right: none;
    padding-right: 0;
}

.tool-btn {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid transparent;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.tool-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tool-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 4px var(--text-primary);
}

.color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
}

.btn-danger {
    color: var(--accent-danger);
    background-color: rgba(244, 63, 94, 0.1);
}

.btn-danger:hover {
    background-color: rgba(244, 63, 94, 0.2);
}

.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

canvas {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    cursor: crosshair;
    touch-action: none; /* Prevent scrolling while drawing */
}

/* Route Interactions */
.highlight-route {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.02);
}

.svg-route-path {
    transition: stroke-width 0.2s;
}

.svg-route-path:hover {
    stroke-width: 8 !important;
}

/* Homepage Redesign */
.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.home-map-container {
    height: 600px;
    background: #222;
    margin-top: calc(var(--space-6) * -1); /* counter the main-content padding */
    margin-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255,255,255,0.05);
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-full);
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: var(--accent-primary);
    border-radius: var(--radius-full);
}

.horizontal-card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feed-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background-color: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    transition: transform 0.2s, background-color 0.2s;
}

.feed-item:hover {
    transform: translateX(4px);
    background-color: var(--bg-surface-hover);
}

.feed-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    font-size: 1.2rem;
}

.card-image-wrapper { aspect-ratio: 210 / 148; height: auto; width: 100%; overflow: hidden; border-radius: var(--radius-md); margin-bottom: 12px; } .card-image-wrapper img { width: 100%; aspect-ratio: 210 / 148; object-fit: cover; display: block; } .placeholder-image { width: 100%; height: 100%; background-color: var(--bg-surface-hover); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: bold; }

/* Map Modal Flex Wrap */
.map-modal-flex-wrap {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}

@media (max-width: 900px) {
    #map-modal-picks-container {
        display: none !important;
    }
}

/* Leaflet Marker Cluster Customization */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(75, 85, 99, 0.4) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #374151 !important;
    color: white !important;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: var(--space-4);
}

.map-modal-content {
    background-color: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
}

.map-modal-image-container {
    aspect-ratio: 210 / 148;
    height: auto;
    position: relative;
    background-color: #2a2836;
}

.map-modal-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.map-modal-image-container img {
    width: 100%;
    aspect-ratio: 210 / 148;
    object-fit: cover;
    display: block;
}

.map-modal-label-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 2;
}

.map-modal-rating-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 2;
}

.map-modal-label-badge .label-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff54d6; /* Default pink */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.map-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.map-modal-rating {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
}

.map-modal-desc {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.map-modal-graph {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: auto;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
}

.graph-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    flex: 1;
    max-width: 24px;
    position: relative;
}

.graph-bar {
    width: 14px;
    border-radius: 7px;
    background-color: #3f3c4e; /* Default empty */
    transition: height 0.3s ease;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.graph-count {
    font-size: 12px;
    font-weight: 700;
    color: #d1d5db;
    margin-bottom: 4px;
    position: absolute;
    top: -20px;
}

.graph-label {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    margin-top: 8px;
}

.map-modal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #f43f5e;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 12px;
    transition: background-color 0.2s, transform 0.1s;
}

.map-modal-btn:hover {
    background-color: #e11d48;
    transform: translateY(-2px);
}

/* Dark Mode Logo Switch */
html[data-theme='dark'] .logo-light { display: none !important; }
html[data-theme='dark'] .logo-dark { display: block !important; }

/* Camera Modal */
.camera-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
}
.camera-modal-content {
    background: #000; padding: 0;
    border-radius: 0; max-width: none; width: 100%; height: 100%;
    display: flex; flex-direction: column; gap: 0; position: relative;
}
.camera-video-container {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.camera-controls {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: var(--space-4); background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex; gap: var(--space-3); justify-content: center; z-index: 10;
}


.custom-leaflet-marker { background: none; border: none; }

/* Map FAB styling */
.map-fab-container {
    position: relative;
    pointer-events: auto;
}
.map-fab-button {
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.2s, background-color 0.2s;
    font-size: 1rem;
    border: 1px solid rgba(0,0,0,0.15);
}
.map-fab-button:hover {
    transform: scale(1.05);
    background-color: #f3f4f6;
}
.map-fab-menu {
    position: absolute;
    top: 50px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
}
.map-fab-container:hover .map-fab-menu,
.map-fab-container.active .map-fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.map-fab-item {
    background-color: white;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
    transition: background-color 0.2s;
    border: 1px solid var(--varp-border);
}
.map-fab-item:hover {
    background-color: var(--bg-surface-hover);
}
.map-drawing-finish {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #16a34a;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    font-size: 1.1rem;
    pointer-events: auto;
}
.map-drawing-finish.active {
    display: block;
}

/* Dark mode logo toggle */
html[data-theme='dark'] .logo-light { display: none !important; }
html[data-theme='dark'] .logo-dark { display: block !important; }

/* --- Autocomplete Styles --- */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
}
.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover, .autocomplete-item.active {
    background: rgba(0,0,0,0.05);
}
.autocomplete-item.create-new {
    color: var(--accent-primary);
    font-weight: 600;
    position: sticky;
    bottom: 0;
    background: var(--bg-surface);
    border-top: 1px solid rgba(0,0,0,0.1);
}
.autocomplete-item.create-new:hover {
    background: rgba(56, 189, 248, 0.1);
}


.wall-layout { display: flex; flex-direction: column; gap: var(--space-4); }
@media(min-width: 992px) {
    .wall-layout.vertical-image-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-5);
    }
    .wall-layout.vertical-image-layout .wall-image-container {
        flex: 0 0 auto;
        width: fit-content;
        max-width: 55%;
        background: transparent;
    }
    .wall-layout.vertical-image-layout .wall-image-container img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 80vh;
    }
    .wall-layout.vertical-image-layout .wall-info-container {
        flex: 1;
        min-width: 350px;
    }
}

.wall-image-container { position: relative; width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--space-4); overflow: hidden; background: #111; max-height: 85vh; display: flex; justify-content: center; align-items: center; }
.wall-image-container img { width: 100%; height: 100%; max-height: 85vh; object-fit: contain; display: block; }
.wall-image-container svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* Leaflet Map Dark Mode Styling */
html[data-theme='dark'] .leaflet-tile-container {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
html[data-theme='dark'] .leaflet-container {
    background: #111 !important;
}
html[data-theme='dark'] .leaflet-control-attribution {
    background: rgba(0,0,0,0.7) !important;
    color: #ccc !important;
}
html[data-theme='dark'] .leaflet-control-attribution a {
    color: var(--accent-primary) !important;
}
html[data-theme='dark'] .leaflet-bar a {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
html[data-theme='dark'] .leaflet-bar a:hover {
    background-color: rgba(255,255,255,0.1) !important;
}
html[data-theme='dark'] .leaflet-popup-content-wrapper,
html[data-theme='dark'] .leaflet-popup-tip {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}
html[data-theme='dark'] .leaflet-popup-close-button {
    color: var(--text-muted) !important;
}


/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9998;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--varp-border);
}

.cookie-content {
    flex: 1 1 500px;
}

.cookie-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.cookie-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.cookie-btn {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-reject {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}
.cookie-reject:hover {
    background: rgba(255,255,255,0.05);
}

.cookie-settings-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
}

.cookie-modal-content {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: var(--text-primary);
}

.cookie-category {
    padding: 15px 0;
    border-bottom: 1px solid var(--varp-border);
}
.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-body);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--text-muted);
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--accent-success);
    border-color: var(--accent-success);
}
input:checked + .slider:before {
    transform: translateX(22px);
}
.toggle-switch.disabled .slider {
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes fillProgressX {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Rainbow Border for Completed Entities */
.completed-rainbow-border {
    border: 4px solid transparent !important;
    background-clip: padding-box, border-box !important;
    background-origin: padding-box, border-box !important;
    background-image: linear-gradient(var(--bg-surface), var(--bg-surface)), 
                      linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) !important;
    border-radius: var(--radius-lg);
}

/* Also ensure images inside look slightly desaturated */
.completed-rainbow-border img {
    filter: saturate(0.6) brightness(0.9);
}

/* ============================================
   Auth Modal (Login / Register)
   ============================================ */
.auth-modal {
    background: var(--bg-surface);
    border: 1px solid var(--varp-border);
    padding: 0;
    border-radius: 16px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    animation: authModalIn 0.25s ease-out;
}

@keyframes authModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 2;
    transition: color 0.2s;
    line-height: 1;
}
.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--varp-border);
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 16px 0;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.25s;
    position: relative;
}
.auth-tab:hover {
    color: var(--text-primary);
}
.auth-tab.active {
    color: var(--accent-primary);
}
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: tabSlide 0.25s ease-out;
}

@keyframes tabSlide {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.auth-tab-content {
    display: none;
    padding: 28px 28px 24px;
}
.auth-tab-content.active {
    display: block;
    animation: authFadeIn 0.2s ease-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    display: none;
}
.auth-error.visible {
    display: block;
}

.auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    display: none;
}
.auth-success.visible {
    display: block;
}


/* Fix border radius alignment for rainbow bordered cards */
.completed-rainbow-border > div:first-child {
    border-top-left-radius: calc(var(--radius-lg) - 4px) !important;
    border-top-right-radius: calc(var(--radius-lg) - 4px) !important;
}

/* Latest Posts Split View Cards - Improved */
.home-article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    color: var(--text-primary); /* Fixes everything turning red inside the <a> tag */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.home-article-card-left {
    width: 100%;
    aspect-ratio: 1.414 / 1; /* A4 landscape for mobile */
    height: auto;
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-article-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.home-article-card:hover .home-article-card-bg {
    transform: scale(1.05);
}
.home-article-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}
.home-article-badge {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--accent-primary, #dc2626);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.home-article-empty-text {
    font-weight: 800;
    color: #9ca3af;
    font-size: 2rem;
    letter-spacing: 4px;
    z-index: 1;
}
.home-article-card-right {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.home-article-title {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 800;
    transition: color 0.2s;
}
.home-article-card:hover .home-article-title {
    color: var(--accent-primary, #dc2626);
}
.home-article-meta {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 24px;
}
.home-article-readmore {
    margin-top: auto;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.home-article-readmore span {
    transition: transform 0.2s;
}
.home-article-card:hover .home-article-readmore {
    color: var(--accent-primary, #dc2626);
}
.home-article-card:hover .home-article-readmore span {
    transform: translateX(4px);
}
@media (min-width: 768px) {
    .home-article-card {
        flex-direction: row;
        min-height: unset; /* Let content or image dictate height */
    }
    .home-article-card-left {
        width: 42%;
        aspect-ratio: 1.414 / 1; /* A4 Landscape ratio */
        height: auto;
        flex-shrink: 0;
    }
    .home-article-card-right {
        padding: 24px 32px; /* Reduced top padding so title is at the top */
    }
    .home-article-title {
        font-size: 1.6rem;
    }
}


/* Mobile Menu */
@media (max-width: 992px) {
    .floating-toolbar {
        flex-direction: column;
        align-items: stretch;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        transform: none;
        padding: 15px;
        border-radius: var(--radius-lg);
    }
    .floating-toolbar h2 {
        display: block;
        font-size: 1.1rem;
        margin: 0;
        white-space: nowrap;
        color: var(--text-primary);
        font-weight: 800;
    }
    .floating-toolbar .modal-header {
        justify-content: space-between;
    }
    .floating-toolbar .mobile-menu-toggle {
        display: block;
    }
    .floating-toolbar .toolbar-actions {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 15px;
        border-top: 1px solid var(--varp-border);
        margin-top: 10px;
    }
    .floating-toolbar .toolbar-actions.active {
        display: flex;
    }
    .floating-toolbar .tools-group {
        flex-direction: column;
    }
    .floating-toolbar .tool-btn,
    .floating-toolbar .save-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    .floating-toolbar .divider {
        width: 100%;
        height: 1px;
        margin: 5px 0;
    }
    .floating-toolbar .hide-mobile {
        display: none;
    }
}



/* Responsive Logo */
.header-logo {
    max-height: 45px;
    width: auto;
    transition: max-height 0.2s;
}

@media (max-width: 992px) {
    .header-logo {
        max-height: 28px;
    }
}

/* --- FIXED TOPO STUDIO TOOLBAR --- */

/* Base (Desktop) Styles */
.floating-toolbar {
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--varp-border) !important;
    border-radius: 100px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 8px 16px !important;
    gap: 12px !important;
    width: max-content !important;
    max-width: 95vw !important;
}
.floating-toolbar .modal-header {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.floating-toolbar h2 {
    display: none !important;
}
.floating-toolbar .mobile-menu-toggle {
    display: none !important;
}
.floating-toolbar .close-btn {
    padding: 6px 12px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    border-radius: 100px !important;
    margin-left: 8px !important;
}
.floating-toolbar .toolbar-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}
.floating-toolbar .tools-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    align-items: center !important;
}
.floating-toolbar .divider {
    width: 1px !important;
    height: 24px !important;
    background-color: var(--varp-border) !important;
    margin: 0 4px !important;
}
.floating-toolbar .tool-btn {
    padding: 8px 16px !important;
    border-radius: 100px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}
.floating-toolbar .save-btn {
    padding: 8px 20px !important;
    font-weight: bold !important;
    border-radius: 100px !important;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .floating-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        transform: none !important;
        padding: 15px !important;
        border-radius: var(--radius-lg) !important;
    }
    .floating-toolbar h2 {
        display: block !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
        white-space: nowrap !important;
        color: var(--text-primary) !important;
        font-weight: 800 !important;
    }
    .floating-toolbar .modal-header {
        justify-content: space-between !important;
        width: 100% !important;
    }
    .floating-toolbar .mobile-menu-toggle {
        display: block !important;
        background: none !important;
        border: none !important;
        color: var(--text-primary) !important;
        cursor: pointer !important;
        padding: 4px !important;
    }
    .floating-toolbar .toolbar-actions {
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding-top: 15px !important;
        border-top: 1px solid var(--varp-border) !important;
        margin-top: 10px !important;
        width: 100% !important;
    }
    .floating-toolbar .toolbar-actions.active {
        display: flex !important;
    }
    .floating-toolbar .tools-group {
        flex-direction: column !important;
        width: 100% !important;
    }
    .floating-toolbar .tool-btn,
    .floating-toolbar .save-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px !important;
    }
    .floating-toolbar .divider {
        width: 100% !important;
        height: 1px !important;
        margin: 5px 0 !important;
    }
    .floating-toolbar .hide-mobile {
        display: none !important;
    }
}

/* Safeguards for Topo Studio Toolbar height */
.floating-toolbar {
    height: auto !important;
    max-height: 80px !important;
    top: auto !important;
}

@media (max-width: 992px) {
    .floating-toolbar {
        max-height: 80vh !important;
    }
}

/* --- RESTORED MAIN HEADER MOBILE STYLES --- */
@media (max-width: 992px) {
    #mobile-menu-btn {
        display: block !important;
    }
    .header-bottom {
        display: none;
        width: 100%;
        background-color: var(--bg-surface);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        padding-bottom: 10px;
    }
    .header-bottom.active {
        display: block;
    }
    .header-bottom-content {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .nav-links .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid var(--varp-border);
        width: 100%;
        text-align: left;
    }
    .header-actions-bottom {
        padding: 15px 20px;
        display: flex;
        justify-content: flex-start;
    }
}


@media (max-width: 450px) {
    .header-actions a, .header-actions button { margin-right: 4px !important; padding: 4px !important; }
    .header-actions .btn-store { font-size: 0 !important; padding: 6px 8px !important; margin-right: 0 !important; }
    .header-actions .btn-store svg { margin-right: 0 !important; margin-bottom: 0 !important; width: 18px !important; height: 18px !important; }
    .header-actions #mobile-menu-btn { margin-left: 4px !important; padding: 4px !important; }
    .header-top-content { padding: 0 8px !important; }
    .header-logo { height: 32px !important; }
}

/* Gutenberg Article Styles */
.gutenberg-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 15px 60px;
}

.gutenberg-article .breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.gutenberg-header {
    text-align: center;
    margin-bottom: 40px;
}

.gutenberg-title {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.gutenberg-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gutenberg-featured-media {
    margin: 0 -20px 40px -20px;
}

.gutenberg-featured-media img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gutenberg-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.gutenberg-content p {
    margin-bottom: 1.5em;
}

.gutenberg-content h2 {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--text-primary);
}

.gutenberg-content h3 {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.4rem;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: var(--text-primary);
}

.gutenberg-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.gutenberg-content ul, 
.gutenberg-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.gutenberg-content li {
    margin-bottom: 0.5em;
}

.gutenberg-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.gutenberg-content a:hover {
    color: var(--accent-hover, #0056b3);
}

.gutenberg-content figure {
    margin: 2em 0;
}

.gutenberg-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.gutenberg-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5em;
    font-style: italic;
}

@media (max-width: 768px) {
    .gutenberg-title {
        font-size: 2.2rem;
    }
    
    .gutenberg-featured-media {
        margin: 0 0 30px 0;
    }
    
    .gutenberg-featured-media img {
        border-radius: var(--radius-md);
    }
}
