/* Minimalist Technical Blog Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography & Colors */
:root {
    --background: #f4f6f8;
    --card-background: #ffffff;
    --primary-text: #222222;
    --secondary-text: #666666;
    --accent-color: #2b6cb0;
    --accent-hover: #3182ce;
    --border-color: #e5e7eb;
    --header-font: 'Fira Code', 'Courier New', monospace;
    --body-font: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    background-color: var(--background);
    color: var(--primary-text);
}

/* Header - Banner Style */
.header-banner {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.header-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.header-banner h1 {
    font-family: var(--header-font);
    font-size: 2em;
    color: var(--primary-text);
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.header-banner p {
    font-size: 1.1em;
    color: var(--primary-text);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Navigation */
nav {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 15px 25px;
    color: var(--primary-text);
    text-decoration: none;
    font-family: var(--body-font);
    font-size: 0.95em;
    transition: color 0.2s, background 0.2s;
}

nav ul li a:hover {
    color: var(--accent-color);
    background: var(--background);
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

/* Main Content Area */
.main-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Sidebar */
.sidebar {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    height: fit-content;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--card-background);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-family: var(--header-font);
    font-size: 0.9em;
    color: var(--primary-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 400;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 5px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: var(--body-font);
    font-size: 0.9em;
    background: var(--background);
    color: var(--primary-text);
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-form button {
    padding: 10px 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 0.9em;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #555;
}

/* Categories & Tags Lists */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    color: var(--primary-text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    transition: color 0.2s;
}

.sidebar-list li a:hover {
    color: var(--accent-color);
}

.count {
    background: var(--background);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: var(--secondary-text);
    font-family: var(--header-font);
}

/* Tags Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--background);
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--primary-text);
    font-size: 0.85em;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--border-color);
}

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

/* Date Archives */
.date-archives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.date-archives li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.date-archives li:last-child {
    border-bottom: none;
}

.date-archives li a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.date-archives li a:hover {
    color: var(--accent-color);
}

/* Links Widget */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list li a {
    color: var(--primary-text);
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    transition: color 0.2s;
}

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

.links-list li span {
    display: block;
    font-size: 0.8em;
    color: var(--secondary-text);
    margin-top: 3px;
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 2px solid var(--border-color);
}

.author-widget h4 {
    color: var(--primary-text);
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: 600;
}

.author-widget p {
    color: var(--secondary-text);
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.2em;
}

.author-social a {
    text-decoration: none;
    transition: transform 0.2s;
}

.author-social a:hover {
    transform: scale(1.1);
}

/* Post Cards */
.post {
    background: var(--card-background);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}

.post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post:last-child {
    margin-bottom: 0;
}

.post h2 {
    color: var(--primary-text);
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
}

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

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

.post-meta {
    color: var(--secondary-text);
    font-size: 0.85em;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-family: var(--header-font);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content {
    margin-bottom: 20px;
    color: var(--primary-text);
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.01);
}

.post-content img.lightbox-image {
    cursor: pointer;
}

.post-tags {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    background: var(--background);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    text-decoration: none;
    color: var(--primary-text);
    border: 1px solid var(--border-color);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.post-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85em;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 0.9em;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: #666;
}

.btn-secondary:hover {
    background: #555;
}

/* Comments */
.comment {
    background: var(--background);
    padding: 15px;
    margin: 10px 0;
    border-left: 2px solid var(--accent-color);
    border-radius: 0 4px 4px 0;
}

.comment-meta {
    font-family: var(--header-font);
    font-size: 0.85em;
    color: var(--primary-text);
    margin-bottom: 8px;
    font-weight: 600;
}

.comment-content {
    color: var(--primary-text);
    line-height: 1.6;
}

/* Pages */
.page-content {
    background: var(--card-background);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.page-content h1 {
    color: var(--primary-text);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.page-content h2 {
    color: var(--primary-text);
    margin: 20px 0 10px 0;
    font-size: 1.4em;
}

/* Lightbox styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

/* Footer */
footer {
    background: var(--card-background);
    color: var(--primary-text);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media only screen and (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: 2;
    }
}

@media only screen and (max-width: 768px) {
    .header-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li a {
        padding: 10px 15px;
        border-left: none;
    }
    
    .lightbox-content {
        width: 95%;
        height: 95%;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 30px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-text);
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.9em;
    font-family: var(--body-font);
    background: var(--background);
    color: var(--primary-text);
}

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

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

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

.success {
    background: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 3end;
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 12px;
    background: var(--card-background);
    color: var(--primary-text);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination a.disabled {
    background: var(--background);
    color: var(--secondary-text);
    pointer-events: none;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: var(--card-background);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--header-font);
}

.status-planning {
    background: #f59e0b;
    color: white;
}

.status-in-progress {
    background: var(--accent-color);
    color: white;
}

.status-completed {
    background: #10b981;
    color: white;
}

.status-on-hold {
    background: #6b7280;
    color: white;
}

.project-card h2 {
    color: var(--primary-text);
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.project-description {
    color: var(--secondary-text);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.9em;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85em;
    color: var(--secondary-text);
    font-family: var(--header-font);
    flex-wrap: wrap;
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 15px;
    background: var(--card-background);
}

.gallery-caption p {
    margin: 0 0 5px 0;
    color: var(--primary-text);
    font-size: 0.9em;
    font-weight: 500;
}

.gallery-caption small {
    color: var(--secondary-text);
    font-size: 0.8em;
}

.gallery-caption small a {
    color: var(--accent-color);
    text-decoration: none;
}

.gallery-caption small a:hover {
    text-decoration: underline;
}

/* Category Filter */
.category-filter {
    margin: 20px 0;
    padding: 15px;
    background: var(--card-background);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.category-filter strong {
    margin-right: 10px;
    font-size: 0.9em;
}

.category-filter a {
    padding: 6px 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--primary-text);
    font-size: 0.85em;
    transition: all 0.2s;
}

.category-filter a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.category-filter a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* GDPR Consent Banner */
.gdpr-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    color: var(--primary-text);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
    transition: opacity 0.3s;
}

.gdpr-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gdpr-consent-content p {
    flex: 1;
    margin: 0;
    font-size: 0.9em;
    color: var(--secondary-text);
}

.gdpr-consent-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gdpr-consent-buttons .btn {
    padding: 8px 16px;
    font-size: 0.85em;
}

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

.btn-accept:hover {
    background: var(--accent-hover);
}

.btn-decline {
    background: #666;
}

.btn-decline:hover {
    background: #555;
}

.btn-privacy {
    background: transparent;
    color: var(--primary-text);
    border: 1px solid var(--border-color);
}

.btn-privacy:hover {
    background: var(--background);
}

/* Social Sharing */
.social-share-container {
    margin: 30px 0;
    padding: 20px;
    background: var(--card-background);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.social-share-container h3 {
    margin-bottom: 15px;
    color: var(--primary-text);
    font-size: 1em;
    font-weight: 600;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

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

.share-twitter {
    background: #1DA1F2;
}

.share-facebook {
    background: #4267B2;
}

.share-linkedin {
    background: #0077B5;
}

.share-reddit {
    background: #FF4500;
}

.share-copy {
    background: #6c757d;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Related Posts */
.related-posts {
    margin: 40px 0;
    padding: 25px;
    background: var(--card-background);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 20px;
    color: var(--primary-text);
    font-size: 1.2em;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: var(--card-background);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-post-card a {
    text-decoration: none;
    color: inherit;
}

.related-post-card h4 {
    color: var(--primary-text);
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: 600;
}

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

.related-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.8em;
    color: var(--secondary-text);
    font-family: var(--header-font);
}

.related-post-card p {
    color: var(--secondary-text);
    font-size: 0.85em;
    line-height: 1.5;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: transparent;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px 15px;
    color: var(--primary-text);
    transition: transform 0.2s;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Dark Mode Support */
[data-theme="dark"] {
    --background: #1a1a2e;
    --card-background: #16213e;
    --primary-text: #e0e0e0;
    --secondary-text: #a0a0a0;
    --accent-color: #4a90e2;
    --accent-hover: #6ab0ff;
    --border-color: #4a3b8a;
}

[data-theme="dark"] body {
    background-color: var(--background);
    color: var(--primary-text);
}

[data-theme="dark"] .header-banner {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] nav {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .post,
[data-theme="dark"] .page-content,
[data-theme="dark"] .project-card,
[data-theme="dark"] .gallery-item,
[data-theme="dark"] .category-filter,
[data-theme="dark"] .social-share-container,
[data-theme="dark"] .related-posts,
[data-theme="dark"] .related-post-card {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-form input[type="text"],
[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="email"],
[data-theme="dark"] .form-group input[type="password"],
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: #1a1a2e;
    color: var(--primary-text);
    border-color: var(--border-color);
}

[data-theme="dark"] .tag,
[data-theme="dark"] .post-tag,
[data-theme="dark"] .category-filter a {
    background: #1a1a2e;
    border-color: var(--border-color);
}

[data-theme="dark"] .tag:hover,
[data-theme="dark"] .post-tag:hover,
[data-theme="dark"] .category-filter a:hover,
[data-theme="dark"] .category-filter a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

[data-theme="dark"] .sidebar-list li,
[data-theme="dark"] .date-archives li,
[data-theme="dark"] .links-list li {
    border-color: var(--border-color);
}

[data-theme="dark"] .count {
    background: #1a1a2e;
    color: var(--secondary-text);
}

[data-theme="dark"] .gdpr-consent-banner {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .social-share-container,
[data-theme="dark"] .related-posts {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] footer {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .pagination a {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .pagination a:hover,
[data-theme="dark"] .pagination a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

[data-theme="dark"] .pagination a.disabled {
    background: #1a1a2e;
    color: var(--secondary-text);
}

[data-theme="dark"] .comment {
    background: #1a1a2e;
    border-left-color: var(--accent-color);
}

[data-theme="dark"] .error {
    background: #7f1d1d;
    color: #b91c1c;
    border-color: #7f1d1d;
}

[data-theme="dark"] .success {
    background: #064e3b;
    color: #065f46;
    border-color: #064e3b;
}
