/*
Theme Name: Huy Kira Theme
Theme URI: https://huykira.net/
Author: Huy Kira
Author URI: https://huykira.net/
Description: Futuristic AI Profile Theme built with HTML, CSS and JS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huykira
*/

/* ==========================================
   FUTURISTIC AI PROFILE — CSS
   Glassmorphism · Neon · Particles · Modern
   ========================================== */

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base palette */
    --bg-deep: #06080f;
    --bg-surface: #0c1018;
    --bg-card: rgba(14, 18, 30, 0.65);
    --bg-card-hover: rgba(20, 26, 42, 0.8);
    --glass-bg: rgba(16, 20, 34, 0.55);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);

    /* Accent spectrum */
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --purple: #7b2ff7;
    --purple-dim: rgba(123, 47, 247, 0.15);
    --pink: #ff6bca;
    --pink-dim: rgba(255, 107, 202, 0.1);
    --green: #39d353;
    --green-dim: rgba(57, 211, 83, 0.12);

    /* Text */
    --text-primary: #e8ecf4;
    --text-secondary: #8892a8;
    --text-muted: #555e72;
    --text-accent: var(--cyan);

    /* Contribution */
    --contrib-0: rgba(255, 255, 255, 0.04);
    --contrib-1: #0e4429;
    --contrib-2: #006d32;
    --contrib-3: #26a641;
    --contrib-4: #39d353;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --max-width: 1320px;
    --sidebar-width: 320px;
    --nav-height: 64px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ==========================================
   Light Mode — Café Theme (vibewp.vn)
   ========================================== */
[data-theme="light"] {
    --bg-deep: #fdf8f3;
    --bg-surface: #f8f0e8;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 252, 248, 0.7);
    --glass-border: rgba(200, 121, 65, 0.12);
    --glass-border-hover: rgba(200, 121, 65, 0.22);

    --cyan: #C87941;
    --cyan-dim: rgba(200, 121, 65, 0.1);
    --purple: #8B4513;
    --purple-dim: rgba(139, 69, 19, 0.08);
    --pink: #d4763a;
    --pink-dim: rgba(212, 118, 58, 0.06);
    --green: #6d8c3e;
    --green-dim: rgba(109, 140, 62, 0.08);

    --text-primary: #2D1A0A;
    --text-secondary: #5c3d24;
    --text-muted: #9a7e68;
    --text-accent: var(--cyan);

    --contrib-0: rgba(200, 121, 65, 0.06);
    --contrib-1: #e8c9a8;
    --contrib-2: #d4a574;
    --contrib-3: #c87941;
    --contrib-4: #8B4513;

    --border-subtle: rgba(200, 121, 65, 0.1);
    --border-default: rgba(200, 121, 65, 0.15);
}

