﻿/* ==========================================================================
   TNR Status Messages — v1.3.0
   Designed for TNRintheWild.org
   ========================================================================== */

:root {
    --tnr-primary: #646a4a;
    --tnr-accent: #646a4a;
    --tnr-accent-soft: #dfe4c9;
    --tnr-muted: #70756a;
    --tnr-surface: #f6f4ef;
    --tnr-surface-strong: #eef0e5;
    --tnr-border: #dfe2d1;
    --tnr-text: #1f2419;
    --tnr-link-hover: #4d5339;
}

.tnr-status-latest {
    --tnr-bg: #1e2317;
    --tnr-accent: var(--tnr-primary);
    --tnr-text: #f2f1ec;
    --tnr-muted: #a9ad9f;
    --tnr-link-hover: #c9d1a8;
    --tnr-bar: 3px solid var(--tnr-primary);
    --tnr-radius: 12px;
    margin: 1.25em 0;
}

.tnr-status-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--tnr-bg);
    border-radius: var(--tnr-radius);
    border-left: var(--tnr-bar);
    padding: 16px 18px 14px;
}

.tnr-status-indicator {
    flex-shrink: 0;
    padding-top: 4px;
}

.tnr-status-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tnr-primary);
    box-shadow: 0 0 0 0 rgba(100, 106, 74, 0.45);
    animation: tnr-pulse 2.2s ease-in-out infinite;
}

@keyframes tnr-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(100, 106, 74, 0.45); }
    60%  { box-shadow: 0 0 0 7px rgba(100, 106, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 106, 74, 0); }
}

.tnr-status-body {
    flex: 1;
    min-width: 0;
}

.tnr-status-text,
.tnr-feed-item-text {
    line-height: 1.6;
}

.tnr-status-archive-anchor,
.tnr-status-hashtag,
.tnr-status-url,
.tnr-feed-item-permalink,
.tnr-feed-item-content a,
.tnr-feed-item-text a {
    transition: color 0.15s ease, opacity 0.15s ease;
}

.tnr-status-archive-anchor {
    font-size: 0.75rem;
    color: var(--tnr-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.tnr-status-archive-anchor:hover,
.tnr-status-archive-anchor:focus {
    color: var(--tnr-link-hover);
    border-bottom-color: var(--tnr-link-hover);
}

.tnr-status-hashtag,
.tnr-status-url {
    color: var(--tnr-primary);
    text-decoration: none;
    font-weight: 600;
}

.tnr-status-hashtag:hover,
.tnr-status-url:hover,
.tnr-status-hashtag:focus,
.tnr-status-url:focus {
    color: var(--tnr-link-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tnr-status-layout-wrapper {
    width: 100%;
    padding: 2em 0;
}

.tnr-status-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.tnr-status-main-content {
    flex: 1 1 0;
    min-width: 300px;
    max-width: calc(70% - 20px);
}

.tnr-status-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 260px;
}

@media (max-width: 768px) {
    .tnr-status-layout-container {
        flex-direction: column;
        gap: 24px;
    }
    .tnr-status-main-content,
    .tnr-status-sidebar {
        max-width: 100%;
        flex-basis: 100%;
    }
}

.tnr-status-archive-header {
    margin-bottom: 2em;
}

.tnr-status-archive-header-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--tnr-surface);
    padding: 14px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--tnr-primary);
    box-shadow: 0 2px 10px rgba(31, 36, 25, 0.04);
}

.tnr-status-archive-icon {
    font-size: 1.5rem;
    color: var(--tnr-primary);
}

.tnr-status-archive-title {
    font-size: 1.9rem;
    margin: 0;
    color: var(--tnr-text);
}

.tnr-status-archive-description {
    font-size: 1rem;
    color: var(--tnr-muted);
    margin: 10px 0 0;
}

.tnr-status-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tnr-feed-item {
    display: flex;
    gap: 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--tnr-border);
    background: transparent;
    box-shadow: none;
}

.tnr-feed-item-time-col {
    flex-shrink: 0;
    width: 110px;
    color: var(--tnr-muted);
}

.tnr-feed-item-date {
    display: block;
    font-size: 0.82rem;
}

.tnr-feed-date-month {
    color: var(--tnr-text);
    font-weight: 700;
    display: block;
}

