/* Wild Rabbit Co. — shared base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-green: #166534;
    --accent-green: #4ade80;
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.68);
    --glass-highlight: rgba(255, 255, 255, 0.75);
    --border: rgba(255, 255, 255, 0.55);
    --border-subtle: rgba(226, 232, 240, 0.65);
    --text: #0f172a;
    --text-muted: #64748b;
    --glass-blur: 14px;
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    --vz-earth: #4a5d23;
    --vz-earth-dark: #3d4f1f;
    --vz-cream: #ede4d3;
}

.tail-container {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -12%, rgba(74, 93, 35, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 115, 85, 0.04), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

.heading-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.05;
}

/* Frosted glass — cards, panels, modals */
.frost,
.frost-panel,
.vintage-card,
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    border-radius: 1.5rem;
}

.frost-panel {
    --card-bg: rgba(255, 255, 255, 0.74);
}

.glass-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 var(--glass-highlight);
}

.glass-nav {
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.frost-section {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.frost-chip {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
}

.plant-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.plant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.06),
        inset 0 1px 0 var(--glass-highlight);
}

.knowledge-card {
    background: rgba(253, 248, 240, 0.75);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(237, 228, 211, 0.85);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.guide-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px) saturate(1.25);
    -webkit-backdrop-filter: blur(10px) saturate(1.25);
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: all 0.2s ease;
}

.guide-card:hover {
    border-color: var(--vz-earth) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.metric {
    background: rgba(245, 240, 230, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(237, 228, 211, 0.6);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.nav-link {
    position: relative;
}
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: var(--vz-earth);
    transition: width 0.2s ease;
}
.nav-link:hover:after,
.nav-link.nav-active:after {
    width: 100%;
}

.nav-active {
    color: var(--vz-earth);
    font-weight: 600;
}

/* Vintage earth tone overrides (Tailwind emerald → brand green) */
.bg-emerald-800,
.bg-emerald-900 {
    background-color: var(--vz-earth) !important;
}
.text-emerald-800,
.text-emerald-700,
.text-emerald-900 {
    color: var(--vz-earth) !important;
}
.border-emerald-700,
.border-emerald-800 {
    border-color: var(--vz-earth) !important;
}
.bg-emerald-100 {
    background-color: var(--vz-cream) !important;
}
.text-emerald-600 {
    color: #556b2f !important;
}
.hover\:bg-emerald-900:hover {
    background-color: var(--vz-earth-dark) !important;
}

/* Focus visible for keyboard users */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--vz-earth);
    outline-offset: 2px;
}

/* Styled file picker */
.vz-file-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.vz-file-picker input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vz-file-picker .vz-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--vz-cream);
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--vz-earth);
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vz-file-picker .vz-file-btn:hover {
    background: #f8f4ec;
    border-color: #d2b48c;
}

.vz-file-picker .vz-file-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Post like / comment actions */
.vz-post-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(237, 228, 211, 0.85);
}

.vz-post-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid var(--vz-cream);
    background: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    color: #5c4033;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vz-post-action:hover {
    background: #f8f4ec;
    border-color: #d2b48c;
}

.vz-post-action.is-liked {
    color: #b45309;
    border-color: #fcd34d;
    background: #fffbeb;
}

.privacy-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(237, 228, 211, 0.6);
    font-size: 0.8rem;
}

.privacy-toggle:last-child {
    border-bottom: none;
}

/* Notifications bell + dropdown */
.vz-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.85rem;
    border: 1px solid var(--vz-cream);
    background: #fff;
    color: #5c4033;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vz-notif-btn:hover {
    background: #f8f4ec;
    border-color: #d2b48c;
}

.vz-notif-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 9999px;
    background: #b45309;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    border: 2px solid #fdf8f0;
}

.vz-notif-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(20rem, calc(100vw - 2rem));
    max-height: 22rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vz-cream);
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.12);
    z-index: 80;
}

.vz-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(237, 228, 211, 0.85);
    background: #fdf8f0;
}

.vz-notif-mark-all {
    font-size: 0.65rem;
    color: #4a5d23;
    font-weight: 600;
}

.vz-notif-mark-all:hover {
    text-decoration: underline;
}

.vz-notif-list {
    overflow-y: auto;
    max-height: 18rem;
}

.vz-notif-item {
    display: flex;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.9rem;
    border: none;
    border-bottom: 1px solid rgba(237, 228, 211, 0.5);
    background: #fff;
    cursor: pointer;
    transition: background 0.12s ease;
}

.vz-notif-item:hover {
    background: #f8f4ec;
}

.vz-notif-item.is-unread {
    background: #fffbeb;
}

.vz-notif-item.is-unread:hover {
    background: #fef3c7;
}

.vz-notif-icon {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    background: #ede4d3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.vz-notif-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.vz-notif-msg {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3d4f1f;
}

.vz-notif-post {
    font-size: 0.68rem;
    color: #5c4033;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vz-notif-time {
    font-size: 0.62rem;
    color: #8b7355;
}

.vz-notif-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #8b7355;
}

.vz-post-highlight {
    box-shadow: 0 0 0 3px rgb(74 93 35 / 0.25) !important;
    transition: box-shadow 0.3s ease;
}

/* Clickable post photos + lightbox */
.vz-post-photo-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0;
    border: none;
    background: #f8f4ec;
    cursor: zoom-in;
    border-radius: 0.75rem;
    overflow: hidden;
    text-align: center;
}

.vz-post-photo-btn:focus-visible {
    outline: 2px solid #4a5d23;
    outline-offset: 2px;
}

.vz-post-photo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 12rem;
    object-fit: contain;
    border-radius: 0.5rem;
    transition: box-shadow 0.2s ease;
}

.vz-post-photo-btn:hover .vz-post-photo {
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
}

.vz-post-photo-zoom {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.vz-post-photo-btn:hover .vz-post-photo-zoom {
    opacity: 1;
}

.vz-post-photo-btn.size-sm .vz-post-photo {
    max-height: 9rem;
}

.vz-post-photo-btn.size-md .vz-post-photo {
    max-height: 12rem;
}

.vz-image-lightbox {
    z-index: 100;
}

.vz-image-lightbox img {
    max-width: min(92vw, 56rem);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
}

.vz-image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: none;
    background: rgb(255 255 255 / 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.vz-image-lightbox-close:hover {
    background: rgb(255 255 255 / 0.28);
}