/* Light mode — specific overrides */
[data-theme="light"] body {
    background: linear-gradient(135deg, #f5ece2 0%, #ede0d2 50%, #f2e8dc 100%);
}

[data-theme="light"] .top-nav {
    background: linear-gradient(135deg, #8B4513, #5C2D0A);
    border-bottom: none;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(92, 45, 10, 0.35);
}

[data-theme="light"] .top-nav .brand-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    background-clip: unset !important;
    color: #fff !important;
}

[data-theme="light"] .top-nav .brand-icon {
    color: #fff;
}

[data-theme="light"] .top-nav .nav-tab,
[data-theme="light"] .top-nav .nav-tab svg {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .top-nav .nav-tab:hover {
    color: #fff;
}

[data-theme="light"] .top-nav .nav-tab.active {
    color: #fff;
    border-color: #fff;
}

[data-theme="light"] .top-nav .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

[data-theme="light"] .profile-card-inner {
    background: rgba(255, 252, 248, 0.8);
    border: 1px solid rgba(200, 121, 65, 0.12);
}

[data-theme="light"] .profile-card-inner::before {
    background: linear-gradient(90deg, transparent, #C87941, #8B4513, transparent);
    opacity: 0.25;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(237, 217, 200, 0.6);
    box-shadow: 0 2px 12px rgba(200, 121, 65, 0.07);
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(200, 121, 65, 0.2);
    box-shadow: 0 6px 24px rgba(200, 121, 65, 0.1);
}

[data-theme="light"] .chat-header {
    background: rgba(200, 121, 65, 0.05);
}

[data-theme="light"] .chat-msg.bot .chat-msg-bubble {
    background: rgba(200, 121, 65, 0.06);
    border-color: rgba(200, 121, 65, 0.12);
}

[data-theme="light"] .chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, rgba(200, 121, 65, 0.08), rgba(139, 69, 19, 0.06));
    border-color: rgba(200, 121, 65, 0.12);
}

[data-theme="light"] .chat-input {
    background: rgba(200, 121, 65, 0.04);
    border-color: rgba(200, 121, 65, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .chat-input:focus {
    border-color: rgba(200, 121, 65, 0.35);
    background: rgba(200, 121, 65, 0.04);
    box-shadow: 0 0 0 3px rgba(200, 121, 65, 0.08);
}

[data-theme="light"] .tech-pill {
    background: rgba(200, 121, 65, 0.04);
    border-color: rgba(200, 121, 65, 0.1);
}

[data-theme="light"] .card-header {
    background: rgba(200, 121, 65, 0.03);
}

[data-theme="light"] .follow-btn-bg {
    background: linear-gradient(135deg, #C87941, #8B4513);
}

[data-theme="light"] .year-pill.active {
    background: linear-gradient(135deg, #C87941, #8B4513);
}

[data-theme="light"] .info-item:hover {
    background: rgba(200, 121, 65, 0.04);
}

[data-theme="light"] .timeline-text {
    background: rgba(200, 121, 65, 0.03);
    border-color: rgba(200, 121, 65, 0.08);
}

[data-theme="light"] .site-footer {
    border-top-color: rgba(200, 121, 65, 0.1);
}

[data-theme="light"] .bg-orb {
    opacity: 0.06;
}

[data-theme="light"] #particle-canvas {
    opacity: 0.2;
}

[data-theme="light"] .nav-tab.active {
    color: #C87941;
    border-color: #C87941;
}

[data-theme="light"] .nav-tab:hover {
    color: #C87941;
}

[data-theme="light"] .repo-name {
    color: #8B4513;
}

[data-theme="light"] .repo-card:hover .repo-name {
    color: #C87941;
}

[data-theme="light"] .chat-send-btn {
    background: linear-gradient(135deg, #C87941, #8B4513);
}

[data-theme="light"] .blog-timeline::before {
    background: linear-gradient(to bottom, #C87941, #8B4513, transparent);
}

[data-theme="light"] .blog-year-dot {
    border-color: #C87941;
    box-shadow: 0 0 8px rgba(200, 121, 65, 0.3);
}

[data-theme="light"] .blog-year-header:hover .blog-year-dot {
    background: #C87941;
    box-shadow: 0 0 14px rgba(200, 121, 65, 0.4);
}

[data-theme="light"] .blog-post-link:hover {
    background: rgba(200, 121, 65, 0.04);
}

[data-theme="light"] .blog-post-link:hover .blog-post-title {
    color: #C87941;
}

[data-theme="light"] .load-more-btn:hover {
    color: #C87941;
    border-color: rgba(200, 121, 65, 0.2);
    background: rgba(200, 121, 65, 0.04);
}

[data-theme="light"] .avatar-ring-svg circle {
    stroke: url(#ring-grad-light) !important;
}

[data-theme="light"] .stat-number {
    color: #2D1A0A;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.theme-toggle:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--cyan);
    transform: rotate(15deg);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background 0.4s ease, color 0.3s ease;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #4de5ff;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

code {
    font-family: var(--font-mono);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.12);
    padding: 0.1em 0.45em;
    border-radius: 5px;
    font-size: 0.82em;
    color: var(--cyan);
}

::selection {
    background: rgba(0, 212, 255, 0.25);
    color: #fff;
}

/* ==========================================
   Animated Background
   ========================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    bottom: -10%;
    left: -8%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation-delay: -14s;
    opacity: 0.12;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(40px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 40px) scale(0.95);
    }

    75% {
        transform: translate(30px, 20px) scale(1.02);
    }
}

/* ==========================================
   Top Navigation
   ========================================== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 15, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-brand:hover {
    text-shadow: none;
}

.brand-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
}

.brand-avatar-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon .avatar-dark {
    opacity: 0;
    pointer-events: none;
}

.brand-icon .avatar-light {
    opacity: 1;
}

[data-theme="dark"] .brand-icon .avatar-light {
    opacity: 0;
    pointer-events: none;
}

[data-theme="dark"] .brand-icon .avatar-dark {
    opacity: 1;
}

.nav-brand:hover .brand-avatar-img {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .nav-brand:hover .brand-avatar-img {
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tabs {
    display: flex;
    gap: 4px;
    height: 100%;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    height: 100%;
    transition: all 0.25s ease;
}

.nav-tab:hover {
    color: var(--text-primary);
    text-shadow: none;
    text-decoration: none;
}

.nav-tab.active {
    color: var(--text-primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.nav-tab svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.nav-tab.active svg {
    opacity: 1;
}

.tab-badge {
    background: rgba(0, 212, 255, 0.12);
    color: var(--cyan);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-avatar {
    position: relative;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

.nav-avatar img,
.nav-avatar svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-default);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    display: block;
    box-sizing: border-box;
}

.nav-avatar svg.default-avatar {
    padding: 6px;
    background: var(--bg-surface);
}

.nav-avatar .avatar-dark {
    opacity: 0;
    pointer-events: none;
}

.nav-avatar .avatar-light {
    opacity: 1;
}

[data-theme="dark"] .nav-avatar .avatar-light {
    opacity: 0;
    pointer-events: none;
}

[data-theme="dark"] .nav-avatar .avatar-dark {
    opacity: 1;
    pointer-events: auto;
}

.nav-avatar:hover img,
.nav-avatar:hover svg {
    border-color: var(--cyan);
}

.avatar-glow {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--cyan), var(--purple), var(--pink), var(--cyan));
    opacity: 0;
    z-index: -1;
    animation: spin 3s linear infinite;
    transition: opacity 0.3s;
}

.nav-avatar:hover .avatar-glow {
    opacity: 0.6;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   Main Layout
   ========================================== */
.main {
    position: relative;
    z-index: 1;
    padding: 32px 0 60px;
}

.layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ==========================================
   Glass Card Base
   ========================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ==========================================
   Profile Card (Sidebar)
   ========================================== */
.profile-card {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.profile-card-inner {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

/* Glow line at top of card */
.profile-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
    opacity: 0.6;
}

/* Avatar */
.avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.avatar-ring-svg {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-circle {
    stroke-linecap: round;
    animation: ringDash 8s ease-in-out infinite;
}

@keyframes ringDash {

    0%,
    100% {
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: 200;
    }
}

@keyframes ringPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(123, 47, 247, 0.4));
    }
}

.avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--bg-deep);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.avatar-ring .avatar-dark {
    opacity: 0;
    pointer-events: none;
}

.avatar-ring .avatar-light {
    opacity: 1;
}

[data-theme="dark"] .avatar-ring .avatar-light {
    opacity: 0;
    pointer-events: none;
}

[data-theme="dark"] .avatar-ring .avatar-dark {
    opacity: 1;
}

.avatar-status {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    background: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(57, 211, 83, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(57, 211, 83, 0.4);
    }

    50% {
        box-shadow: 0 0 12px rgba(57, 211, 83, 0.7);
    }
}

/* Identity */
.profile-identity {
    text-align: center;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
}

.verified-badge {
    color: var(--cyan);
    display: inline-flex;
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.3));
    animation: verifiedPop 3s ease-in-out infinite;
}

@keyframes verifiedPop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.profile-handle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    margin-top: 2px;
}

.profile-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 3px 14px;
}

.title-icon {
    font-size: 14px;
}

/* Follow Button */
.follow-btn {
    position: relative;
    width: 100%;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.35s ease;
    background: transparent;
}

.follow-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: var(--radius-sm);
    z-index: 0;
    transition: opacity 0.35s;
}

