@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --primary: #29b6d8;
    --primary-dark: #1a9ab8;
    --primary-light: #e8f8fc;
    --accent: #ff6b6b;
    --urgent: #ff4444;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e9f0;
    --bg: #f7f9fc;
    --white: #ffffff;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 8px 32px rgba(41, 182, 216, 0.15);
    --radius: 14px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ─── NAVBAR ─── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.logo svg {
    width: 22px;
    height: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.nav-icon-btn:hover {
    background: var(--border);
    color: var(--text);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--primary-light);
}

/* ─── LAYOUT ─── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 2rem 0;
}

.page-layout.full {
    grid-template-columns: 1fr;
}

/* ─── CATEGORY TABS ─── */
.tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ─── FEED CARDS ─── */
.feed-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    animation: fadeUp 0.4s ease both;
}

.feed-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-card:nth-child(1) {
    animation-delay: 0.05s;
}

.feed-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feed-card:nth-child(3) {
    animation-delay: 0.15s;
}

.feed-card:nth-child(4) {
    animation-delay: 0.2s;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.card-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.card-meta {
    flex: 1;
}

.card-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.card-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    margin-left: auto;
}

.share-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text);
}

.card-body {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.73rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-offer {
    margin-left: auto;
    padding: 7px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-offer:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
}

/* ─── SIDEBAR ─── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.sidebar-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.impact-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.impact-stat .value {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.impact-stat .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.impact-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.impact-desc strong {
    color: var(--primary);
}

.safety-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.safety-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.safety-list li::before {
    content: '●';
    color: var(--primary);
    font-size: 0.5rem;
    margin-top: 6px;
    flex-shrink: 0;
}

.safety-link {
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-top: 0.75rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), #1a9ab8);
    color: white;
    border: none !important;
}

.cta-card h3 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.cta-card h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.82rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.btn-cta {
    width: 100%;
    padding: 10px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-cta:hover {
    transform: scale(1.02);
}

/* ─── HELP OTHERS PAGE ─── */
.help-header {
    padding: 2rem 0 1rem;
}

.help-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.help-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.help-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.help-stat {
    text-align: right;
}

.help-stat .val {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.help-stat .lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--primary);
}

.search-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    background: transparent;
    color: var(--text);
}

.view-btns {
    display: flex;
    gap: 4px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.view-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    animation: fadeUp 0.4s ease both;
    position: relative;
}

.help-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.help-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--bg);
}

.help-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), #e8e0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.urgent-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--urgent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-card-body {
    padding: 1rem;
}

.help-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.help-card-title {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.help-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.help-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.help-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.help-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-details {
    margin-left: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ─── POST DETAIL ─── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-sep {
    color: var(--border);
}

.post-title {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    max-height: 320px;
    object-fit: cover;
}

.post-section-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.post-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.post-body .highlight {
    font-weight: 600;
    color: var(--text);
}

.post-sidebar-top .btn-offer {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-share {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.save-share button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.save-share button:hover {
    color: var(--primary);
}

.urgency-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.urgency-badge {
    padding: 3px 10px;
    border-radius: 12px;
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
    font-size: 0.78rem;
}

.poster-card {
    text-align: center;
}

.poster-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 0.5rem;
}

.poster-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.poster-since {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.poster-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.poster-stat .val {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.poster-stat .lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.btn-view-profile {
    width: 100%;
    padding: 8px;
    background: var(--primary-light);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-profile:hover {
    background: var(--primary);
    color: white;
}

.similar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.similar-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.similar-item:last-child {
    border-bottom: none;
}

.similar-item:hover .similar-item-title {
    color: var(--primary);
}

.similar-item-title {
    font-size: 0.87rem;
    font-weight: 600;
    transition: color 0.2s;
}

.similar-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

/* ─── COMMENTS ─── */
.comments-section {
    margin-top: 2rem;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comments-title {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.comments-sort {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.comments-sort strong {
    color: var(--text);
}

.comment-input-area {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.comment-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-textarea {
    flex: 1;
    border: none;
    outline: none;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    resize: none;
    min-height: 80px;
    width: 100%;
}

.comment-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-post {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-post:hover {
    background: var(--primary-dark);
}

.comment {
    display: flex;
    gap: 12px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    animation: fadeUp 0.3s ease both;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6c5ce7, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.comment-content {
    flex: 1;
}

.comment-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.88rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-helpful {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
    padding: 0;
}

.comment-helpful:hover {
    color: var(--primary);
}

.comment-helpful.liked {
    color: var(--primary);
}

.comment-reply-btn {
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
}

.comment-reply-btn:hover {
    color: var(--primary);
}

.reply {
    margin-left: 46px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 10px;
}

.reply .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
}

/* ─── ASK FOR HELP ─── */
.ask-header {
    padding: 1.5rem 0 0.5rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.ask-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ask-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.form-tip {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.urgency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.urgency-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.urgency-option:hover {
    border-color: var(--primary);
}

.urgency-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.urgency-option.selected-high {
    border-color: var(--urgent);
    background: #fff0f0;
}

.urgency-option .urgency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 auto 6px;
}

.urgency-option .urgency-name {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.urgency-option .urgency-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.upload-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.upload-input {
    display: none;
}

.preview-imgs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.preview-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--border);
}

.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cat-chip {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    background: var(--white);
    transition: all 0.2s;
}

.cat-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.anon-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.anon-checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.anon-label {
    font-size: 0.85rem;
}

.anon-label p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff0f0;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #dc2626;
    margin: 0.75rem 0;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.25rem;
}

.btn-cancel {
    padding: 10px 24px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-cancel:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-submit {
    padding: 10px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* helpful tips sidebar card */
.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.tip-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.tip-icon svg {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.community-power-card {
    background: linear-gradient(135deg, var(--primary), #1a9ab8);
    color: white;
    border: none !important;
    padding: 1.25rem;
}

.community-power-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 0.4rem;
}

.community-power-card p {
    font-size: 0.82rem;
    opacity: 0.9;
}

.community-avatars {
    display: flex;
    margin-top: 0.75rem;
}

.community-avatars .c-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -6px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    font-weight: 600;
}

.community-avatars .c-av:first-child {
    margin-left: 0;
}

/* ─── PAGE HEADER ─── */
.page-header {
    padding: 1.5rem 0 0.5rem;
}

.page-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 9px 22px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    padding: 9px 22px;
    background: var(--primary);
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* ─── TOAST ─── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: var(--urgent);
}

/* ─── MY POSTS ─── */
.my-posts-empty {
    text-align: center;
    padding: 4rem 2rem;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 220px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-col ul li a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-emergency {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-emergency p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-emergency a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── FAB ─── */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(41, 182, 216, 0.4);
    transition: all 0.2s;
    z-index: 50;
}

.fab:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .grid-view {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .urgency-options {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0 1rem;
        gap: 1rem;
    }

    .nav-links .nav-link span {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }
}