/* public/engineering/engineering.css */
/* Page-specific styles for /engineering */

.recipes-shell {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1400px, 96vw);
    height: min(900px, 92vh);
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid #333;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
}

.recipes-left {
    border-right: 1px solid #222;
    padding: 18px;
    overflow: auto;
}

.recipes-right {
    padding: 30px 40px;
    overflow: auto;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 5, 5, 0.4);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
}

.recipes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.recipes-title {
    font-size: 1.2rem;
    color: #00ffcc;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.recipes-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tags-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #222;
}

.tag-filter {
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 1px solid #444;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.tag-filter:hover {
    border-color: #00ffcc;
    color: #00ffcc;
}

.tag-filter.active {
    background: rgba(0, 255, 204, 0.15);
    border-color: #00ffcc;
    color: #00ffcc;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

.recipe-item {
    border: 1px solid #333;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.15);
}

.recipe-item:hover {
    border-color: #00ffcc;
    box-shadow: 0 0 14px rgba(0, 255, 200, 0.12);
}

.recipe-item.active {
    border-color: #00ffcc;
    box-shadow: 0 0 18px rgba(0, 255, 200, 0.18);
}

.recipe-item-title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 6px;
}

.recipe-item-date {
    color: #00ffcc;
    opacity: 0.75;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.recipe-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.7rem;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    padding: 2px 6px;
    color: #00ffcc;
    opacity: 0.8;
}

.article-header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.article-meta {
    color: #00ffcc;
    opacity: 0.75;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.article-body {
    line-height: 1.55;
    color: #e0e0e0;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    color: #fff;
    margin: 18px 0 10px;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}

.article-body p { margin: 10px 0; }

.article-body a {
    color: #00ffcc;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0,255,204,0.6);
}

.article-body code {
    background: rgba(0, 255, 200, 0.08);
    padding: 2px 6px;
    border: 1px solid rgba(0, 255, 200, 0.15);
    border-radius: 4px;
}

.article-body pre {
    background: rgba(0,0,0,0.35);
    border: 1px solid #333;
    padding: 14px;
    overflow: auto;
    margin: 14px 0;
}

.article-body pre code {
    background: transparent;
    border: none;
    padding: 0;
}

.empty-state {
    opacity: 0.8;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .recipes-shell {
        grid-template-columns: 1fr;
        height: min(820px, 86vh);
    }
    .recipes-left {
        border-right: none;
        border-bottom: 1px solid #222;
    }
}