.follow-btn-text {
    position: relative;
    z-index: 1;
}

.follow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.25), 0 0 0 1px rgba(0, 212, 255, 0.2);
}

.follow-btn:active {
    transform: translateY(0) scale(0.98);
}

.follow-btn.following .follow-btn-bg {
    opacity: 0.15;
}

.follow-btn.following {
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

/* Stats */
.profile-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

/* Bio */
.profile-bio {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-bio p {
    font-size: 15px;
    color: var(--text-primary);
    text-align: center;
}

/* Info List */
.profile-info {
    list-style: none;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: color 0.2s;
}

.profile-info li:hover {
    color: var(--text-primary);
}

.profile-info li svg {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.profile-info li a {
    color: var(--text-secondary);
}

.profile-info li a:hover {
    color: var(--cyan);
}

/* Achievements */
.profile-achievements .section-label {
    margin-bottom: 10px;
}

.achievement-row {
    display: flex;
    gap: 8px;
}

.achievement {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.achievement:hover {
    transform: scale(1.15);
}

.achievement-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.achievement:hover .achievement-glow {
    opacity: 1;
}

/* ==========================================
   Section Labels
   ========================================== */
.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    color: var(--text-muted);
}

/* ==========================================
   README Card
   ========================================== */
.readme-card {
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.file-icon {
    font-size: 15px;
}

.path-user {
    color: var(--cyan);
    font-weight: 600;
}

.path-sep {
    color: var(--text-muted);
}

.path-file {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 14px;
}

.card-header-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.card-body {
    padding: 28px 24px;
}

.greeting {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    60%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.intro-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.info-emoji {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================
   Tech Stack
   ========================================== */
.tech-stack {
    margin-bottom: 28px;
}

.tech-stack .section-label {
    margin-bottom: 14px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tech-pill:hover::before {
    opacity: 0.08;
    background: attr(data-color);
}

.tech-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

/* ==========================================
   Pinned Repos
   ========================================== */
.pinned-repos {
    margin-bottom: 28px;
}

.pinned-repos .section-label {
    margin-bottom: 14px;
}

.repos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.repo-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.repo-card:hover::before {
    opacity: 1;
}

.repo-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.repo-card:hover .repo-name {
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.repo-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.repo-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.repo-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cyan);
    transition: all 0.3s;
}

.repo-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1px 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.repo-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.repo-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 8px;
}

.repo-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.repo-stat {
    font-size: 14px;
}

/* ==========================================
   Contribution Graph
   ========================================== */
.contrib-card {
    padding: 24px;
    margin-bottom: 24px;
}

.contrib-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.contrib-year-pills {
    display: flex;
    gap: 4px;
}

.year-pill {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 4px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
}

.year-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-default);
}

.year-pill.active {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.25);
}

.contrib-graph-wrapper {
    margin-bottom: 12px;
}

.contrib-months {
    display: flex;
    padding-left: 36px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contrib-months span {
    flex: 1;
}

.contrib-body {
    display: flex;
    gap: 4px;
}

.contrib-days {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    color: var(--text-muted);
    gap: 14px;
    padding-top: 1px;
    min-width: 32px;
}

.contrib-grid {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    grid-auto-flow: column;
    grid-auto-columns: 12px;
    gap: 3px;
    flex: 1;
    overflow-x: auto;
}

.contrib-cell {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--contrib-0);
    transition: all 0.2s;
    cursor: pointer;
}

.contrib-cell:hover {
    transform: scale(1.6);
    z-index: 10;
    position: relative;
    outline: 1px solid var(--text-muted);
}

.contrib-cell.l1 {
    background: var(--contrib-1);
}

.contrib-cell.l2 {
    background: var(--contrib-2);
}

.contrib-cell.l3 {
    background: var(--contrib-3);
}

.contrib-cell.l4 {
    background: var(--contrib-4);
    box-shadow: 0 0 6px rgba(57, 211, 83, 0.3);
}

.contrib-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.legend-label {
    font-size: 11px;
    color: var(--text-muted);
}

.legend-squares {
    display: flex;
    gap: 3px;
}

.lsq {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.lsq.l0 {
    background: var(--contrib-0);
}

.lsq.l1 {
    background: var(--contrib-1);
}

.lsq.l2 {
    background: var(--contrib-2);
}

.lsq.l3 {
    background: var(--contrib-3);
}

.lsq.l4 {
    background: var(--contrib-4);
}

/* ==========================================
   Activity Timeline
   ========================================== */
.activity-card {
    padding: 24px;
    margin-bottom: 24px;
}

.activity-card .section-label {
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.timeline-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-muted);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* ==========================================
   Kira AI Chat
   ========================================== */
.chat-card {
    margin-bottom: 24px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 212, 255, 0.02);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 47, 247, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.chat-avatar-icon {
    font-size: 18px;
}

.chat-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg-deep);
    box-shadow: 0 0 6px rgba(57, 211, 83, 0.4);
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.chat-status-text {
    font-size: 14px;
    color: var(--green);
    font-weight: 500;
}

.chat-header-actions {
    display: flex;
    gap: 4px;
}

.chat-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Chat messages area */
.chat-messages {
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-welcome {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.chat-welcome-icon {
    font-size: 28px;
    margin-bottom: 8px;
    animation: welcomePulse 2s ease-in-out infinite;
}

@keyframes welcomePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.chat-welcome strong {
    color: var(--cyan);
}

.chat-welcome-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Message bubbles */
.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 85%;
    animation: msgFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-top: 2px;
}

.chat-msg.bot .chat-msg-avatar {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 47, 247, 0.12));
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.chat-msg.user .chat-msg-avatar {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
}

.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.55;
    position: relative;
}

.chat-msg.bot .chat-msg-bubble {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 47, 247, 0.12));
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--text-primary);
    border-top-right-radius: 4px;
}

