/* style.css - Adwaita-Style Blog Platform */

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

:root {
    --bg-dark: #f6f5f4;
    --bg-panel: rgba(255, 255, 255, 0.95);
    --bg-header: rgba(246, 245, 244, 0.95);
    --accent-pink: #ff45fc;
    --accent-pink-hover: #e031e0;
    --text-primary: #2e3436;
    --text-secondary: #5e5e5e;
    --border-color: rgba(0, 0, 0, 0.1);
    --header-height: 40px;
    --font-main: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    --blur-overlay-brightness: 1.0;
    --dark-overlay-color: rgba(0, 0, 0, 0.0);
    --theme-transition-duration: 0.4s;
    --btn-bg: #ffffff;
    --btn-text: #2e3436;
    --btn-border: rgba(0, 0, 0, 0.2);
    --btn-hover-bg: #f0f0f0;
}

[data-theme="dark"] {
    --blur-overlay-brightness: 0.6;
    --dark-overlay-color: rgba(0, 0, 0, 0.4);
    --bg-panel: rgba(30, 30, 30, 0.95);
    --btn-bg: #1a1a1a;
    --btn-text: #ffffff;
    --btn-border: rgba(255, 255, 255, 0.2);
    --btn-hover-bg: #0a0a0a;
}

[data-theme="light"] {
    --btn-bg: #ffffff;
    --btn-text: #2e3436;
    --btn-border: rgba(0, 0, 0, 0.2);
    --btn-hover-bg: #f0f0f0;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, rgba(246, 245, 244, 0.85) 0%, rgba(255, 255, 255, 0.85) 100%), url('media/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    transition: background var(--theme-transition-duration) ease, color var(--theme-transition-duration) ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('media/background.webp') no-repeat center center;
    background-size: cover;
    filter: blur(10px) brightness(var(--blur-overlay-brightness));
    transition: filter var(--theme-transition-duration) ease;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-overlay-color);
    transition: background var(--theme-transition-duration) ease;
    z-index: -1;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    overflow-y: auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.5s ease-out;
    transition: background var(--theme-transition-duration) ease, border-color var(--theme-transition-duration) ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.blue-button {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 3px 8px;
    margin: 0 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.4);
}

.blue-button span {
    font-family: 'VT323', monospace;
    font-style: italic;
    text-transform: lowercase;
    font-size: 1.4rem;
}

.blue-button:hover {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.6);
}

.blue-button:active {
    transform: translateY(0);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    transition: all 0.2s ease, color var(--theme-transition-duration) ease, background var(--theme-transition-duration) ease;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--accent-pink);
    background: rgba(255, 69, 252, 0.15);
}

/* Main Content */
.main-container {
    display: block;
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    position: relative;
    margin-right: 280px;
    transition: margin-right 0.3s ease;
}

.main-container.sidebar-collapsed {
    margin-right: 0;
}

.content-area {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
    width: 100%;
}

/* Home Hero Section */
.home-hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Home Layout Container - Same rectangle styling as blog and about pages */
.home-layout-container {
    display: block;
    margin-top: 20px;
}

.home-layout-container .home-hero {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    transition: background var(--theme-transition-duration) ease, border-color var(--theme-transition-duration) ease;
}

.home-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 0.6s ease-out;
}

.home-lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeIn 0.6s ease-out 0.1s both;
    font-family: 'VT323', monospace;
    font-style: italic;
}

.hero-image-container {
    margin: 40px 0;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.abstract-geometric {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.geo-shape {
    position: absolute;
    border-radius: 8px;
    opacity: 0.8;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(71, 114, 179, 0.6) 0%, rgba(58, 90, 143, 0.8) 100%);
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(15deg);
    animation: floatShape1 6s ease-in-out infinite;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.5) 0%, rgba(71, 114, 179, 0.7) 100%);
    bottom: 40px;
    left: 20px;
    transform: rotate(-25deg);
    animation: floatShape2 7s ease-in-out infinite 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(176, 196, 222, 0.4) 0%, rgba(100, 149, 237, 0.6) 100%);
    top: 60px;
    right: 30px;
    border-radius: 50%;
    animation: floatShape3 5s ease-in-out infinite 0.5s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(71, 114, 179, 0.4) 0%, rgba(58, 90, 143, 0.6) 100%);
    bottom: 20px;
    right: 60px;
    transform: rotate(45deg);
    animation: floatShape4 8s ease-in-out infinite 1.5s;
}