.tnr-feed-date-time {
    font-size: 0.7rem;
    display: block;
}

.tnr-feed-item-body-col {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 16px;
}

.tnr-feed-item-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tnr-primary);
    margin-top: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px var(--tnr-accent-soft);
}

.tnr-feed-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tnr-feed-item-text {
    font-size: 1.08rem;
    color: var(--tnr-text);
    margin: 0 0 10px;
}

.tnr-feed-item-text a,
.tnr-feed-item-content a {
    color: var(--tnr-primary);
}

.tnr-feed-item-text a:hover,
.tnr-feed-item-content a:hover,
.tnr-feed-item-text a:focus,
.tnr-feed-item-content a:focus {
    color: var(--tnr-link-hover);
}

.tnr-feed-item-permalink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--tnr-muted);
    text-decoration: none;
}

.tnr-feed-item-permalink:hover,
.tnr-feed-item-permalink:focus {
    color: var(--tnr-primary);
}

.tnr-feed-item-permalink svg {
    color: inherit;
}

.tnr-status-archive-pagination {
    margin-top: 30px;
    text-align: center;
}

.tnr-status-empty {
    padding: 32px 0;
    color: var(--tnr-muted);
}

.tnr-status-sidebar .widget {
    background: var(--tnr-surface);
    border: 1px solid var(--tnr-border);
    border-radius: 14px;
    padding: 1.2rem 1.1rem;
    box-shadow: 0 12px 25px rgba(31, 36, 25, 0.06);
}

.tnr-status-sidebar .widget-title,
.tnr-status-sidebar h2,
.tnr-status-sidebar h3 {
    margin: 0 0 0.7rem;
    font-size: 1rem;
    color: var(--tnr-text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tnr-status-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tnr-status-sidebar li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--tnr-border);
}

.tnr-status-sidebar li:last-child {
    border-bottom: none;
}

.tnr-status-sidebar a {
    color: var(--tnr-text);
    text-decoration: none;
}

.tnr-status-sidebar a:hover,
.tnr-status-sidebar a:focus {
    color: var(--tnr-primary);
}

@media (max-width: 640px) {
    .tnr-status-inner {
        gap: 10px;
        padding: 14px 14px 12px;
    }
    .tnr-feed-item {
        gap: 12px;
    }
    .tnr-feed-item-time-col {
        width: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnr-status-dot {
        animation: none;
    }
}

/* ─── SIDEBAR WIDGET: [status_widget] ──────────────────────────────────── */

.tnr-sw {
	--sw-accent:    #646a4a;
	--sw-accent-h:  #7d8560;
	--sw-text:      #2a2d24;
	--sw-muted:     #6b7280;
	--sw-border:    #e4e6df;
	--sw-bg:        #f7f7f4;
	--sw-dot-ring:  rgba(100, 106, 74, 0.25);
	font-family: inherit;
}

.tnr-sw-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px solid var(--sw-border);
}
.tnr-sw-item:first-of-type {
	padding-top: 0;
}

/* Dot */
.tnr-sw-indicator {
	flex-shrink: 0;
	padding-top: 5px;
}
.tnr-sw-dot {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sw-accent);
	box-shadow: 0 0 0 3px var(--sw-dot-ring);
}

/* Body */
.tnr-sw-body {
	flex: 1;
	min-width: 0;
}

.tnr-sw-text {
	margin: 0 0 5px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--sw-text);
	word-break: break-word;
}

/* Links and hashtags inside the widget excerpt */
.tnr-sw-text .tnr-status-url,
.tnr-sw-text .tnr-status-hashtag {
	color: var(--sw-accent);
	font-weight: 600;
}
.tnr-sw-text .tnr-status-url {
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-all;
}
.tnr-sw-text .tnr-status-url:hover,
.tnr-sw-text .tnr-status-hashtag:hover {
	color: var(--sw-accent-h);
}

.tnr-sw-date {
	display: block;
	font-size: 0.7rem;
	color: var(--sw-muted);
	letter-spacing: 0.01em;
}

/* View all button */
.tnr-sw-button {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 9px 0;
	background: var(--sw-accent);
	color: #fff;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.15s ease;
	box-sizing: border-box;
}
.tnr-sw-button:hover,
.tnr-sw-button:focus {
	background: var(--sw-accent-h);
	color: #fff;
}