/* Chatbot Markdown Styles */
.chat-msg-bubble h1,
.chat-msg-bubble h2,
.chat-msg-bubble h3 {
    margin: 10px 0 6px 0;
    color: var(--cyan);
    font-weight: 700;
}

.chat-msg-bubble h1 {
    font-size: 1.3em;
}

.chat-msg-bubble h2 {
    font-size: 1.15em;
}

.chat-msg-bubble h3 {
    font-size: 1.05em;
}

.chat-msg-bubble code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: #ff79c6;
}

.chat-msg-bubble .chat-code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
}

.chat-msg-bubble .chat-code-block code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #f8f8f2;
    font-size: 14px;
}

.chat-msg-bubble blockquote {
    border-left: 3px solid var(--cyan);
    background: rgba(0, 212, 255, 0.03);
    margin: 8px 0;
    padding: 6px 12px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.chat-msg-bubble .chat-list {
    margin: 6px 0;
    padding-left: 18px;
    list-style-type: disc;
}

.chat-msg-bubble .chat-list li {
    margin-bottom: 4px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    gap: 8px;
    max-width: 85%;
    animation: msgFadeIn 0.3s ease both;
}

.chat-typing-dots {
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 14px;
    border-top-left-radius: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0.4;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Input area */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.01);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.06);
    background: rgba(0, 212, 255, 0.03);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* ==========================================
   Blog Timeline
   ========================================== */
