:root {
    --bg: #020617;
    --bg-elevated: #020617;
    --bg-card: #020617;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --accent: #36d1e8;
    --accent-soft: rgba(54, 209, 232, 0.12);
    --accent-strong: #168db6;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-softer: #6b7280;
    --chip-bg: #020617;
    --chip-border: rgba(148, 163, 184, 0.4);
    --chip-active-bg: rgba(54, 209, 232, 0.16);
    --chip-active-border: #36d1e8;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.95);
    --radius-lg: 18px;
}

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

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Segoe UI, sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 28%, #020617 73%, #020617 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 6vw;
    backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.88));
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #36d1e8, #36d1e8 30%, #174666 70%);
    color: #07283a;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 18px 40px rgba(54, 209, 232, 0.5);
}

.logo-text h1 {
    font-size: 1.1rem;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.1rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #36d1e8, #168db6);
    transition: width 140ms ease-out;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Layout */

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1.1fr);
    gap: 2rem;
    padding: 2rem 6vw 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Hero */

.hero {
    padding: 1.6rem 1.8rem 1.8rem;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background:
        radial-gradient(circle at top left, rgba(54, 209, 232, 0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.04), transparent 50%),
        rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow-soft);
}

.hero h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--text-muted);
    max-width: 38rem;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.btn {
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 120ms ease-out, border-color 120ms ease-out;
}

.btn.primary {
    background: linear-gradient(to right, #36d1e8, #168db6);
    border-color: #36d1e8;
    color: #07283a;
    box-shadow: 0 16px 38px rgba(54, 209, 232, 0.45);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(54, 209, 232, 0.55);
}

.btn.ghost {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-main);
}

.btn.ghost:hover {
    border-color: #36d1e8;
}

/* Topics */

.topics h3 {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    border-radius: 999px;
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.25rem 0.9rem;
    cursor: pointer;
    transition: border-color 120ms ease-out, background 120ms ease-out, color 120ms ease-out, transform 120ms ease-out;
}

.chip.active {
    background: var(--chip-active-bg);
    border-color: var(--chip-active-border);
    color: #d2f8ff;
}

.chip:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Articles */

.articles {
    margin-top: 1rem;
}

/* dynamically rendered articles */
#articles-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
    padding: 1rem 1.2rem 1.1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.card.article {
    position: relative;
    overflow: hidden;
}

.card.article::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0;
    background: radial-gradient(circle at top right, rgba(54, 209, 232, 0.18), transparent 60%);
    transition: opacity 170ms ease-out;
    z-index: 0;
}

.card.article:hover::before {
    opacity: 1;
}

.card.article:hover {
    border-color: rgba(54, 209, 232, 0.45);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.meta {
    font-size: 0.75rem;
    color: var(--text-softer);
}

.card h4 {
    position: relative;
    z-index: 1;
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.card p {
    position: relative;
    z-index: 1;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.link-button {
    position: relative;
    z-index: 1;
    margin-top: 0.6rem;
    padding: 0;
    font-size: 0.8rem;
    border: none;
    background: transparent;
    color: #b0edfa;
    cursor: pointer;
    text-decoration: none;
}

.link-button:hover {
    text-decoration: underline;
}

/* Tags */

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tag-dotnet {
    background: var(--accent-soft);
    color: #d2f8ff;
    border: 1px solid rgba(54, 209, 232, 0.5);
}

.tag-sql {
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag-rabbitmq {
    background: rgba(249, 115, 22, 0.12);
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.45);
}

/* background-services tag + legacy .tag-background alias */
.tag-background,
.tag-background-services {
    background: rgba(147, 51, 234, 0.12);
    color: #e9d5ff;
    border: 1px solid rgba(147, 51, 234, 0.45);
}

/* Architecture tag */
.tag-architecture {
    background: rgba(124, 58, 237, 0.15);
    color: #e9d5ff;
    border: 1px solid rgba(124, 58, 237, 0.5);
}

/* AI tag */
.tag-ai {
    background: rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.7);
}

/* Sidebar */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card p {
    font-size: 0.88rem;
}

.about-card .note {
    margin-top: 0.5rem;
    color: #b0edfa;
    font-size: 0.8rem;
}

.roadmap-list {
    list-style: none;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.roadmap-list li+li {
    margin-top: 0.25rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.contact-card p {
    font-size: 0.86rem;
}

.contact-note {
    margin-top: 0.4rem;
    font-size: 0.76rem;
    color: var(--text-softer);
}

/* Links */

a {
    color: #b0edfa;
}

a.link {
    text-decoration: none;
}

a.link:hover {
    text-decoration: underline;
}

/* Home link (site title) */
.home-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.home-link:hover {
    text-decoration: none;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding: 0.9rem 6vw 1.3rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-softer);
}

/* Responsive */

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        order: -1;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 1.3rem 1.2rem 1.4rem;
    }

    .site-header {
        padding-inline: 1.4rem;
    }

    .main-layout {
        padding-inline: 1.4rem;
    }

    .site-footer {
        padding-inline: 1.4rem;
    }
}

/* About / avatar */

.about-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top left, #36d1e8, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.about-role {
    font-size: 0.78rem;
    color: var(--text-softer);
}

