/*
Theme Name: Minimal Portfolio
Version: 1.0
Author: Joakim Johansson
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #fafafa;
    color: #1f1f1f;
    line-height: 1.5;
    font-size: 14px;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e6e6e6;
    padding: 24px 0 24px 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.logo {
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.logo h1 {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

.logo p {
    color: #666666;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 400;
}

.nav-menu {
    list-style: none;
    padding: 8px 12px;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #666666;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: #1f1f1f;
    background: #f7f7f7;
}

.nav-link.active {
    color: #1f1f1f;
    background: #f0f4ff;
    font-weight: 500;
}

.nav-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    opacity: 0.6;
    stroke-width: 1.5;
}

.nav-link.active .nav-icon {
    opacity: 0.8;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

.content-wrapper {
    max-width: 800px;
    padding: 40px 32px;
    margin: 0 auto;
}

/* Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: #666666;
    font-weight: 400;
}

/* Blog Feed */
.blog-post {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.15s ease;
}

.blog-post:hover {
    border-color: #d0d0d0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666666;
}

.post-date {
    color: #666666;
}

.post-category {
    color: #666666;
    position: relative;
}

.post-category:before {
    content: "•";
    margin-right: 12px;
    color: #d0d0d0;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-excerpt {
    color: #444444;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.read-more {
    color: #1f1f1f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.read-more:hover {
    color: #666666;
}

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

.project-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.project-card:hover {
    border-color: #d0d0d0;
}

.project-image {
    width: 100%;
    height: 160px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 32px;
    border-bottom: 1px solid #e6e6e6;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f1f1f;
}

.project-description {
    color: #666666;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f7f7f7;
    color: #666666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Shop Layout */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    color: #1f1f1f;
    border-color: #d0d0d0;
}

.filter-btn.active {
    background: #1f1f1f;
    color: #ffffff;
    border-color: #1f1f1f;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.product-card:hover {
    border-color: #d0d0d0;
}

.product-image {
    width: 100%;
    height: 180px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 28px;
    border-bottom: 1px solid #e6e6e6;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f1f1f;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 12px;
}

.add-to-cart {
    width: 100%;
    padding: 8px;
    background: #1f1f1f;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.add-to-cart:hover {
    background: #333333;
}

/* About Page */
.about-content {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 32px;
}

.about-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f1f1f;
}

.about-content p {
    color: #444444;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 32px;
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1f1f1f;
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #1f1f1f;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.submit-btn {
    background: #1f1f1f;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.submit-btn:hover {
    background: #333333;
}

/* WordPress specific styles */
.wp-block-image {
    margin: 20px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.alignwide {
    width: 100%;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 24px 20px;
        padding-top: 60px;
    }

    .page-title {
        font-size: 24px;
    }

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

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-post {
        padding: 20px;
    }

    .about-content,
    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 20px 16px;
        padding-top: 60px;
    }

    .blog-post {
        padding: 16px;
    }

    .about-content,
    .contact-form {
        padding: 20px;
    }
}