.blog-card {
    padding: 24px;
    margin-bottom: 24px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.blog-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.blog-timeline {
    position: relative;
    padding-left: 20px;
}

.blog-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
    border-radius: 2px;
    opacity: 0.4;
}

.blog-year-group {
    margin-bottom: 4px;
}

.blog-year-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
}

.blog-year-dot {
    position: absolute;
    left: -20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
    z-index: 1;
    transition: all 0.3s;
}

.blog-year-header:hover .blog-year-dot {
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
}

.blog-year-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.blog-year-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1px 8px;
    font-family: var(--font-mono);
}

.blog-year-toggle {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
}

.blog-year-header:hover .blog-year-toggle {
    color: var(--cyan);
}

.blog-year-group.collapsed .blog-year-toggle {
    transform: rotate(-90deg);
}

.blog-year-posts {
    list-style: none;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    max-height: 3000px;
    opacity: 1;
}

.blog-year-group.collapsed .blog-year-posts {
    max-height: 0;
    opacity: 0;
}

.blog-post {
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.blog-post-link:hover {
    background: rgba(0, 212, 255, 0.03);
    padding-left: 14px;
    text-decoration: none;
}

.blog-post-link:hover .blog-post-title {
    color: var(--cyan);
}

.blog-post-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-post-date {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.load-more-btn:hover {
    color: var(--cyan);
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.06);
}

.load-more-btn:active {
    transform: scale(0.98);
}

.load-more-btn.hidden {
    display: none;
}

.load-more-count {
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 1px 8px;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 32px 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-brand svg {
    opacity: 0.5;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cyan);
    text-shadow: none;
}

/* ==========================================
   Entrance Animations
   ========================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-card {
    animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.readme-card {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.tech-stack {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.pinned-repos {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.contrib-card {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.activity-card {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.repo-card {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.repo-card:nth-child(1) {
    animation-delay: 0.3s;
}

.repo-card:nth-child(2) {
    animation-delay: 0.35s;
}

.repo-card:nth-child(3) {
    animation-delay: 0.4s;
}

.repo-card:nth-child(4) {
    animation-delay: 0.45s;
}

.repo-card:nth-child(5) {
    animation-delay: 0.5s;
}

.repo-card:nth-child(6) {
    animation-delay: 0.55s;
}

.mobile-chat-fab {
    display: none;
}

/* Chat Backdrop Overlay */
.chat-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99990;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.chat-backdrop.active {
    display: block;
    opacity: 1;
}

/* Chat Card Highlight when Backdrop is Active on Desktop */
.chat-card.active {
    position: relative;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.25);
}

[data-theme="light"] .chat-card.active {
    box-shadow: 0 10px 40px rgba(200, 121, 65, 0.25);
}

/* Drag Handle for mobile bottom sheet */
.chat-drag-handle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    cursor: pointer;
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.chat-drag-handle::after {
    content: '';
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-subtle);
    transition: background 0.25s;
}

.chat-drag-handle:hover::after {
    background: var(--text-muted);
}

/* Logo icon styles inside chat */
.chat-avatar-img-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.chat-msg-avatar-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
}

