/* TraffSoft Forum Single Post Styles */
/* Modern dark theme with glassmorphism effects */

:root {
    --bg-primary: #050505;
    --bg-card: rgba(10, 10, 15, 0.7);
    --bg-glass: rgba(10, 10, 15, 0.7);
    --bg-glass-hover: rgba(20, 20, 30, 0.8);
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --accent-blue: #00d4ff;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-radius: 20px;
    --dark-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

body.traffsoft {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Space Background */
.ts-bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 197, 94, 0.03) 0%, transparent 70%),
        var(--bg-primary);
    pointer-events: none;
}

/* Stars Layer */
.ts-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ts-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
}

.ts-star.small { width: 1px; height: 1px; }
.ts-star.medium { width: 2px; height: 2px; }
.ts-star.large { width: 3px; height: 3px; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.3); }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Shooting Stars */
.ts-shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ts-shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
    animation: shoot 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes shoot {
    0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 0; }
    5% { opacity: 1; }
    20% { transform: translateX(300px) translateY(300px) rotate(-45deg); opacity: 0; }
    100% { opacity: 0; }
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.ts-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    transition: background 0.3s ease;
}

.ts-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
}

.ts-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.ts-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.ts-logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.ts-logo span {
    font-size: 20px;
    font-weight: 700;
}

.ts-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ts-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ts-nav-links a:hover {
    color: var(--text-primary);
}

/* ========================================
   MAIN LAYOUT
   ======================================== */
.ts-main-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;

    /* было: padding: 0 24px 60px; */
    padding: 28px 24px 60px;

    min-height: 100vh;
}

/* Glass Effect */
.ts-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* Neon Glow Border */
.ts-neon-border {
    position: relative;
    overflow: hidden;
}

.ts-neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-green), var(--accent-blue));
    background-size: 400% 400%;
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    animation: gradient-rotate 8s ease infinite;
    opacity: 0.5;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Gradient Text */
.ts-gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   LEFT SIDEBAR - MODERN DESIGN
   ======================================== */
.ts-sidebar-left {
    width: 300px;
    min-width: 280px;
    max-width: 320px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 28px;
    height: fit-content;
    max-height: calc(100vh - 60px);
    overflow: visible;
}

/* Lucide Icons in Sidebar - IMPORTANT: limit size */
.ts-sidebar-left [data-lucide] {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

/* Brand Header - horizontal layout */
.ts-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dark-border);
}

.ts-brand-logo {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    max-width: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.ts-brand-info {
    flex: 1;
    min-width: 0;
}

.ts-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.ts-brand-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* Social Icons - centered */
.ts-social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ts-social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ts-social-icons a:hover {
    background: var(--accent-blue);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.ts-social-icons a [data-lucide] {
    width: 18px !important;
    height: 18px !important;
}

/* Live Search Box */
.ts-search-box {
    width: 100%;
    position: relative;
}

.ts-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.ts-search-wrapper:focus-within {
    background: rgba(20, 20, 28, 0.9);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 212, 255, 0.1);
}

.ts-search-box .ts-search-icon {
    padding: 12px 12px 12px 16px;
    padding-right: 0;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.ts-search-wrapper:focus-within .ts-search-icon {
    color: var(--accent-blue);
}

.ts-search-box input,
.ts-search-box input[type="text"],
.ts-search-box input[type="search"],
.ts-sidebar-left .ts-search-box input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 14px;
    color: var(--text-primary);
    outline: none !important;
    padding: 12px 16px 12px 12px !important;
    min-width: 0;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.ts-search-box input[type="search"]::-webkit-search-decoration,
.ts-search-box input[type="search"]::-webkit-search-cancel-button,
.ts-search-box input[type="search"]::-webkit-search-results-button,
.ts-search-box input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Убираем белый фон автозаполнения браузера */
.ts-search-box input:-webkit-autofill,
.ts-search-box input:-webkit-autofill:hover,
.ts-search-box input:-webkit-autofill:focus,
.ts-search-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 15, 20, 0.8) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.ts-search-box input::placeholder {
    color: var(--text-muted);
}

.ts-search-spinner {
    padding-right: 12px;
    color: var(--accent-blue);
}

.ts-search-spinner [data-lucide] {
    width: 18px !important;
    height: 18px !important;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search Results Dropdown */
.ts-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgb(18, 18, 24);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ts-search-results.active {
    display: block;
}

.ts-search-result-item,
.ts-search-result-item:hover,
.ts-search-result-item:visited,
.ts-search-result-item:active {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none !important;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--dark-border);
}

.ts-search-result-item:last-child {
    border-bottom: none;
}

.ts-search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
}

