/* Projects page styles (moved from templates/pages/projects.html) */
/* ===== Projects Page ===== */

/* Featured Cards — Full width, stacked, rich */
.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-bottom: 60px;
}

.feat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: var(--card-shadow);
}

.feat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--primary-bg), color-mix(in srgb, var(--primary-bg) 30%, transparent));
    border-radius: 18px 0 0 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.feat-card:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateX(6px);
    box-shadow: 0 8px 40px color-mix(in srgb, var(--glow) 18%, transparent);
}

.feat-card:hover::after { opacity: 1; }
.feat-card.visible { opacity: 1; transform: translateY(0); }

.fc-icon-box {
    width: 60px;
    height: 60px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.feat-card:hover .fc-icon-box {
    background: color-mix(in srgb, var(--primary-bg) 20%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--glow) 25%, transparent);
}

.fc-body { min-width: 0; }

.fc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.fc-badge {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: var(--card-shadow);
}

.fc-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.fc-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
}

.fc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fc-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    box-shadow: var(--card-shadow);
}

.fc-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    white-space: nowrap;
}

.fc-btn.primary {
    background: color-mix(in srgb, var(--primary-bg) 20%, transparent);
    color: var(--primary);
    border: 1px solid var(--border);
}

.fc-btn.primary:hover {
    background: color-mix(in srgb, var(--primary-bg) 35%, transparent);
    color: var(--text);
    box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 35%, transparent);
}

.fc-btn.ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.fc-btn.ghost:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

/* Category Sections */
.cat-section {
    width: 100%;
    margin-bottom: 44px;
    transition: all 0.4s ease;
}

.cat-section.visible { opacity: 1; transform: translateY(0); }

.cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.cat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.cat-count {
    font-size: 0.65rem;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
    box-shadow: var(--card-shadow);
}

/* Project list */
.proj-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.proj-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: var(--card-shadow);
}

.proj-item:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateY(-2px);
}

.proj-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-bg);
    flex-shrink: 0;
    transition: all 0.22s;
}

.proj-item:hover .proj-dot {
    background: var(--primary-bg);
    box-shadow: 0 0 8px color-mix(in srgb, var(--glow) 70%, transparent);
}

.proj-body { flex: 1; min-width: 0; }

.proj-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.proj-desc-sm {
    font-size: 0.72rem;
    color: color-mix(in srgb, var(--muted) 75%, transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proj-arrow {
    color: color-mix(in srgb, var(--primary) 35%, transparent);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.22s;
}

.proj-item:hover .proj-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

@media (max-width: 620px) {
    .feat-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .fc-side {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    .proj-list { grid-template-columns: 1fr; }
}