.fab-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1080px) {
    .layout {
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        width: 100%;
        max-width: 400px;
        position: static;
    }

    .content {
        width: 100%;
    }

    .repos-grid {
        grid-template-columns: 1fr;
    }

    .nav-tabs {
        display: none;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 15px 0 0px;
    }

    .layout {
        padding: 0 16px;
    }

    /* Hide unnecessary meta info on mobile to display only the date */
    .fb-post-meta .fb-divider,
    .fb-post-meta #post-read-time,
    .fb-post-meta .fb-meta-categories,
    .fb-post-meta .fb-public-icon {
        display: none !important;
    }

    .nav-container {
        padding: 0 16px;
    }

    .footer-inner {
        padding: 0 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-card-inner {
        padding: 20px 16px;
    }

    .avatar-section {
        margin-bottom: 12px;
    }

    .avatar-ring {
        width: 100px;
        height: 100px;
    }

    .avatar-img {
        width: 100px;
        height: 100px;
    }

    .profile-identity {
        margin-bottom: 12px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-title {
        margin-top: 6px;
        padding: 2px 10px;
        font-size: 11.5px;
    }

    .follow-btn {
        margin-bottom: 12px;
        padding: 8px 16px;
        font-size: 14px;
    }

    .profile-stats {
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }

    .profile-bio {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .profile-bio p {
        font-size: 14px;
    }

    .profile-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .profile-info li {
        padding: 2px 0;
        font-size: 15px;
    }

    .profile-achievements {
        margin-top: 0;
    }

    .profile-achievements .section-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .profile-achievements svg {
        width: 32px;
        height: 32px;
    }

    .greeting {
        font-size: 22px;
    }

    .contrib-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    #contrib-card {
        display: none;
    }

    /* Mobile Bottom-Sheet Chat Style */
    .chat-card {
        display: none;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 80vh;
        z-index: 99999;
        margin-bottom: 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
        border: 1px solid var(--border-default);
        border-bottom: none;
        border-radius: 24px 24px 0 0;
        background: #0b0f17 !important;
        /* Solid dark background */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    [data-theme="light"] .chat-card {
        background: #ffffff !important;
        /* Solid white background for clear readability */
        border-color: rgba(200, 121, 65, 0.2) !important;
    }

    .chat-drag-handle {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    .chat-card.active {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        animation: chatSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes chatSlideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .chat-header {
        padding-top: 20px;
        padding-bottom: 12px;
        padding-left: 16px;
        padding-right: 16px;
        flex-shrink: 0 !important;
    }

    .chat-close-mobile-btn {
        display: flex !important;
    }

    .chat-messages {
        flex: 1;
        min-height: 0;
        max-height: none;
        padding: 16px;
        overflow-y: auto !important;
    }

    .chat-input-area {
        padding-top: 10px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 16px !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
        gap: 8px;
        align-items: center;
        flex-shrink: 0 !important;
    }

    .chat-input {
        height: 38px;
        padding: 0 14px;
        font-size: 14px;
        border-radius: 19px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .chat-attach-btn,
    .chat-send-btn {
        width: 38px;
        height: 38px;
        box-sizing: border-box;
    }

    .mobile-chat-fab {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--cyan), var(--purple));
        color: white;
        border: none;
        font-size: 24px;
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
        z-index: 9998;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .mobile-chat-fab.chat-open {
        display: none !important;
    }

    .mobile-chat-fab:active {
        transform: scale(0.92);
    }

    .fab-glow {
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid var(--cyan);
        opacity: 0.5;
        animation: fabPulse 2s ease-in-out infinite;
        pointer-events: none;
    }

    @keyframes fabPulse {
        0% {
            transform: scale(1);
            opacity: 0.8;
        }

        100% {
            transform: scale(1.25);
            opacity: 0;
        }
    }
}

/* ==========================================
   Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   Chat Suggestions / Quick Links Grid
   ========================================== */
.chat-suggest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 0 10px;
}

.chat-suggest-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-suggest-card:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--cyan);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.chat-suggest-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.chat-suggest-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-suggest-card:hover .chat-suggest-icon {
    transform: scale(1.2) rotate(10deg);
}

.chat-suggest-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-suggest-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Light mode overrides for suggestions */
[data-theme="light"] .chat-suggest-card {
    background: rgba(255, 252, 248, 0.95);
    border: 1px solid rgba(200, 121, 65, 0.18);
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.03);
}

[data-theme="light"] .chat-suggest-card:hover {
    background: #fff;
    border-color: #8B4513;
    box-shadow: 0 6px 20px rgba(200, 121, 65, 0.15);
}

[data-theme="light"] .chat-suggest-title {
    color: #5C2D0A;
}

[data-theme="light"] .chat-welcome strong {
    color: #8B4513;
}

@media (max-width: 576px) {
    .chat-suggest-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }
}

/* ==========================================
   Blog Detail Page Styles
   ========================================== */
.main-container {
    max-width: 900px !important;
    margin: 100px auto 40px !important;
    padding: 0 20px !important;
}

.article-card {
    padding: 32px 40px;
    margin-bottom: 24px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-meta-divider {
    opacity: 0.5;
}

.article-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .article-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #5C2D0A !important;
    color: #5C2D0A !important;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

[data-theme="light"] .article-content h2 {
    color: #8B4513;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid var(--cyan);
    background: rgba(0, 212, 255, 0.03);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
    font-style: italic;
}

[data-theme="light"] .article-content blockquote {
    border-left-color: #C87941;
    background: rgba(200, 121, 65, 0.05);
}

.article-content pre {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow-x: auto;
    margin: 24px 0;
}

[data-theme="light"] .article-content pre {
    background: rgba(255, 252, 248, 0.95);
    border-color: rgba(200, 121, 65, 0.15);
}

.article-content pre code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.5;
}

[data-theme="light"] .article-content pre code {
    color: #5C2D0A;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border: 1px solid var(--border-subtle);
}

/* WordPress Image Alignments */
.article-content .aligncenter,
.article-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.article-content .alignleft,
.article-content img.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 24px;
    margin-top: 6px;
}

.article-content .alignright,
.article-content img.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 24px;
    margin-top: 6px;
}

.article-content .alignnone,
.article-content img.alignnone {
    /* default */
}