.ts-search-result-thumb {
    width: 50px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 212, 255, 0.1);
}

.ts-search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-search-result-content {
    flex: 1;
    min-width: 0;
}

.ts-search-result-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-search-result-excerpt {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-search-no-results,
.ts-search-hint {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Navigation Menu - Clean */
.ts-sidebar-nav {
    width: 100%;
}

.ts-sidebar-nav-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 12px;
}

.ts-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-sidebar-nav li {
    margin-bottom: 2px;
}

.ts-sidebar-nav a,
.ts-sidebar-nav a:visited,
.ts-sidebar-nav a:active {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
}

.ts-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none !important;
}

.ts-sidebar-nav a [data-lucide] {
    width: 18px !important;
    height: 18px !important;
    opacity: 0.6;
}

.ts-sidebar-nav a:hover [data-lucide] {
    opacity: 1;
}

/* CTA Button in Sidebar */
.ts-sidebar-cta,
.ts-sidebar-cta:visited,
.ts-sidebar-cta:active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-primary);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.ts-sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    text-decoration: none !important;
}

.ts-sidebar-cta [data-lucide] {
    width: 16px !important;
    height: 16px !important;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.ts-content-main {
    flex: 1;
    max-width: 860px;
    padding: 32px;
}

/* Post Meta */
.ts-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ts-post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.ts-post-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

/* Featured Image */
.ts-featured-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.ts-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.ts-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.ts-post-content p {
    margin-bottom: 1.5em;
}

.ts-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 2em 0 1em;
    color: var(--text-primary);
}

.ts-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
    color: var(--text-primary);
}

.ts-post-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
    color: var(--text-primary);
}

.ts-post-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.ts-post-content a:hover {
    border-bottom-color: var(--accent-blue);
}

.ts-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 24px 0;
}

.ts-post-content ul,
.ts-post-content ol {
    margin: 1.5em 0;
    padding-left: 24px;
}

.ts-post-content li {
    margin-bottom: 0.75em;
    padding-left: 8px;
}

.ts-post-content li::marker {
    color: var(--accent-blue);
}

/* Blockquote - Modern */
.ts-post-content blockquote {
    position: relative;
    border: none;
    padding: 24px 24px 24px 60px;
    margin: 2em 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(168, 85, 247, 0.08));
    border-radius: 16px;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
}

.ts-post-content blockquote::before {
    content: '"';
    position: absolute;
    left: 20px;
    top: 10px;
    font-size: 48px;
    font-family: Georgia, serif;
    color: var(--accent-blue);
    opacity: 0.5;
}

/* Info Box */
.ts-info-box {
    padding: 20px 24px;
    border-radius: 16px;
    margin: 1.5em 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ts-info-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border-left: 4px solid #f59e0b;
}

.ts-info-box.info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border-left: 4px solid var(--accent-blue);
}

.ts-info-box.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-left: 4px solid var(--accent-green);
}

.ts-info-box-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.ts-info-box-content {
    flex: 1;
}

/* Code Blocks */
.ts-post-content code {
    background: rgba(0, 212, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 14px;
}

.ts-post-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 24px;
    border-radius: 16px;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid var(--dark-border);
}

.ts-post-content pre code {
    background: transparent;
    padding: 0;
}

/* ========================================
   RIGHT SIDEBAR - PINNED POSTS
   ======================================== */
.ts-sidebar-right {
    width: 300px;
    min-width: 280px;
    max-width: 320px;
    padding: 24px;
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
}

.ts-pinned-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border);
}

.ts-pinned-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-pinned-post {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ts-pinned-post:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.ts-pinned-post a,
.ts-pinned-post a:hover,
.ts-pinned-post a:visited,
.ts-pinned-post a:active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    text-decoration: none !important;
    color: inherit;
}

.ts-pinned-post-thumb {
    width: 100%;
    height: 140px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 212, 255, 0.1);
}

.ts-pinned-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ts-pinned-post:hover .ts-pinned-post-thumb img {
    transform: scale(1.05);
}

.ts-pinned-post-content {
    padding: 0 12px 12px;
}

.ts-pinned-post-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   FOOTER
   ======================================== */
.ts-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--dark-border);
    padding: 60px 24px 40px;
    margin-top: 60px;
}

.ts-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ts-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.ts-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-footer-logo,
.ts-footer-logo:visited,
.ts-footer-logo:active,
.ts-footer-logo:hover {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--text-primary);
}

