/* ═══ CUSTOM THEME STYLES ═══════════════════════════ */

/* Global tech background behind content blocks */
body {
    position: relative;
    background-color: #eef2f7 !important;
    background-image:
        radial-gradient(circle at 18% 12%, rgba(20, 126, 160, 0.10), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(86, 112, 145, 0.10), transparent 30%),
        linear-gradient(180deg, #f2f6fa 0%, #e8eef6 100%) !important;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.62;
    background-image:
        radial-gradient(circle, rgba(20, 126, 160, 0.22) 0 1.4px, transparent 1.6px),
        linear-gradient(90deg, rgba(23, 32, 51, 0.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(23, 32, 51, 0.055) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 46%, rgba(20, 126, 160, 0.075) 46% 47%, transparent 47% 100%),
        linear-gradient(45deg, transparent 0 49%, rgba(23, 32, 51, 0.045) 49% 50%, transparent 50% 100%);
    background-size: 72px 72px, 36px 36px, 36px 36px, 180px 180px, 220px 220px;
    background-position: 0 0, 0 0, 0 0, 16px 10px, -40px 30px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ts-two-col,
.ts-footer,
.ts-topbar,
.ts-bottombar,
.ts-mobile-drawer,
.ts-mobile-overlay {
    position: relative;
    z-index: 1;
}

.ts-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 6, 13, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ts-mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.ts-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(82vw, 320px);
    height: 100dvh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #070a16;
    border-right: 1px solid rgba(167, 139, 250, 0.18);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
}

.ts-mobile-drawer.open {
    transform: translateX(0);
}

.ts-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hs-text, #eef0ff);
    text-decoration: none;
}

.ts-drawer-logo .ts-logo-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    border-radius: 50%;
}

.ts-drawer-logo .ts-logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ts-drawer-logo .ts-logo-text {
    font-family: var(--font-display, Georgia, serif);
    font-size: 19px;
    font-weight: 800;
    color: var(--hs-text, #eef0ff);
}

.ts-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #aeb4d0;
    cursor: pointer;
}

.ts-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.ts-drawer-link {
    padding: 11px 18px;
    color: #a5abc7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.ts-drawer-link:hover,
.ts-drawer-link.active {
    color: var(--hs-accent, #a78bfa);
    background: rgba(167, 139, 250, 0.12);
}

@media (min-width: 901px) {
    .ts-mobile-overlay,
    .ts-mobile-drawer {
        display: none !important;
    }
}

.ts-news-feed-heading {
    display: inline-flex !important;
    align-items: center;
    width: auto;
    padding: 8px 12px !important;
    margin: 0 0 16px !important;
    color: #25324a !important;
    background: linear-gradient(90deg, #e7f6fa, rgba(231, 246, 250, 0.35));
    border: 1px solid #bfe5ee !important;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(20, 126, 160, 0.10);
    letter-spacing: 0.08em !important;
}

/* Top Bar */
.top-bar {
    background: #0c0e1a;
    color: #c6cae0;
    font-size: 12px;
    padding: 6px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-date {
    color: #fff;
    font-weight: 500;
}
.top-bar-social a {
    color: #c6cae0;
    margin-left: 10px;
    text-decoration: none;
}
.top-bar-social a:hover {
    color: #fff;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 3px solid #a78bfa;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-title, .logo a {
    font-size: 28px;
    font-weight: 800;
    color: #0c0e1a;
    text-decoration: none;
    font-family: Georgia, serif;
}
.site-title:hover, .logo a:hover {
    color: #a78bfa;
}

/* Primary Nav */
.primary-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.primary-nav .nav-menu a {
    color: #c6cae0;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.primary-nav .nav-menu a:hover {
    color: #a78bfa;
}

/* Header actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #c6cae0;
}
.icon-btn:hover {
    color: #a78bfa;
}

/* Category Nav Bar */
.category-nav {
    background: #a78bfa;
    padding: 0;
}
.category-nav .container {
    display: flex;
    overflow-x: auto;
}
.category-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.category-menu li a,
.category-menu li {
    display: block;
    padding: 10px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s;
}
.category-menu li a:hover,
.category-menu li:hover {
    background: rgba(0,0,0,0.15);
}

/* Homepage Two-Column Layout */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px 0;
}

/* Feed Column */
.feed-column .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #a78bfa;
}
.post-card {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.post-card .post-thumb {
    flex-shrink: 0;
    width: 200px;
}
.post-card .post-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}
.post-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}
.post-cat {
    background: #a78bfa;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}
.post-date {
    color: #8b8fa8;
    font-size: 12px;
}
.post-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}
.post-title a {
    color: #0c0e1a;
    text-decoration: none;
}
.post-title a:hover {
    color: #a78bfa;
}
.post-excerpt {
    font-size: 14px;
    color: #b0b4c4;
    line-height: 1.5;
    margin: 0;
}

/* Sidebar Column */
.sidebar-column .widget {
    background: #141828;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
}
.sidebar-column .widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #a78bfa;
}
.popular-post {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.popular-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.pop-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
}
.pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.pop-title {
    font-size: 14px;
    font-weight: 600;
    color: #0c0e1a;
    text-decoration: none;
    line-height: 1.3;
}
.pop-title:hover {
    color: #a78bfa;
}
.pop-date {
    display: block;
    font-size: 12px;
    color: #8b8fa8;
    margin-top: 4px;
}
.sidebar-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-column ul li {
    padding: 4px 0;
}
.sidebar-column ul li a {
    color: #c6cae0;
    text-decoration: none;
    font-size: 14px;
}
.sidebar-column ul li a:hover {
    color: #a78bfa;
}

/* Footer */
.site-footer {
    background: #0c0e1a;
    color: #c6cae0;
    padding: 40px 0 20px;
    margin-top: 30px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #c6cae0;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}
.footer-logo a {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    font-family: Georgia, serif;
}
.footer-copy {
    color: #8b8fa8;
    font-size: 13px;
}
.footer-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.footer-menu a {
    color: #9aa0bd;
    text-decoration: none;
    font-size: 13px;
}
.footer-menu a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .primary-nav {
        display: none;
    }
    .post-card {
        flex-direction: column;
    }
    .post-card .post-thumb {
        width: 100%;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