.article-content figure,
.article-content .wp-caption {
    max-width: 100% !important;
    height: auto;
    margin: 24px auto;
    text-align: center;
}

.article-content figcaption,
.article-content .wp-caption-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

/* Facebook style post header */
.fb-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .fb-post-header {
    border-bottom-color: rgba(200, 121, 65, 0.12);
}

.fb-post-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .fb-author-avatar {
    border-color: rgba(200, 121, 65, 0.3);
}

.fb-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fb-author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.fb-author-name {
    font-weight: 700;
    color: var(--text-primary);
}

[data-theme="light"] .fb-author-name {
    color: #5C2D0A;
}

.fb-divider {
    color: var(--text-muted);
    font-weight: bold;
}

.fb-follow-link {
    font-weight: 600;
    color: var(--cyan);
    font-size: 14px;
    transition: opacity 0.2s;
}

[data-theme="light"] .fb-follow-link {
    color: #C87941;
}

.fb-follow-link:hover {
    text-decoration: underline;
    color: var(--cyan);
}

[data-theme="light"] .fb-follow-link:hover {
    color: #8B4513;
}

.fb-meta-category {
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.fb-meta-category:hover {
    color: var(--cyan);
    text-decoration: underline;
}

[data-theme="light"] .fb-meta-category:hover {
    color: #8B4513;
}

.fb-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.fb-public-icon {
    font-size: 11px;
    display: inline-flex;
    align-items: center;
}

.fb-post-header-right {
    color: var(--text-muted);
}

.fb-more-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fb-more-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

[data-theme="light"] .fb-more-btn:hover {
    background: rgba(200, 121, 65, 0.08);
    color: #5C2D0A;
}

/* Hashtags in title */
.fb-hashtags {
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--cyan) !important;
    word-break: break-word;
}

[data-theme="light"] .fb-hashtags {
    color: #C87941 !important;
    background: none !important;
    -webkit-text-fill-color: #C87941 !important;
}

/* Sidebar profile styling */
.author-sticky-card {
    padding: 24px;
    text-align: center;
    position: sticky;
    top: 100px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.back-home-btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .back-home-btn-sidebar {
    background: linear-gradient(135deg, #C87941, #8B4513);
    box-shadow: 0 4px 15px rgba(200, 121, 65, 0.25);
}

.back-home-btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
    color: #fff;
}

[data-theme="light"] .back-home-btn-sidebar:hover {
    box-shadow: 0 6px 20px rgba(200, 121, 65, 0.35);
}

/* Comments styling */
.comments-card {
    padding: 28px 32px;
    margin-top: 24px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.comment-form {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    border-radius: var(--radius-md) !important;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.comment-form-footer input {
    border-radius: var(--radius-sm) !important;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    animation: msgFadeIn 0.35s ease both;
}

[data-theme="light"] .comment-item {
    background: rgba(255, 252, 248, 0.6);
    border-color: rgba(200, 121, 65, 0.12);
}

.comment-avatar {
    font-size: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

[data-theme="light"] .comment-author {
    color: #5C2D0A;
}

.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Breadcrumb styling */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 0;
    background: none !important;
    border: none !important;
    width: fit-content;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.breadcrumb-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--cyan);
}

[data-theme="light"] .breadcrumb-link:hover {
    color: #8B4513;
}

.breadcrumb-separator {
    opacity: 0.5;
    font-weight: 300;
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

[data-theme="light"] .breadcrumb-current {
    color: #5C2D0A;
}

@media (max-width: 768px) {
    .breadcrumb-current {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .article-card {
        padding: 24px 20px;
    }

    .article-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
}

/* Projects Page Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid a {
        grid-column: span 1 !important;
    }
}

/* Chat Attachment Button & Preview Styles */
.chat-attach-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
}

.chat-attach-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--cyan);
    transform: scale(1.08);
}

.chat-attach-btn:active {
    transform: scale(0.95);
}

.chat-attachment-preview {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 16px;
    z-index: 10;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.attachment-preview-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-width: 280px;
}

.attachment-preview-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--cyan);
}

.attachment-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.attachment-preview-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-preview-status {
    font-size: 9px;
    color: var(--text-secondary);
}

.attachment-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.attachment-remove-btn:hover {
    background: rgba(255, 107, 202, 0.1);
    color: var(--pink);
}

/* Archive Page Pagination */
.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.archive-pagination .page-numbers.current {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
    font-weight: 600;
}

.archive-pagination .page-numbers:hover:not(.current) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
}

/* ==========================================
   Auth Modal CSS
   ========================================== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-card {
    position: relative;
    max-width: 460px;
    width: 100%;
    background: rgba(12, 16, 24, 0.95);
    /* Premium glassmorphic dark background for Dark theme */
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 32px 28px 24px;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

