:root {
    --ivory: #F9F6F0;
    --charcoal: #2A2A2A;
    --taupe: #D8C4B6;
    --gold: #C6A969;
    --soft-black: #1A1A1A;
    --white: #FFFFFF;
    --gray-text: #6b6b6b;
    --border-soft: #e9e3d8;
    --success: #4c8c5c;
    --danger: #b5453b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--ivory);
    color: var(--charcoal);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

a { color: inherit; }

/* ---------- Navbar (matches main site) ---------- */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 3rem;
    background-color: rgba(249, 246, 240, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}
.logo {
    font-size: 1.6rem; font-weight: 500; color: var(--charcoal);
    text-decoration: none; font-family: 'Playfair Display', serif; letter-spacing: 1px;
}
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: var(--charcoal); font-weight: 400; font-size: 0.88rem; letter-spacing: 0.5px; transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.tc-nav-icon a { position: relative; font-size: 1.1rem; }
.tc-notif-dot {
    position: absolute; top: -8px; right: -10px; background: var(--danger); color: #fff;
    font-size: 0.6rem; padding: 1px 5px; border-radius: 10px; font-weight: 600;
}
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; color: var(--charcoal); cursor: pointer; z-index: 1001; }

@media (max-width: 900px) {
    .navbar { padding: 1rem 1.5rem; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 75%; max-width: 320px;
        background: var(--ivory); flex-direction: column; justify-content: flex-start;
        padding: 6rem 2rem; transition: right .4s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 0 0 1.5rem 0; }
}

