/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --text: #2c2c2c;
    --text-secondary: #6b6b6b;
    --text-light: #8a8a8a;
    --bg: #ffffff;
    --bg-light: #f7f8f9;
    --bg-section: #fafbfc;
    --border: #e1e4e8;
    --border-light: #eaecef;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #e0e0e0;
    --primary-light: #f5f5f5;
    --accent: #3b9bff;
    --accent-hover: #5aafff;
    --text: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-light: #888888;
    --bg: #0d1117;
    --bg-light: #161b22;
    --bg-section: #1c2128;
    --border: #30363d;
    --border-light: #21262d;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.98);
    transition: background 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(13, 17, 23, 0.98);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 0;
    filter: grayscale(0);
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--bg-section);
    transform: rotate(20deg);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:active {
    transform: rotate(20deg) scale(0.95);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-section);
}

[data-theme="dark"] .theme-toggle:hover {
    background: #2d2d2d;
    border-color: var(--accent);
}

/* Hero / Page Header */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 820px;
    line-height: 1.8;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Section Styles */
.section {
    padding: 4.5rem 0;
    background: var(--bg);
}

.section-alt {
    background: var(--bg-section);
}

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

.section-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.section-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-title a:hover {
    color: var(--accent);
}

.section-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.section-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.75rem;
}

/* Post Card - thehomelabber style */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card:hover .post-card-title {
    color: var(--accent);
}

.post-card-content {
    padding: 1.75rem;
}

.post-category {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.625rem;
}

.post-card-title {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    line-height: 1.35;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.post-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-light);
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-author {
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.post-date {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Featured Post */
.featured-post {
    margin-bottom: 3.5rem;
    border: 2px solid var(--primary);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.featured-post:hover {
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    background: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.featured-content {
    padding: 2.5rem;
    background: var(--bg);
}

.featured-content .post-card-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.featured-content .post-summary {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.service-meta {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.tech-badge {
    background: var(--bg-light);
    padding: 0.375rem 0.875rem;
    font-size: 0.6875rem;
    color: var(--text);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    border-radius: 4px;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
}

.status-internal {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-public {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-development {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.service-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Projects Grid (alias for services) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.project-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.project-meta {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.project-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.skill-badge {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.skill-badge:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Timeline Section */
.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 80px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 60px;
    text-align: center;
}

.timeline-content {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Full Post Page */
.post-full {
    max-width: 1140px;
    margin: 0 auto;
    padding: 4rem 0;
}

.post-header {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--border);
}

.post-header h1 {
    font-size: 2.75rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2 {
    font-size: 1.875rem;
    margin: 3rem 0 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
    color: var(--primary);
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content ul,
.post-content ol {
    margin: 1.75rem 0 1.75rem 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.post-content strong {
    font-weight: 700;
    color: var(--primary);
}

.post-content code {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--primary);
}

.post-content pre {
    background: #f6f8fa;
    padding: 1.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: var(--text);
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
}

.comments-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 700;
}

.comments-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 600;
}

#comments-container {
    margin-bottom: 3rem;
    min-height: 50px;
}

.comment {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.comment:hover {
    box-shadow: var(--shadow-md);
}

.comment-reply {
    margin-left: 2rem;
    margin-top: 1rem;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    word-wrap: break-word;
}

.comment-form {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.comment-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

#comment-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
}

#comment-status:not(:empty) {
    background: var(--bg-section);
    border: 1px solid var(--border);
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.no-comments {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}


/* About Page */
.about-content {
    padding: 2rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.about-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about-section ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.about-section li {
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    padding-left: 1.75rem;
    position: relative;
}

.about-section li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.25rem;
}

.about-section li strong {
    color: var(--primary);
    font-weight: 700;
}

.architecture-section .architecture-figure {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.architecture-image-btn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    width: 100%;
    text-align: left;
}

.architecture-figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: 0;
    border-radius: 6px;
    background: var(--bg);
}

.architecture-caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.architecture-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.92);
    display: none;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    z-index: 999;
}

.architecture-lightbox.is-open {
    display: flex;
}

.architecture-lightbox img {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg);
}

.architecture-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.architecture-lightbox-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.architecture-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.architecture-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Page Header */
.page-header {
    padding: 4rem 0 2.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Posts List (Blog Page) */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-preview {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 3rem;
}

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

.post-preview h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.post-preview h2 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-preview h2 a:hover {
    color: var(--accent);
}

.post-preview p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.read-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-light);
    border-top: 2px solid var(--border);
    padding: 3.5rem 0 2.5rem;
    margin-top: 5rem;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.footer-links {
    margin-top: 1.25rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 0 1.5rem;
}

.admin-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.admin-form {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 300px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    min-height: 44px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
}

.tag-input-field {
    border: none;
    outline: none;
    flex: 1;
    min-width: 150px;
    padding: 0.25rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
}

.btn-primary {
    background: transparent;
    color: var(--text) !important;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text) !important;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg) !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.posts-list-admin {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.posts-list-admin h2 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-item-admin {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.post-item-admin:hover {
    background: var(--bg-light);
}

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

.post-item-info h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.post-item-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.success-message.show {
    display: block;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    display: none;
}

.error-message.show {
    display: block;
}

.help-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.char-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.25rem;
}

/* Tags & Filters */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.post-header .post-tags {
    margin-top: 1.5rem;
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text);
    padding: 0.375rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.filter-btn {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
}

.filter-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* Tech Stack Section */
.tech-stack {
    padding: 4rem 0;
}

.tech-stack h2 {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.tech-stack h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.tech-category {
    background: var(--bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tech-category h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9375rem;
}

.tech-category li:last-child {
    border-bottom: none;
}

/* Setup Grid for About Page */
.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.setup-item {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.setup-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.setup-item ul {
    list-style: none;
    padding: 0;
}

.setup-item li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.25rem;
}

.setup-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

    .nav-links {
        gap: 1rem;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .filters {
        gap: 0.75rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumbs .separator {
    color: var(--text-light);
    margin: 0 0.25rem;
}

.breadcrumbs span:last-child {
    color: var(--text);
}

/* 404 Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.error-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-section);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--accent);
}

.error-suggestions {
    text-align: left;
    background: var(--bg-section);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.error-suggestions h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.error-suggestions ul {
    list-style: none;
}

.error-suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.error-suggestions li:last-child {
    border-bottom: none;
}

.error-suggestions a {
    color: var(--accent);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-suggestions a:hover {
    color: var(--accent-hover);
}

/* Post Views Badge */
.post-views {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.post-views::before {
    content: "👁️";
    font-size: 1rem;
}