[data-theme="light"] .auth-modal-card {
    background: #ffffff !important;
    /* Solid white background on light theme */
    border-color: rgba(200, 121, 65, 0.15) !important;
    box-shadow: 0 30px 60px rgba(200, 121, 65, 0.12) !important;
}

.auth-modal-card::-webkit-scrollbar {
    display: none;
}

.auth-modal-card {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.auth-modal-overlay.active .auth-modal-card {
    transform: translateY(0) scale(1);
}

/* Close button */
.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff5f56;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 95, 86, 0.3);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 10;
}

.auth-modal-close svg {
    width: 10px;
    height: 10px;
}

.auth-modal-close:hover {
    transform: scale(1.1);
    background: #e04b43;
}

.auth-modal-close:active {
    transform: scale(0.95);
}

/* Tabs */
.auth-modal-tabs {
    position: relative;
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    padding-bottom: 4px;
    gap: 8px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.3s;
    text-align: center;
    position: relative;
    outline: none;
}

.auth-tab-btn.active {
    color: var(--cyan);
}

.auth-tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

/* Tab panes */
.auth-tab-pane {
    display: none;
    animation: authFadeIn 0.4s ease;
}

.auth-tab-pane.active {
    display: block;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info message card */
.auth-info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: left;
}

.auth-info-card.login-info {
    background: rgba(200, 121, 65, 0.08);
    border: 1px solid rgba(200, 121, 65, 0.15);
    color: var(--cyan);
}

[data-theme="dark"] .auth-info-card.login-info {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--cyan);
}

.auth-info-card.register-info {
    background: rgba(57, 211, 83, 0.08);
    border: 1px solid rgba(57, 211, 83, 0.15);
    color: var(--green);
}

[data-theme="dark"] .auth-info-card.register-info {
    background: rgba(57, 211, 83, 0.08);
    border: 1px solid rgba(57, 211, 83, 0.15);
    color: var(--green);
}

.info-icon {
    flex-shrink: 0;
}

/* AJAX Status Messages */
.auth-ajax-message {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: left;
}

.auth-ajax-message.success {
    background: rgba(57, 211, 83, 0.08);
    border: 1px solid rgba(57, 211, 83, 0.15);
    color: var(--green);
}

.auth-ajax-message.error {
    background: rgba(255, 95, 86, 0.08);
    border: 1px solid rgba(255, 95, 86, 0.15);
    color: #ff5f56;
}


/* Google Auth Button */
.google-auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.google-auth-btn:hover {
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.google-logo {
    width: 18px;
    height: 18px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-divider::before {
    margin-right: 15px;
}

.auth-divider::after {
    margin-left: 15px;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 10px 16px 10px 42px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

[data-theme="dark"] .auth-input {
    background: rgba(255, 255, 255, 0.02);
}

.auth-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-dim);
    background: rgba(255, 255, 255, 0.05);
}

/* Send code button styled inside the input */
.auth-input-wrapper.has-button .auth-input {
    padding-right: 90px;
}

.auth-send-code-btn {
    position: absolute;
    right: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border: none;
    border-radius: 6px;
    color: #fff !important;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.auth-send-code-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Password Toggle button styled inside input */
.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--cyan);
}

/* Form options */
.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 4px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
    cursor: pointer;
}

.auth-forgot-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: var(--cyan);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff !important;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    box-shadow: 0 4px 15px var(--cyan-dim);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--cyan-dim);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Footer text */
.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-footer-text a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

@media (max-width: 576px) {
    .auth-modal-card {
        padding: 24px 20px 20px;
    }
}

/* =========================================
   AUTHENTICATION OTP & VERIFICATION STYLES
   ========================================= */
.auth-send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-default) !important;
    transform: none !important;
    box-shadow: none !important;
}

#register-verification-group {
    animation: slideDownOTP 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownOTP {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#register-verification-code {
    letter-spacing: 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    font-family: var(--font-mono);
    text-shadow: 0 0 8px var(--cyan-dim);
    color: var(--cyan);
    padding-left: 20px;
    /* offset the letter-spacing to keep it centered */
}

#register-verification-code:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-dim);
}

/* ==========================================
   Related Posts Styling
   ========================================== */
.related-posts-card {
    margin-top: 20px;
    padding: 24px 28px;
}

.related-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.related-posts-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

[data-theme="light"] .related-posts-title-wrapper {
    color: #5C2D0A;
}

.related-posts-title-wrapper svg {
    color: var(--cyan);
}

[data-theme="light"] .related-posts-title-wrapper svg {
    color: #8B4513;
}

.related-posts-list {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[data-theme="light"] .related-posts-list {
    border-left-color: rgba(200, 121, 65, 0.2);
}

.related-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.related-post-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
}

.related-post-link:hover {
    color: var(--cyan);
    transform: translateX(2px);
}

[data-theme="light"] .related-post-link:hover {
    color: #8B4513;
}

.related-post-date {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}