﻿:root {
    --font-body: 'Manrope', sans-serif;
    --font-heading: 'Sora', sans-serif;
    --page-bg: #f4f8f6;
    --page-bg-soft: #fffaf2;
    --surface: #ffffff;
    --surface-muted: #f8fbfe;
    --text-main: #0f172a;
    --text-muted: #5b6879;
    --line: #d8e3eb;
    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-soft: #ecfeff;
    --warm: #f59e0b;
    --danger: #dc2626;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.18), transparent 30%),
        radial-gradient(circle at 92% 6%, rgba(245, 158, 11, 0.2), transparent 34%),
        linear-gradient(180deg, var(--page-bg) 0%, #f6fbff 45%, var(--page-bg-soft) 100%);
}

.site-main {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.main-nav {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.site-brand {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-main) !important;
    text-decoration: none;
}

.brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.34);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.08rem;
}

.brand-text small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-chip {
    border-radius: 999px;
    border: 1px solid transparent;
    color: #334155;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-chip:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(15, 118, 110, 0.24);
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.nav-chip.active {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
}

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

.top-actions form {
    margin: 0;
}

.page-hero {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 254, 255, 0.85));
    border: 1px solid rgba(15, 118, 110, 0.12);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.5rem;
}

.hero-kicker {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.5vw + 1rem, 2rem);
}

.hero-subtitle {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
}

.count-pill {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.surface-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.surface-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.surface-card.no-hover:hover {
    transform: none;
}

.surface-muted {
    background: var(--surface-muted);
}

.surface-card-body {
    padding: 1.3rem 1.35rem;
}

.surface-card-header {
    padding: 1.1rem 1.35rem 0;
}

.surface-card-footer {
    padding: 0 1.35rem 1.15rem;
}

.post-card-image,
.post-card-placeholder {
    border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
    width: 100%;
    height: 205px;
    object-fit: cover;
}

.post-card-placeholder {
    background:
        linear-gradient(140deg, rgba(15, 118, 110, 0.14), rgba(245, 158, 11, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.5);
    font-size: 2.2rem;
}

.meta-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.content-snippet {
    color: #334155;
    line-height: 1.65;
    margin-bottom: 0;
}

.clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.empty-panel {
    text-align: center;
    padding: 3rem 1.2rem;
    border: 2px dashed #cbd8e3;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
}

.empty-panel i {
    font-size: 2.9rem;
    color: #94a3b8;
    margin-bottom: 0.7rem;
}

.content-readable {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1f2937;
}

.article-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
}

.comment-card,
.reply-card,
.thread-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.05rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.thread-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.thread-link:hover {
    color: inherit;
}

.thread-snippet {
    color: var(--text-muted);
    line-height: 1.55;
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.forum-stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.forum-stat-card small {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.forum-stat-card strong {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--accent-strong);
}

.forum-filter-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: 0.8rem;
    align-items: end;
}

.side-list-link {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    text-decoration: none;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.side-list-link:hover {
    border-color: rgba(15, 118, 110, 0.45);
    background: #f8fffd;
    color: #111827;
}

.side-list-link strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.side-list-link small {
    color: var(--text-muted);
}

.breadcrumb-modern {
    --bs-breadcrumb-divider-color: #94a3b8;
    margin-bottom: 0;
}

.breadcrumb-modern .breadcrumb-item a {
    text-decoration: none;
    color: var(--accent-strong);
}

.avatar,
.avatar-lg {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar {
    width: 46px;
    height: 46px;
}

.avatar-lg {
    width: 140px;
    height: 140px;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.avatar-fallback,
.avatar-fallback-lg {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-fallback {
    width: 46px;
    height: 46px;
}

.avatar-fallback-lg {
    width: 140px;
    height: 140px;
    font-size: 2.6rem;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.35);
}

.form-modern label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.input-modern,
.form-modern .form-control,
.form-modern .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.72rem 0.9rem;
    color: #111827;
}

textarea.input-modern,
.form-modern textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.input-modern:focus,
.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: rgba(15, 118, 110, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.14);
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.form-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hidden-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent-group {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    padding: 0.95rem 1rem;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    cursor: pointer;
    color: #1f2937;
    line-height: 1.55;
}

.consent-check input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.legal-shell {
    max-width: 900px;
    margin: 0 auto;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.legal-copy h2 {
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.section-heading {
    margin: 0;
    font-size: 1.32rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.stat-tile {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.stat-tile strong {
    display: block;
    font-size: 1.45rem;
    color: var(--accent-strong);
    line-height: 1;
}

.stat-tile span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.upload-box {
    border: 2px dashed #c8d6e5;
    border-radius: var(--radius-md);
    padding: 0.95rem;
    background: #f9fbfd;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
    border-color: rgba(15, 118, 110, 0.45);
    background: #f3faf9;
}

.upload-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.upload-picked {
    display: none;
    margin-top: 0.55rem;
    color: var(--accent-strong);
    font-weight: 600;
}

.weather-current-card {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(236, 254, 255, 0.9)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%);
}

.weather-temp-display {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1;
}

.weather-icon-badge {
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(245, 158, 11, 0.18));
    color: var(--accent-strong);
    font-size: 1.8rem;
}

.weather-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.weather-metric-tile,
.weather-day-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.weather-metric-tile small,
.weather-summary-strip small,
.weather-day-card small {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
}

.weather-metric-tile strong {
    font-size: 1.02rem;
    color: var(--accent-strong);
}

.weather-info-panel {
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.05rem;
}

.weather-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.weather-summary-strip > div {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
}

.weather-summary-strip strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
}

.weather-day-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.weather-day-card i {
    font-size: 1.35rem;
    color: var(--accent-strong);
}

.weather-day-temps {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.weather-day-temps span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.weather-day-temps small {
    font-size: 0.95rem;
}

.weather-table thead th {
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.weather-table tbody td {
    border-color: rgba(216, 227, 235, 0.8);
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.weather-row-icon {
    font-size: 1.2rem;
    color: var(--accent-strong);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    border: none;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.58rem 1.15rem;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.36);
}

.btn-warm {
    background: linear-gradient(135deg, #fb923c, var(--warm));
    border: none;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.58rem 1.15rem;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-warm:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.36);
}

.btn-soft {
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    padding: 0.52rem 1rem;
}

.btn-soft:hover {
    color: var(--accent-strong);
    border-color: rgba(15, 118, 110, 0.35);
    background: #fff;
}

.btn-danger-soft {
    border-radius: 999px;
    border: 1px solid rgba(220, 38, 38, 0.32);
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    font-weight: 600;
    padding: 0.42rem 0.95rem;
}

.btn-danger-soft:hover {
    background: rgba(220, 38, 38, 0.14);
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.45);
}

.text-link {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    color: var(--accent);
}

.footer-shell {
    margin-top: auto;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-copy {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.1rem;
}

.fade-up {
    animation: fadeUp 0.55s ease both;
}

.fade-up-delay {
    animation: fadeUp 0.75s ease both;
}

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

@media (max-width: 991px) {
    .main-nav .navbar-collapse {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .nav-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .top-actions {
        width: 100%;
        margin-top: 0.65rem;
    }

    .top-actions .btn {
        flex: 1 1 auto;
    }

    .page-hero {
        padding: 1.25rem;
    }

    .forum-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .surface-card-body,
    .surface-card-header,
    .surface-card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-hero {
        border-radius: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .forum-stats-grid {
        grid-template-columns: 1fr;
    }

    .weather-metrics-grid,
    .weather-summary-strip,
    .weather-day-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .weather-day-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