.ts-footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.ts-footer-logo span {
    font-size: 20px;
    font-weight: 700;
}

.ts-footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.ts-footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ts-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.ts-footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.ts-footer-nav h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.ts-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-footer-nav li {
    margin-bottom: 12px;
}

.ts-footer-nav a,
.ts-footer-nav a:visited,
.ts-footer-nav a:active {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ts-footer-nav a:hover {
    color: var(--text-primary);
    text-decoration: none !important;
}

.ts-footer-nav svg,
.ts-footer-nav [data-lucide] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ts-footer-social svg,
.ts-footer-social [data-lucide] {
    width: 20px;
    height: 20px;
}

.ts-footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ts-footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ts-footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.ts-footer-links {
    display: flex;
    gap: 24px;
}

.ts-footer-links a,
.ts-footer-links a:visited,
.ts-footer-links a:active {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.ts-footer-links a:hover {
    color: var(--text-secondary);
    text-decoration: none !important;
}

.ts-footer-disclaimer {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.ts-footer-disclaimer p {
    margin: 0 0 8px;
}

.ts-footer-disclaimer p:last-child {
    margin-bottom: 0;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-blue), var(--accent-purple));
    border-radius: 4px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1400px) {
    .ts-sidebar-left {
        width: 300px;
        min-width: 280px;
    }

    .ts-sidebar-right {
        width: 280px;
        min-width: 260px;
    }
}

@media (max-width: 1200px) {
    .ts-main-wrapper {
        padding: 0 16px 50px;
        gap: 20px;
    }

    .ts-sidebar-left {
        width: 280px;
        min-width: 260px;
        padding: 24px;
    }

    .ts-sidebar-right {
        width: 260px;
        min-width: 240px;
    }

    .ts-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .ts-footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .ts-main-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 80px 16px 40px;
        z-index: auto;
    }

    .ts-sidebar-left {
        width: 100%;
        max-width: 100%;
        position: static;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 20px;
    }

    .ts-brand-header {
        width: auto;
        border-bottom: none;
        padding-bottom: 0;
    }

    .ts-content-main {
        max-width: 100%;
        width: 100%;
    }

    .ts-sidebar-right {
        width: 100%;
        max-width: 100%;
        position: static;
        max-height: none;
        order: 3;
    }

    .ts-pinned-posts {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ts-pinned-post {
        width: calc(50% - 8px);
        max-width: 280px;
    }

    .ts-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ts-footer-brand {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .ts-main-wrapper {
        padding: 80px 12px 30px;
    }

    .ts-sidebar-left {
        flex-direction: column;
        padding: 16px;
    }

    .ts-profile-card {
        max-width: 100%;
    }

    .ts-post-title {
        font-size: 24px;
    }

    .ts-content-main {
        padding: 20px;
    }

    .ts-pinned-post {
        width: 100%;
        max-width: none;
    }

    .ts-footer {
        padding: 40px 16px 30px;
    }

    .ts-footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .ts-footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Hide on mobile/tablet classes */
@media (max-width: 992px) {
    .ts-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .ts-hide-mobile {
        display: none !important;
    }
}

/* Show on tablet/mobile */
.ts-show-tablet {
    display: none !important;
}

@media (max-width: 992px) {
    .ts-show-tablet {
        display: flex !important;
    }
}

/* Mobile Menu Button */
.ts-mobile-menu-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--dark-border);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ts-mobile-menu-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.ts-mobile-menu-btn [data-lucide] {
    width: 24px;
    height: 24px;
}

/* Mobile Overlay */
.ts-mobile-overlay {
    display: none;
}

/* Hide close button on desktop */
.ts-sidebar-close {
    display: none;
}

@media (max-width: 992px) {
    .ts-mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9990;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .ts-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .ts-sidebar-left {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 9999 !important;
        background: rgb(10, 10, 15) !important;
        border-right: none !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        padding: 70px 24px 24px 24px !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .ts-sidebar-left.open {
        left: 0 !important;
    }

    /* Center all sidebar elements on mobile */
    .ts-sidebar-left .ts-brand-header {
        justify-content: center !important;
        text-align: left !important;
    }

    .ts-sidebar-left .ts-brand-info {
        text-align: left !important;
    }

    .ts-sidebar-left .ts-social-icons {
        justify-content: center !important;
    }

    .ts-sidebar-left .ts-search-box {
        width: 100% !important;
        max-width: 280px !important;
    }

    .ts-sidebar-left .ts-search-box input {
        text-align: center !important;
    }

    .ts-sidebar-left .ts-search-box input::placeholder {
        text-align: center !important;
    }

    .ts-sidebar-left .ts-search-wrapper {
        justify-content: center !important;
    }

    .ts-sidebar-left .ts-search-icon {
        display: none !important;
    }

    .ts-sidebar-left .ts-sidebar-nav {
        width: 100% !important;
        max-width: 400px !important;
        text-align: center !important;
    }

    .ts-sidebar-left .ts-sidebar-nav-title {
        padding-left: 0 !important;
        text-align: center !important;
    }

    .ts-sidebar-left .ts-sidebar-nav a {
        justify-content: center !important;
    }

    .ts-sidebar-left .ts-sidebar-divider {
        justify-content: center !important;
    }

    .ts-sidebar-left .ts-sidebar-cta {
        justify-content: center !important;
        width: 100% !important;
        max-width: 400px !important;
    }

    .ts-sidebar-close {
        display: flex !important;
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid var(--dark-border) !important;
        color: var(--text-secondary) !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        z-index: 10 !important;
    }

    .ts-sidebar-close:hover {
        background: rgba(239, 68, 68, 0.2) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #ef4444 !important;
    }

    .ts-sidebar-close [data-lucide] {
        width: 20px !important;
        height: 20px !important;
    }
}



/* Disclaimer link style */
.ts-footer-disclaimer a {
    color: var(--accent-blue);
    text-decoration: none;
}

.ts-footer-disclaimer a:hover {
    text-decoration: underline;
}

/* ========================================
   POSTS GRID & CARDS
   ======================================== */

.ts-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.ts-post-card {
    background: var(--bg-glass);
    border-radius: var(--border-radius);
    border: 1px solid var(--dark-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ts-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ts-post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ts-post-card-thumb {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.ts-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ts-post-card:hover .ts-post-card-thumb img {
    transform: scale(1.05);
}

.ts-post-card-content {
    padding: 20px;
}

.ts-post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ts-post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ts-post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ts-post-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts-post-card-date svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   PAGINATION
   ======================================== */

.ts-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.ts-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ts-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-glass);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ts-pagination .page-numbers:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

.ts-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-color: transparent;
    color: white;
}

.ts-pagination .page-numbers svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   NO POSTS / EMPTY STATE
   ======================================== */

.ts-no-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.ts-no-posts svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.ts-no-posts p {
    font-size: 1.1rem;
    margin: 4px 0;
}

/* ========================================
   404 ERROR PAGE
   ======================================== */

.ts-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
}

.ts-error-icon {
    margin-bottom: 24px;
}

.ts-error-icon svg {
    width: 80px;
    height: 80px;
    color: var(--accent-purple);
    opacity: 0.8;
}

.ts-error-title {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.ts-error-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ts-error-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
}

.ts-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ts-error-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.ts-error-btn svg {
    width: 20px;
    height: 20px;
}

/* WebApp Expired Session */
.ts-error-title-small {
    font-size: 4rem;
}

.ts-webapp-expired .ts-error-icon svg {
    color: var(--accent-orange, #f59e0b);
}

@media (max-width: 768px) {
    .ts-error-title-small {
        font-size: 3rem;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .ts-page-title {
        font-size: 1.5rem;
    }

    .ts-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ts-post-card-thumb {
        height: 180px;
    }

    .ts-error-title {
        font-size: 4rem;
    }

    .ts-error-subtitle {
        font-size: 1.2rem;
    }
}


/* ========================================
   POST CARD BADGE (Category on thumbnail)
   ======================================== */

.ts-post-card-badge,
.ts-post-card-badge:visited {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;
    border-radius: 999px;

    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(255,255,255,0.12);

    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ts-post-card-badge:hover {
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(10, 10, 15, 0.85);
}


/* ========================================
   SIDEBAR CATEGORIES - Active state
   ======================================== */

.ts-sidebar-cats {
    margin-top: 0;
}

.ts-sidebar-cats li.is-active > a {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.ts-sidebar-cats li.is-active > a [data-lucide] {
    opacity: 1;
}

/* Sidebar Divider */
.ts-sidebar-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    padding: 0 4px;
}

.ts-sidebar-divider::before,
.ts-sidebar-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ts-sidebar-divider::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
}

.ts-sidebar-divider::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.ts-sidebar-divider span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    white-space: nowrap;
}

