#project-ideas { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; height: 25vh; height: 25dvh; box-sizing: border-box; padding: 8px 16px; background: #f7f7f6; color: #383e42; text-align: left; box-shadow: 0 -4px 18px #0002; display: flex; flex-direction: column; }
#project-ideas[hidden] { display: none; }
body.has-project-ideas .loading_overlay_wrapper { padding-bottom: calc(25vh + 80px); padding-bottom: calc(25dvh + 80px); }
body.has-project-ideas .discovery-footer { position: static; display: flex; justify-content: flex-end; align-items: baseline; gap: 8px 16px; padding: 0; border: 0; background: transparent; margin-left: auto; }
body.has-project-ideas .discovery-footer .loading_overlay_setting_link:first-child { margin-right: 0; }
.project-ideas-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex: 0 0 auto; flex-wrap: wrap; margin-bottom: 6px; }
.project-ideas-heading h2 { font-size: 16px; line-height: 1.2; margin: 0; }
.discovery-footer .loading_overlay_setting_link + .loading_overlay_setting_link { border-left: 1px solid #c7cbc9; padding-left: 12px; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .project-ideas-heading h2 {
        background-image: linear-gradient(105deg, #383e42 0%, #383e42 43%, #e25303 48%, #ffc586 50%, #e25303 52%, #383e42 57%, #383e42 100%);
        background-size: 300% 100%;
        background-position: 100% 0;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        animation: project-title-shine 10s ease-in-out infinite;
    }
}
@keyframes project-title-shine {
    0%, 80% { background-position: 100% 0; }
    95%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .project-ideas-heading h2 { animation: none; background: none; color: #383e42; }
}
@media (forced-colors: active) {
    .project-ideas-heading h2 { animation: none; background: none; color: CanvasText; }
}
.project-ideas-heading p, .project-ideas-footnote { display: none; }
#project-ideas-status { margin: 0; font-size: 12px; }
#project-ideas-status:empty { display: none; }
#project-ideas-refresh { padding: 4px 10px; border: 1px solid #aaa; border-radius: 6px; color: #383e42; background: white; cursor: pointer; font-size: 12px; }
#project-ideas-refresh:disabled { opacity: .5; cursor: wait; }
#project-ideas-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1; min-height: 0; }
.project-idea { position: relative; min-height: 0; background: #383e42; border-radius: 10px; overflow: hidden; }
.project-idea img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-idea-toggle { position: absolute; inset: 0; width: 100%; border: 0; padding: 12px; display: flex; align-items: flex-start; text-align: left; color: white; background: linear-gradient(#000a, transparent 80%); cursor: pointer; }
.project-idea h3 { font-size: 18px; line-height: 1.2; margin: 0; color: white; text-shadow: 0 1px 3px #000; }
.project-idea-body { position: absolute; bottom: 0; left: 0; right: 0; max-height: 75%; overflow: auto; box-sizing: border-box; padding: 12px; background: #fffffff2; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; transform: translateY(100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; }
.project-idea:hover .project-idea-body, .project-idea:focus-within .project-idea-body, .project-idea.is-open .project-idea-body { transform: translateY(0); visibility: visible; }
.project-idea-body details { min-width: 0; }
.project-idea-body summary { cursor: pointer; white-space: nowrap; }
.project-idea-body p { margin: 8px 0 0; }
.project-idea-body a { color: #1769aa; text-decoration: underline; overflow-wrap: anywhere; font-size: 13px; }
.project-idea-body { align-items: baseline; }
.project-idea-body summary, .project-idea-body .project-material-shop { font-size: 13px; line-height: 20px; }
.project-idea-body .project-material-shop, .project-idea-body .project-recommended-shop { flex-shrink: 0; color: #e25303; }
.project-material-shop .icon-cart, .project-recommended-shop .icon-cart { width: 28px; height: 28px; vertical-align: -9px; margin-left: 2px; color: #383e42; }
#project-ideas :focus-visible { outline: 3px solid #e25303; outline-offset: -3px; }
@media (max-width: 600px) { #project-ideas { padding: 6px 8px; } #project-ideas-cards { gap: 6px; } .project-idea h3 { font-size: 13px; } .project-idea-toggle { padding: 8px; } .project-idea-body { padding: 8px; flex-direction: column; gap: 8px; } .project-ideas-heading h2 { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .project-idea-body { transition: none; } }

.project-shop-links { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.project-recommendations { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 12px; color: #656b70; }
@media (max-width: 600px) { .project-shop-links, .project-recommendations { align-items: flex-start; text-align: left; } }
