:root {
    /* #7193ff */
    --tc-orange: #EC2029;
    --tc-orange-hover: #189D49;
    --tc-blue: #0d6efd;
    --tc-dark: #1a1a1b;
    --tc-bg: #f6f7f8;
    --tc-card-border: #e4e6e8;
    --tc-text-muted: #7c7c7c;
    --tc-upvote: #189D49;
    --tc-downvote:  #1E9FD8;
}

* { box-sizing: border-box; }

body {
    background-color: var(--tc-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tc-dark);
}

a { color: var(--tc-blue); }

/* ===== Navbar ===== */
.tc-navbar {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    padding: 0.6rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 1030;
}

.logo{
    width: 220px;
    object-fit: cover;
   
}



.tc-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff !important;
    text-decoration: none;
    gap: 0.6rem;
}


.tc-search-form {
    width: 100%;
    max-width: 480px;
}
.tc-search-form .input-group {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}
.tc-search-form input {
    box-shadow: none !important;
}

.tc-btn-create {
    background: var(--tc-dark);
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    border: none;
    transition: 0.15s;
}
.tc-btn-create:hover { background: #000; color: #fff; }

.tc-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

/* Sidebar */
.tc-sidebar{
    max-height:calc(100vh - 120px);
    overflow:hidden;
}

/* ONLY CATEGORY AREA SCROLL */
.tc-category-scroll{
    max-height:calc(100vh - 360px); /* apne layout ke hisaab se 320-420 kar sakte ho */
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:4px;
}

/* Scrollbar */

.tc-category-scroll::-webkit-scrollbar{
    width:4px;
}

.tc-category-scroll::-webkit-scrollbar-thumb{
    background:var(--tc-orange);
    border-radius:20px;
}

.tc-category-scroll::-webkit-scrollbar-track{
    background:transparent;
}

.tc-category-scroll{
    scrollbar-width: thin ;
    scrollbar-color: var(--tc-orange) transparent;
    
}


/* ===== Layout ===== */
.tc-main-container {
    max-width: 1500px;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

/* ===== Cards ===== */
.tc-card {
    background: #ffffff;
    /* border: 1px solid var(--tc-card-border); */
    border-radius: 10px;
}

.tc-widget-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--tc-text-muted);
    font-weight: 700;
}

.tc-about-header {
    background: linear-gradient(135deg, #000000 0%, #3c404c 100%);
    margin: -1rem -1rem 0 -1rem;
}

.tc-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}


.list-group-item.active {
    background-color: #fff2ec;
    color: var(--tc-orange);
    border-color: transparent;
    font-weight: 600;
}


/* ===== Topic Card ===== */
.tc-topic-card {
    background: #fff;
    border: 1px solid var(--tc-card-border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s, border-color 0.15s;
    overflow: hidden;
}
.tc-topic-card:hover {
    border-color: #bbb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.tc-vote-col {
    background: #f8f9fa;
    width: 48px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0;
    border-right: 1px solid var(--tc-card-border);
}

.tc-vote-btn {
    background: none;
    border: none;
    color: #878a8c;
    padding: 2px;
    line-height: 1;
    font-size: 1.2rem;
    transition: 0.15s;
}
.tc-vote-btn:hover { color: var(--tc-orange); }
.tc-vote-btn.voted-up { color: var(--tc-upvote); }
.tc-vote-btn.voted-down { color: var(--tc-downvote); }

.tc-vote-score {
    font-weight: 700;
    font-size: 0.85rem;
    margin: 2px 0;
}

.tc-topic-body { padding: 0.85rem 1rem; }

.tc-topic-meta {
    font-size: 0.78rem;
    color: var(--tc-text-muted);
}

.tc-topic-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tc-dark);
    text-decoration: none;
}
.tc-topic-title:hover { color: var(--tc-orange); }

.tc-badge-category {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}

.tc-topic-excerpt {
    color: #4a4a4a;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.tc-topic-footer {
    font-size: 0.82rem;
    color: var(--tc-text-muted);
}
.tc-topic-footer a { color: var(--tc-text-muted); text-decoration: none; }
.tc-topic-footer a:hover { color: var(--tc-dark); }

.tc-pinned-badge {
    color: #2e7d32;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ===== Comments ===== */
.tc-comment {
    border-left: 2px solid #edeff1;
    padding-left: 1rem;
    margin-top: 1rem;
}
.tc-comment-body {
    font-size: 0.92rem;
}
.tc-comment .tc-comment {
    margin-left: 0.25rem;
}

/* ===== Auth pages ===== */
.tc-auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-auth-card {
    max-width: 440px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--tc-card-border);
    border-radius: 14px;
    padding: 2.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ===== Buttons ===== */
.btn-tc-primary {
    background: var(--tc-orange);
    border-color: var(--tc-orange);
    color: #fff;
    font-weight: 600;
}


.btn-tc-primary:hover {
    background: var(--tc-orange-hover);
    border-color: var(--tc-orange-hover);
    color: #fff;
}

/* ===== Footer ===== */
.tc-footer {
    background: #fff;
    border-top: 1px solid var(--tc-card-border);
}

/* ===== Alerts ===== */
.tc-alert { border-radius: 10px; border: none; }

/* ===== Admin ===== */
.tc-stat-card {
    background: #fff;
    border: 1px solid var(--tc-card-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.tc-stat-value { font-size: 1.8rem; font-weight: 800; }
.tc-stat-label { color: var(--tc-text-muted); font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .tc-main-container { padding-left: 0.5rem; padding-right: 0.5rem; }
    .tc-topic-title { font-size: 1rem; }
    .tc-auth-card { padding: 1.5rem; margin: 1rem; }
}
