/* ==========================================================================
   PROJECTEN PAGE STYLESHEET (projecten.css)
   ========================================================================== */

.projects-feed-section {
    padding: 80px 40px;
    background-color: #0b0b0b;
}

.projects-filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #888;
}

.filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill.active, .filter-pill:hover {
    background: #ff350d;
    border-color: #ff350d;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #ff350d;
}

.project-card-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-num {
    font-family: 'Space Mono', monospace;
    color: #ff350d;
    font-size: 0.85rem;
}

.project-cat {
    font-family: 'Space Mono', monospace;
    color: #aaa;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.project-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-body {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.project-card-body p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-metrics-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-block: 10px;
    border-block: 1px dashed rgba(255, 255, 255, 0.1);
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff350d;
}

.metric-lbl {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #888;
}

.project-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tech-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    padding: 4px 8px;
    border-radius: 2px;
}

.open-spec-btn {
    background: transparent;
    border: 1px solid #ff350d;
    color: #ff350d;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, color 0.3s ease;
}

.open-spec-btn:hover {
    background: #ff350d;
    color: #ffffff;
}

/* Interactive Drawer Component */
.project-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.project-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 680px;
    height: 100vh;
    background: #0f0f0f;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1001;
    padding: 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-drawer-overlay.active .project-drawer {
    transform: translateX(0);
}

.drawer-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.drawer-close-btn:hover {
    border-color: #ff350d;
    color: #ff350d;
}

.drawer-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-block: 15px;
    color: #fff;
}

.drawer-image {
    width: 100%;
    height: 260px;
    margin-block: 20px;
    overflow: hidden;
}

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

.drawer-body-text {
    line-height: 1.7;
    color: #ccc;
    font-size: 1rem;
}

.drawer-body-text h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ff350d;
    margin-top: 24px;
    margin-bottom: 8px;
}