/* ---------- Flash messages ---------- */
.tc-flash { margin-top: 78px; padding: 0.9rem 1.5rem; }
.tc-flash-inner {
    max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 1.2rem; border-radius: 6px; font-size: 0.9rem;
}
.tc-flash-success .tc-flash-inner { background: #eaf3ec; color: var(--success); border: 1px solid #cde3d2; }
.tc-flash-error .tc-flash-inner { background: #f8e9e7; color: var(--danger); border: 1px solid #f0cfca; }
.tc-flash-info .tc-flash-inner { background: #eef2fa; color: #3b5a8c; border: 1px solid #d6e0f2; }
.tc-flash-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: inherit; }

/* ---------- Layout shell ---------- */
.tc-main { padding-top: 78px; min-height: 70vh; }
.tc-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Back link ---------- */
.tc-back-link-wrap { padding-top: 1.2rem; }
.tc-back-link {
    display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
    color: var(--gray-text); font-size: 0.82rem; font-weight: 600; transition: color .2s;
}
.tc-back-link:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.tc-hero {
    background: linear-gradient(135deg, var(--soft-black) 0%, #34302b 100%);
    color: var(--white); padding: 4rem 1.5rem 3rem; text-align: center;
}
.tc-hero h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 1rem; }
.tc-hero p { max-width: 640px; margin: 0 auto 2rem; color: #e8e2d6; font-size: 1.02rem; }
.tc-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.tc-btn {
    display: inline-block; padding: 0.85rem 1.8rem; border-radius: 4px; text-decoration: none;
    font-size: 0.85rem; letter-spacing: 0.5px; font-weight: 600; cursor: pointer; border: none;
    transition: all .3s ease;
}
.tc-btn-gold { background: var(--gold); color: var(--soft-black); }
.tc-btn-gold:hover { background: #b7995c; }
.tc-btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.tc-btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.tc-btn-dark { background: var(--soft-black); color: var(--white); }
.tc-btn-dark:hover { background: #333; }
.tc-btn-small { padding: 0.5rem 1rem; font-size: 0.75rem; }
.tc-btn-danger { background: var(--danger); color: #fff; }
.tc-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Stats ---------- */
.tc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: -2.5rem auto 3rem; max-width: 1100px; padding: 0 1.5rem; }
.tc-stat-card {
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 8px;
    text-align: center; padding: 1.4rem 0.8rem; box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.tc-stat-card .num { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold); display: block; }
.tc-stat-card .label { font-size: 0.75rem; color: var(--gray-text); text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 800px) {
    .tc-stats { grid-template-columns: repeat(2, 1fr); margin-top: -1.5rem; }
}

/* ---------- 3-column layout ---------- */
.tc-columns {
    display: grid; grid-template-columns: 240px 1fr 280px; gap: 1.8rem;
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 3rem;
    align-items: flex-start;
}
@media (max-width: 1050px) {
    .tc-columns { grid-template-columns: 1fr; }
    .tc-sidebar-left { order: 2; }
    .tc-sidebar-right { order: 3; }
    .tc-feed { order: 1; }
}

.tc-sidebar { background: var(--white); border: 1px solid var(--border-soft); border-radius: 8px; padding: 1.2rem; position: sticky; top: 96px; }
@media (max-width: 1050px) { .tc-sidebar { position: static; } }

.tc-side-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.tc-side-link {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; border-radius: 6px;
    text-decoration: none; color: var(--charcoal); font-size: 0.85rem; transition: background .2s;
}
.tc-side-link i { width: 18px; color: var(--gold); }
.tc-side-link:hover { background: var(--ivory); }
.tc-side-link.active { background: var(--taupe); font-weight: 600; }
.tc-side-link-admin { margin-top: 0.6rem; border-top: 1px solid var(--border-soft); padding-top: 0.9rem; color: var(--danger); }
.tc-side-link-admin i { color: var(--danger); }

/* ---------- Widgets (right sidebar) ---------- */
.tc-widget { margin-bottom: 1.6rem; }
.tc-widget:last-child { margin-bottom: 0; }
.tc-widget-title { font-size: 1rem; margin-bottom: 0.7rem; }
.tc-widget-empty { font-size: 0.8rem; color: var(--gray-text); }
.tc-widget-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.tc-widget-list a { text-decoration: none; font-size: 0.83rem; color: var(--charcoal); display: block; }
.tc-widget-list a:hover { color: var(--gold); }
.tc-alert-type { display: block; font-size: 0.65rem; text-transform: uppercase; color: var(--gold); letter-spacing: 0.5px; margin-bottom: 2px; }
.tc-qna-card { background: var(--ivory); border-radius: 6px; padding: 0.9rem; }
.tc-qna-title { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; }
.tc-qna-time { font-size: 0.78rem; color: var(--gray-text); margin-bottom: 0.7rem; }
.tc-trending-country { text-decoration: none; color: var(--charcoal); display: block; font-weight: 600; }
.tc-trending-country i { color: #d97a3f; margin-right: 0.4rem; }
.tc-trending-count { display: block; font-size: 0.75rem; color: var(--gray-text); font-weight: 400; margin-top: 0.2rem; }

/* ---------- Feed / cards ---------- */
.tc-feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.8rem; }
.tc-feed-header h2 { font-size: 1.3rem; }

.tc-pinned-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 0.5rem; }

.tc-card {
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 8px;
    padding: 1.3rem 1.4rem; margin-bottom: 1rem; transition: box-shadow .2s;
}
.tc-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.tc-card-title { font-size: 1.08rem; margin-bottom: 0.4rem; }
.tc-card-title a { text-decoration: none; color: var(--charcoal); }
.tc-card-title a:hover { color: var(--gold); }
.tc-card-excerpt { font-size: 0.88rem; color: var(--gray-text); margin-bottom: 0.8rem; }
.tc-card-meta { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.76rem; color: var(--gray-text); align-items: center; }
.tc-card-meta .tc-tag { background: var(--ivory); padding: 0.2rem 0.6rem; border-radius: 20px; color: var(--charcoal); font-weight: 600; }
.tc-card-meta i { margin-right: 0.25rem; color: var(--gold); }

.tc-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.3rem; flex-wrap: wrap; border-bottom: 1px solid var(--border-soft); padding-bottom: 0; }
.tc-tab {
    padding: 0.6rem 1.1rem; font-size: 0.83rem; text-decoration: none; color: var(--gray-text);
    border-bottom: 2px solid transparent; font-weight: 600;
}
.tc-tab.active, .tc-tab:hover { color: var(--soft-black); border-color: var(--gold); }

.tc-empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-text); }
.tc-empty-state i { font-size: 2rem; color: var(--taupe); margin-bottom: 0.8rem; display: block; }

/* ---------- Category pills ---------- */
.tc-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.tc-category-card {
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 8px; text-decoration: none;
    color: var(--charcoal); padding: 1.4rem 1rem; text-align: center; transition: all .2s;
}
.tc-category-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.tc-category-card i { font-size: 1.5rem; color: var(--gold); margin-bottom: 0.6rem; display: block; }
.tc-category-card span { font-weight: 600; font-size: 0.9rem; }

/* ---------- Discussion page ---------- */
.tc-discussion-header { margin-bottom: 1rem; }
.tc-discussion-title { font-size: 1.7rem; margin-bottom: 0.6rem; }
.tc-discussion-content { font-size: 0.98rem; line-height: 1.85; margin: 1.2rem 0; white-space: pre-line; }
.tc-action-bar { display: flex; gap: 1.2rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.tc-action-btn {
    background: none; border: none; cursor: pointer; font-size: 0.85rem; color: var(--gray-text);
    display: flex; align-items: center; gap: 0.4rem; text-decoration: none;
}
.tc-action-btn:hover { color: var(--gold); }
.tc-action-btn.liked { color: var(--danger); }
.tc-action-btn.bookmarked { color: var(--gold); }

.tc-reply { border-top: 1px solid var(--border-soft); padding: 1.1rem 0; }
.tc-reply-meta { font-size: 0.78rem; color: var(--gray-text); margin-bottom: 0.4rem; }
.tc-reply-meta strong { color: var(--charcoal); }

/* ---------- Forms ---------- */
.tc-form-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: 8px; padding: 1.8rem; max-width: 640px; margin: 2rem auto; }
.tc-form-card h1, .tc-form-card h2 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.tc-field { margin-bottom: 1.1rem; }
.tc-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; }
.tc-field input, .tc-field select, .tc-field textarea {
    width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border-soft); border-radius: 6px;
    font-family: inherit; font-size: 0.9rem; background: var(--ivory);
}
.tc-field input:focus, .tc-field select:focus, .tc-field textarea:focus { outline: none; border-color: var(--gold); }
.tc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .tc-field-row { grid-template-columns: 1fr; } }
.tc-form-note { font-size: 0.82rem; text-align: center; margin-top: 1rem; color: var(--gray-text); }
.tc-form-note a { color: var(--gold); text-decoration: none; font-weight: 600; }
.tc-error-box { background: #f8e9e7; color: var(--danger); border: 1px solid #f0cfca; padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1.1rem; }

/* ---------- Search ---------- */
.tc-search-bar { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.tc-search-bar input { flex: 1; padding: 0.9rem 1.1rem; border: 1px solid var(--border-soft); border-radius: 6px; font-size: 0.95rem; }
.tc-search-bar button { padding: 0 1.4rem; border-radius: 6px; }

/* ---------- Polls ---------- */
.tc-poll-option { position: relative; border: 1px solid var(--border-soft); border-radius: 6px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; cursor: pointer; overflow: hidden; }
.tc-poll-option-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--taupe); opacity: 0.5; z-index: 0; }
.tc-poll-option-label { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; }