@keyframes floatShape1 {
    0%, 100% { transform: translateX(-50%) rotate(15deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(20deg) translateY(-15px); }
}

@keyframes floatShape2 {
    0%, 100% { transform: rotate(-25deg) translateY(0); }
    50% { transform: rotate(-20deg) translateY(-10px); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

@keyframes floatShape4 {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(50deg) translateY(-8px); }
}

.home-content {
    text-align: left;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.home-content p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.home-content strong {
    color: var(--text-primary);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    padding: 0;
    animation: slideLeft 0.5s ease-out;
    position: fixed;
    right: 0;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    box-sizing: border-box;
    z-index: 999;
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease, background var(--theme-transition-duration) ease, border-color var(--theme-transition-duration) ease;
}

/* Sidebar content wrapper */
.sidebar-content-wrapper {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Collapsed sidebar state - only hide content, keep button visible */
.sidebar.collapsed {
    width: 0;
}

.sidebar.collapsed .sidebar-content-wrapper {
    opacity: 0;
    pointer-events: none;
}

/* Auto-collapse on constrained space - handle resize smoothly */
@media (max-width: 768px) {
    .sidebar:not(.expanded) {
        width: 0;
        opacity: 0;
        transform: translateX(20px);
        pointer-events: none;
    }
    .sidebar:not(.expanded) .sidebar-content-wrapper {
        opacity: 0;
        pointer-events: none;
    }
}

/* Sidebar toggle button - fixed to left edge of sidebar, vertically centered */
.sidebar-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-100%, -50%);
    width: 24px;
    height: 48px;
    border-radius: 12px 0 0 12px;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-right: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    padding: 0;
}

/* When sidebar is expanded, show the chevron pointing left (<) */
.sidebar-toggle svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* When sidebar is collapsed, rotate chevron to point right (>) */
.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(0deg);
}

.sidebar-toggle:hover {
    background: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
}

.sidebar-toggle:active {
    transform: translate(-100%, -50%) scale(0.95);
}

/* Hide toggle button when sidebar is collapsed on mobile */
@media (max-width: 768px) {
    .sidebar.collapsed .sidebar-toggle {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar-section {
    margin-bottom: 30px;
}

/* Photo Placeholder and About Section Styles */
.photo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.photo-placeholder svg {
    color: var(--text-secondary);
}

.about-short {
    text-align: center;
}

.about-short p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.template-grid {
    display: grid;
    gap: 12px;
}

.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
    transform: translateX(-5px);
}

.template-card.active {
    background: rgba(255, 69, 252, 0.15);
    border-color: var(--accent-pink);
}

.template-card.active .template-name {
    color: var(--accent-pink);
}

.template-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.template-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ALL POST Button */
.all-post-btn {
    display: inline-block;
    background: rgba(53, 132, 228, 0.2);
    border: 1px solid var(--accent-pink);
    border-radius: 6px;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-pink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.all-post-btn:hover {
    background: rgba(53, 132, 228, 0.3);
    border-color: var(--accent-pink-hover);
    color: var(--accent-pink-hover);
}

/* Theme Chooser */
.theme-chooser {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease, background var(--theme-transition-duration) ease, border-color var(--theme-transition-duration) ease, color var(--theme-transition-duration) ease;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
}

.theme-btn.active {
    background: rgba(255, 69, 252, 0.15);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Blog Layout Container - New Structure */
.blog-layout-container {
    display: block;
    margin-top: 20px;
}

/* About Layout Container - Same rectangle styling as blog */
.about-layout-container {
    display: block;
    margin-top: 20px;
}

/* Blog Main Content Area */
.blog-main-content {
    width: 100%;
    max-width: 100%;
}

/* Blog Posts List */
.blog-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Back to List Button */
.back-to-list-btn,
.back-to-intro-btn {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--btn-text);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    text-transform: none;
}

.back-to-list-btn:hover,
.back-to-intro-btn:hover {
    background: var(--btn-hover-bg);
    transform: translateX(-5px);
}

/* Blog Introduction View */
.blog-intro-view {
    width: 100%;
}

/* Blog Post View - ensures proper display when viewing individual posts */
.blog-post-view {
    width: 100%;
    display: block;
}

.blog-post-view .blog-article {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    line-height: 1.6;
    font-size: 12px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-intro-view .blog-article {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    line-height: 1.6;
    font-size: 12px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    transition: background var(--theme-transition-duration) ease, border-color var(--theme-transition-duration) ease;
}

.blog-intro-view h1 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-intro-view h2 {
    font-size: 17px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-intro-view h3 {
    font-size: 15px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-intro-view p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-intro-view blockquote {
    border-left: 4px solid var(--accent-pink);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-primary);
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 20px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

/* Blog Article */
.blog-article {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    line-height: 1.6;
    font-size: 12px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    transition: background var(--theme-transition-duration) ease, border-color var(--theme-transition-duration) ease;
}

.blog-article h1 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article h2 {
    font-size: 17px;
    margin: 30px 0 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article h3 {
    font-size: 15px;
    margin: 25px 0 12px;
    color: var(--text-primary);
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article ul, .blog-article ol {
    margin: 15px 0 15px 25px;
    color: var(--text-secondary);
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article li {
    margin-bottom: 8px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #e0e0e0;
}

.blog-article pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.blog-article pre code {
    background: transparent;
    padding: 0;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article blockquote {
    border-left: 4px solid var(--accent-pink);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.blog-article a {
    color: var(--accent-pink);
    text-decoration: none;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.blog-article a:hover {
    color: var(--accent-pink-hover);
    text-decoration: underline;
}

.blog-article strong {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

/* Blog Sidebar (in main sidebar) */
.sidebar-section.blog-only {
    /* Visibility controlled by JavaScript based on current page */
}

.post-selector-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.post-selector-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-selector-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
    transform: translateX(-5px);
}

.post-selector-item.active {
    background: rgba(255, 69, 252, 0.15);
    border-color: var(--accent-pink);
}

.post-selector-item.active .post-selector-title {
    color: var(--accent-pink);
}

.post-selector-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.post-selector-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Category Filter in Sidebar - REMOVED */

.blog-post-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0;
}

@media (max-width: 900px) {
    .blog-post-selector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin: 6px 0;
    }
}

@media (max-width: 480px) {
    .blog-post-selector-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        margin: 4px 0;
    }
}

.blog-card {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: visible;
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    background: rgba(255, 69, 252, 0.1);
    border-color: var(--accent-pink);
    transform: translateX(4px);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.blog-image {
    width: auto;
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    line-height: 1;
}

.blog-content {
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

.blog-title {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-primary);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-wrap: break-word;
    line-height: 1.1;
    max-width: none;
}

.blog-excerpt {
    display: none;
}

.blog-meta {
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

/* Mobile responsive - compact list */
@media (max-width: 900px) {
    .blog-post-selector-grid {
        gap: 3px;
        margin: 3px 0;
    }
    
    .blog-card {
        padding: 2px 3px;
        gap: 3px;
    }
    
    .blog-image {
        font-size: 0.85rem;
    }
    
    .blog-title {
        font-size: 0.7rem;
    }
    
    .blog-meta {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .blog-post-selector-grid {
        gap: 2px;
        margin: 2px 0;
    }
    
    .blog-card {
        padding: 2px 3px;
        gap: 2px;
    }
    
    .blog-image {
        font-size: 0.8rem;
    }
    
    .blog-title {
        font-size: 0.65rem;
    }
    
    .blog-meta {
        font-size: 0.5rem;
    }
}

.read-more {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.read-more:hover {
    color: var(--accent-pink-hover);
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* About Hero Section */
.about-hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-pink);
    box-shadow: 0 4px 15px rgba(53, 132, 228, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero .subtitle {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-content {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.features-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.features-list li {
    margin-bottom: 8px;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    /* On mobile, sidebar is collapsed by default but toggle button remains visible */
    .sidebar.collapsed {
        width: 0;
        opacity: 0;
        transform: translateX(20px);
        pointer-events: none;
    }
    
    .sidebar:not(.collapsed) {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
    
    .content-area {
        max-width: 100vw;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .home-title {
        font-size: 32px;
    }
    
    .abstract-geometric {
        width: 200px;
        height: 200px;
    }
    
    .shape-1 { width: 100px; height: 100px; }
    .shape-2 { width: 80px; height: 80px; }
    .shape-3 { width: 60px; height: 60px; }
    .shape-4 { width: 50px; height: 50px; }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(71, 114, 179, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Pulse animation for button */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Blog Buttons Container (kamikami.eu style) */
.blog-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 18px 0;
}

/* Blog Button Style (inspired by kamikami.eu mc-btn) */
.blog-btn {
    font-size: 0.7rem; /* Reduced from 0.8rem */
    padding: 8px 15px; /* Reduced from 15px 25px */
    background: linear-gradient(135deg, var(--accent-pink) 0%, #3a5a8f 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 114, 179, 0.4);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.blog-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(71, 114, 179, 0.6);
    filter: brightness(1.1);
}

.blog-btn:active {
    transform: translateY(-1px);
}

.blog-btn i {
    font-size: 1.2rem;
}

/* Category-specific button colors */
.blog-btn.category-tutorial {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}
.blog-btn.category-tutorial:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.blog-btn.category-blog {
    background: linear-gradient(135deg, #3584e4 0%, #3a5a8f 100%);
    box-shadow: 0 4px 15px rgba(53, 132, 228, 0.4);
}
.blog-btn.category-blog:hover {
    box-shadow: 0 6px 20px rgba(53, 132, 228, 0.6);
}

.blog-btn.category-technology {
    background: linear-gradient(135deg, #e83e8c 0%, #c7254e 100%);
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.4);
}
.blog-btn.category-technology:hover {
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.6);
}

.blog-btn.category-legal {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}
.blog-btn.category-legal:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
}

/* Fun category (cat pictures button) */
.blog-btn.category-fun {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.blog-btn.category-fun:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* My Blog button - Pastel Teal */
.blog-btn.category-blog-home {
    background: linear-gradient(135deg, #5DBFBF 0%, #4A9E9E 100%);
    box-shadow: 0 4px 15px rgba(93, 191, 191, 0.4);
}
.blog-btn.category-blog-home:hover {
    box-shadow: 0 6px 20px rgba(93, 191, 191, 0.6);
}

.blog-btn.category-monitoring {
    background: linear-gradient(135deg, #5DBFBF 0%, #4A9E9E 100%);
    box-shadow: 0 4px 15px rgba(93, 191, 191, 0.4);
}
.blog-btn.category-monitoring:hover {
    box-shadow: 0 6px 20px rgba(93, 191, 191, 0.6);
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(100);
        opacity: 0;
    }
}

/* Mobile Navigation Tray Styles */
.mobile-tray-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
    color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-tray-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .mobile-tray-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto; /* Push to rightmost position */
        order: 10; /* Ensure it's last in flex container */
    }
    
    /* Keep nav items visible on mobile but adjust spacing */
    .header-right .nav-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Mobile Tray Overlay */
.mobile-tray-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-tray-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Tray */
.mobile-nav-tray {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-tray.open {
    transform: translateY(0);
}

.mobile-tray-content {
    padding: 20px;
}

.mobile-tray-section {
    margin-bottom: 25px;
}

.mobile-tray-section:last-child {
    margin-bottom: 0;
}

.mobile-tray-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Theme Chooser in Mobile Tray */
.mobile-theme-chooser {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    width: 100%;
    font-family: 'MesloLGS NF', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.mobile-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
}

.mobile-theme-btn.active {
    background: rgba(255, 69, 252, 0.15);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

/* Photo Placeholder in Mobile Tray */
.mobile-photo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.mobile-photo-placeholder svg {
    color: var(--text-secondary);
}

.mobile-about-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* Post List in Mobile Tray */
.mobile-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-post-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-post-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
}

.mobile-post-item.active {
    background: rgba(255, 69, 252, 0.15);
    border-color: var(--accent-pink);
}

.mobile-post-item.active .mobile-post-title {
    color: var(--accent-pink);
}

.mobile-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mobile-post-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Navigation Links in Mobile Tray */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
}

.mobile-nav-item.active {
    background: rgba(255, 69, 252, 0.15);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

/* Prevent body scroll when tray is open */
body.mobile-tray-open {
    overflow: hidden;
}

/* Footer Styles */
footer {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Loading Spinner Animation for Lazy Loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(53, 132, 228, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-pink);
    animation: spin 0.8s linear infinite;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 15px;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Hover preview indicator for lazy-loaded items */
.post-selector-item:hover {
    cursor: pointer;
}

.post-selector-item.preloading::after {
    content: '⏳';
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.7;
}

/* Smooth fade-in for loaded content */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-content {
    animation: fadeInContent 0.3s ease-out;
}

/* Lazy Loading Image Styles */
.lazy-image {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.6;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image.loading {
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

.lazy-image.error {
    opacity: 0.3;
    filter: grayscale(100%);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}