/* Support / Buy Me a Coffee */

.support-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-text {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.coffee-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(234, 179, 8, 0.6);
    background: radial-gradient(circle at top left, #facc15, #92400e);
    color: #1f2933;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.45);
    cursor: pointer;
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, filter 120ms ease-out;
}

.coffee-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.55);
    filter: brightness(1.05);
}

/* Topics page layout */

.topics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.topic-section {
    margin-bottom: 2rem;
    padding: 0.8rem 0.2rem 0.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.topic-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.topic-section-header h3 {
    font-size: 0.96rem;
}

.topic-section-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.topic-list {
    list-style: none;
    padding-left: 0;
}

.topic-list li {
    font-size: 0.9rem;
    margin: 0.1rem 0;
}

.topic-list a {
    color: #e5e7eb;
    text-decoration: none;
}

.topic-list a:hover {
    text-decoration: underline;
}

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

@media (min-width: 900px) {
    .topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* RSS / feed UI */

.rss-link {
    color: #fbbf24;
    margin-left: 1rem;
    font-weight: 600;
}

.rss-link:hover {
    text-decoration: underline;
}

/* RSS badge in header */
.rss-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-weight: 600;
}

.rss-badge:hover {
    background: rgba(251, 191, 36, 0.30);
    transition: 0.2s ease;
}

/* RSS icon (shared) */
.rss-icon,
.rss-foot-icon {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

/* Footer RSS link */
.rss-foot-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-weight: 600;
}

/* Feedly button */
.feedly-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #2ecc71;
    border-radius: 6px;
    color: #0b0b0b;
    font-weight: bold;
    text-decoration: none;
}

.feedly-button:hover {
    background: #4fe68c;
    transition: 0.2s ease;
}

/* Subscribe / follow */

.subscribe-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.subscribe-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.subscribe-input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #020617;
    color: #e5e7eb;
    font-size: 0.85rem;
}

.subscribe-input::placeholder {
    color: var(--text-softer);
}

.subscribe-input:focus {
    outline: none;
    border-color: #36d1e8;
    box-shadow: 0 0 0 1px rgba(54, 209, 232, 0.4);
}

.subscribe-button {
    margin-top: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #36d1e8, #168db6);
    color: #020617;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, filter 120ms ease-out;
    box-shadow: 0 10px 28px rgba(54, 209, 232, 0.4);
    text-decoration: none;
}

.subscribe-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 32px rgba(54, 209, 232, 0.5);
}

.subscribe-hint {
    font-size: 0.75rem;
    color: var(--text-softer);
}

/* Article count + pagination */

