/* Tattoo ideas gallery: masonry cards, type badges, filters and saved ideas. */
.ideas-head { max-width: 1440px; margin: auto; padding: 56px 5% 40px; }
.ideas-head h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 14px; }
.ideas-head .lead { max-width: 640px; }
.ideas-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 13px; color: #b9b0a0; margin: 0 0 30px; }
.ideas-key span:not(.idea-badge) { margin-right: 12px; }

.idea-badge { display: inline-block; font: 500 11px/1.4 system-ui, sans-serif; letter-spacing: .04em; padding: 3px 8px; border-radius: 2px; }
.idea-badge.real { background: #d8bb81; color: #1b1914; }
.idea-badge.concept { background: rgba(16, 15, 13, .84); color: #f3eee4; border: 1px solid rgba(243, 238, 228, .75); }
.idea-badge.source { background: #2f4a66; color: #e3eef9; }

.ideas-controls { display: grid; gap: 16px; margin-bottom: 28px; }
.ideas-tabs { display: flex; gap: 4px; border-bottom: 1px solid #39372e; }
.ideas-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: #b9b0a0; font: 15px/1.4 system-ui, sans-serif; padding: 10px 16px; cursor: pointer; }
.ideas-tabs button[aria-pressed="true"] { color: #eee8dc; border-bottom-color: #edcd8a; }
.ideas-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.ideas-chips span { color: #8b8475; margin-right: 6px; }
.ideas-chips button { background: none; border: 1px solid #484237; border-radius: 999px; color: #d6cfc2; padding: 5px 13px; font: 13px/1.4 system-ui, sans-serif; cursor: pointer; }
.ideas-chips button[aria-pressed="true"] { background: #d8bb81; border-color: #d8bb81; color: #1b1914; }

.ideas-grid { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 16px; }
.ideas-grid.compact { columns: 3 200px; }
.ideas-grid.series { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.idea-card { break-inside: avoid; position: relative; margin: 0 0 24px; }
.idea-card > a { display: block; }
.idea-photo { display: block; position: relative; border-radius: 6px; overflow: hidden; background: #0c0c0a; }
.idea-photo img { width: 100%; height: auto; transition: transform .5s; }
.idea-card > a:hover img { transform: scale(1.03); }
.idea-photo .idea-badge { position: absolute; left: 9px; top: 9px; max-width: calc(100% - 58px); }
.idea-name { display: block; font-family: Georgia, 'Noto Serif SC', serif; font-size: 17px; margin-top: 9px; color: #eee8dc; }
.idea-meta { display: block; font-size: 12.5px; color: #9a9285; }
.idea-heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: rgba(16, 15, 13, .62); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #eee8dc; }
.idea-heart svg { width: 17px; height: 17px; fill: none; stroke: #f3eee4; stroke-width: 2; }
.idea-heart[aria-pressed="true"] svg { fill: #ff6b6b; stroke: #ff6b6b; }
.idea-heart.wide { position: static; width: auto; height: auto; border-radius: 0; border: 1px solid #514a3d; background: none; gap: 8px; padding: 14px 20px; font: 14px/1.6 system-ui, sans-serif; }
.ideas-empty { color: #b9b0a0; }
.idea-about { display: block; font-size: 12.5px; line-height: 1.6; color: #b9b0a0; margin-top: 4px; }

.fav-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); background: #1d1b17; border: 1px solid #514a3d; padding: 10px 12px 10px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 14px; }
.fav-bar b { color: #edcd8a; }
.fav-bar .button { padding: 9px 16px; background: #edcd8a; border-color: #edcd8a; color: #141310; }
.fav-clear { background: none; border: 0; color: #9a9285; font: 13px system-ui, sans-serif; cursor: pointer; text-decoration: underline; }

.button.primary { background: #edcd8a; border-color: #edcd8a; color: #141310; }
.button.primary:hover { background: #d0b482; }

.idea-page { max-width: 1240px; margin: auto; padding: 26px 5% 70px; }
.idea-crumb { font-size: 13px; color: #8b8475; margin-bottom: 20px; }
.idea-crumb a, .idea-source a, .idea-related p a { text-decoration: underline; text-underline-offset: 4px; }
.idea-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.idea-figure img { height: auto; max-height: 82vh; object-fit: contain; }
.idea-figure figcaption { font-size: 11px; letter-spacing: .1em; color: #e9e3d6; background: #1b1a16; border-top: 1px solid #39372e; }
.idea-info h1 { font-size: clamp(36px, 4vw, 58px); margin: 16px 0 20px; }
.idea-disclose { border: 1px solid rgba(243, 238, 228, .5); background: #1b1a16; padding: 13px 16px; font-size: 15px; line-height: 1.6; color: #e9e3d6; }
.idea-story p { font-size: 17px; line-height: 1.8; }
.idea-source { font-size: 14px; }
.idea-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.idea-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 48px; }
.idea-proof { display: flex; gap: 20px; align-items: center; padding: 16px; border: 1px solid #39372e; background: #1b1a16; }
.idea-proof > span > span:not(.idea-badge) { display: block; font-size: 14px; color: #b9b0a0; }
.idea-proof img { width: 130px; height: 170px; object-fit: cover; flex: 0 0 auto; }
.idea-proof b { display: block; font: 400 21px/1.3 Georgia, 'Noto Serif SC', serif; margin: 10px 0 4px; }
.idea-related { margin-top: 56px; padding-top: 40px; border-top: 1px solid #39372e; }
.idea-related h2 { font-size: clamp(28px, 3vw, 42px); }

@media (max-width: 800px) {
  .idea-main { grid-template-columns: 1fr; gap: 28px; }
  .ideas-grid, .ideas-grid.compact { columns: 2; column-gap: 10px; }
  .ideas-grid.series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .idea-name { font-size: 15px; }
}
@media (max-width: 540px) {
  .ideas-head { padding-top: 30px; }
  .ideas-tabs button { padding: 9px 10px; font-size: 14px; }
  .idea-photo .idea-badge { font-size: 10px; padding: 2px 6px; }
  .fav-bar { gap: 8px; font-size: 13px; padding-left: 12px; }
  .fav-bar .button { padding: 8px 10px; font-size: 13px; }
}