/* ---------- Budget ---------- */
.tc-budget-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.tc-budget-table td { padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; }
.tc-budget-table td:last-child { text-align: right; font-weight: 600; }
.tc-budget-total td { font-weight: 700; font-size: 1rem; border-top: 2px solid var(--charcoal); border-bottom: none; }

/* ---------- Stories ---------- */
.tc-story-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; margin: 1rem 0; }
.tc-story-images img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; }

/* ---------- Flight deals ---------- */
.tc-deal-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.tc-deal-route { font-weight: 700; font-size: 1.05rem; }
.tc-deal-price { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); }

/* ---------- Admin ---------- */
.tc-admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; }
.tc-admin-table th, .tc-admin-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 0.85rem; }
.tc-admin-table th { background: var(--soft-black); color: var(--white); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.5px; }
.tc-admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tc-badge-pinned { background: var(--gold); color: var(--soft-black); font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; text-transform: uppercase; }

/* ---------- Footer ---------- */
.tc-footer { background: var(--soft-black); color: #cfcac0; padding: 2.5rem 1.5rem 6.5rem; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 1.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: #cfcac0; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.tc-footer-copy { font-size: 0.75rem; color: #8a857c; }

/* ---------- Mobile bottom nav ---------- */
.tc-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: var(--white); border-top: 1px solid var(--border-soft);
    justify-content: space-around; padding: 0.5rem 0 0.6rem;
}
.tc-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--gray-text); font-size: 0.62rem; }
.tc-bottom-nav a i { font-size: 1.1rem; }
@media (max-width: 700px) {
    .tc-bottom-nav { display: flex; }
    .tc-footer { padding-bottom: 6.5rem; }
}