.article-count {
    margin: 0.75rem 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.no-articles {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 1rem 0;
}

.pagination {
    text-align: center;
    margin: 2rem 0 0;
}

.page-btn {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #4b5563;
    padding: 0.4rem 0.8rem;
    margin: 0 0.15rem;
    cursor: pointer;
    border-radius: 999px;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.page-btn:hover {
    background: #111827;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.page-btn.active {
    background: #2563eb;
    border-color: #2563eb;
}

/* follow.it embed overrides */

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-top: 30px !important;
    padding: clamp(17px, 5%, 40px) clamp(17px, 7%, 50px) !important;
    max-width: none !important;
    border-radius: 6px !important;
    box-shadow: 0 5px 25px rgba(34, 60, 47, 0.25) !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview,
.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview * {
    box-sizing: border-box !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-heading {
    width: 100% !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-heading h5 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field {
    margin-top: 20px !important;
    width: 100% !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field input {
    width: 100% !important;
    height: 40px !important;
    border-radius: 6px !important;
    border: 2px solid #e9e8e8 !important;
    background-color: #fff;
    outline: none !important;
    color: #000000 !important;
    font-family: "Montserrat" !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field input::placeholder {
    color: #000000 !important;
    opacity: 1 !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-submit-button {
    margin-top: 10px !important;
    width: 100% !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-submit-button button {
    width: 100% !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 6px !important;
    line-height: 0px !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-submit-button button:hover {
    cursor: pointer !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .powered-by-line {
    color: #231f20 !important;
    font-family: "Montserrat" !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 25px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 10px !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .powered-by-line img {
    margin-left: 10px !important;
    height: 1.13em !important;
    max-height: 1.13em !important;
}
/* Remove underline only for Fun Projects section */
.fun-projects a {
    text-decoration: none;
}

.fun-projects a:hover {
    text-decoration: underline;
}
.project-badge {
    font-size: 0.7rem;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #36d1e8;
    color: white;
    font-weight: 600;
}
/* HexGigs Backend Labs preview: maintain personal author byline, unify visual language. */
:root {
 --bg:#08182c; --bg-elevated:#0a1b31; --bg-card:#10243d;
 --border-subtle:rgba(154,196,230,.23);
 --accent:#36d1e8; --accent-soft:rgba(54,209,232,.13);
 --accent-strong:#168db6; --text-main:#eef6ff;
 --text-muted:#afc2d5; --text-softer:#8ba8c1;
 --chip-bg:#0d2138; --chip-border:rgba(154,196,230,.27);
 --chip-active-bg:rgba(54,209,232,.15); --chip-active-border:#36d1e8;
}
body { background:linear-gradient(180deg,#08182c,#0b1c33 38%,#08182c); }
.site-header { background:rgba(9,24,44,.97); border-bottom-color:rgba(140,194,232,.19); }
.logo-mark {
 border-radius:12px; background:linear-gradient(135deg,#38def0,#147aca);
 color:#07192b; box-shadow:0 8px 24px rgba(19,145,191,.22);
}
.logo-text h1 { font-size:1.13rem; font-weight:750; letter-spacing:-.015em; }
.logo-subtitle { color:#a7bfd7; }
.card { background:linear-gradient(145deg,#10243d,#0c1d34); box-shadow:0 10px 30px rgba(2,8,20,.3); }
.hero { background:radial-gradient(circle at 5% 0,rgba(38,148,201,.15),transparent 55%),#10243d; box-shadow:0 14px 40px rgba(2,9,19,.28); }
.btn.primary { box-shadow:0 12px 32px rgba(14,156,197,.2); }
.btn.primary:hover { box-shadow:0 15px 35px rgba(14,156,197,.29); }
.nav-corporate { border:1px solid rgba(97,190,226,.33); padding:6px 10px; border-radius:8px; color:#d9f6ff!important; background:rgba(30,83,119,.22); }
.nav-corporate:hover { background:rgba(30,83,119,.42); }
.site-footer { background:#0a1a2f; color:#a7bfd7; border-color:rgba(140,194,232,.19); }
@media(max-width:1200px) { .site-header { flex-wrap:wrap; } .nav-links { flex-wrap:wrap; gap:12px; } }
