@import url('../../assets/css/fonts.css');

.visiting-hero { background: radial-gradient(circle at 85% 20%, rgba(242,169,59,.2), transparent 28%), linear-gradient(135deg, #edf3ff, #f7f8fb); }
.visiting-library { padding-top: 42px; }
.gallery-toolbar { align-items: end; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin: 28px 0 20px; }
.gallery-toolbar label { color: var(--muted); display: grid; font-size: .82rem; font-weight: 700; gap: 6px; }
.gallery-toolbar select { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); min-height: 42px; padding: 8px 12px; }
.gallery-pager { align-items: center; display: flex; gap: 14px; justify-content: center; margin: 28px 0 5px; }
.gallery-pager .button { min-width: 105px; }
#visiting-status, #visiting-page-status { color: var(--muted); font-size: .85rem; }
.visiting-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.visiting-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.visiting-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.visiting-image { align-items: center; aspect-ratio: 16 / 9; background: #eef1f6; border-bottom: 1px solid var(--line); display: flex; justify-content: center; overflow: hidden; }
.visiting-image img { height: 100%; object-fit: contain; width: 100%; }
.visiting-card-body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.visiting-card-body > span { color: var(--muted); display: block; font-size: .72rem; min-height: 38px; }
.visiting-card h3 { font-size: 1rem; margin: 7px 0 13px; }
.visiting-card-actions { display: grid; gap: 8px; margin-top: auto; }
.visiting-card .button { align-items: center; display: inline-flex; font-size: .82rem; gap: 6px; justify-content: center; padding: 9px 12px; width: 100%; }
.visiting-card-actions .button-soft { background: var(--accent); color: var(--ink); }
.visiting-card-actions .button-soft:hover { background: #d98d20; }
.visiting-guide { background: var(--surface); border-top: 1px solid var(--line); }
.visiting-guide .prose { max-width: 860px; }
.visiting-guide section { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 28px; }
.visiting-guide h3 { font-size: 1.55rem; margin-bottom: 14px; }
.visiting-guide p, .visiting-guide li { color: var(--muted); line-height: 1.8; }
.visiting-guide ol { padding-left: 24px; }
.visiting-guide-expanded { background: var(--paper); border-top: 1px solid var(--line); }
.visiting-guide-expanded h4 { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin: 24px 0 8px; }
.visiting-guide-image { margin: 26px auto; max-width: 650px; }
.visiting-guide-image img, .visiting-example-grid img { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: block; height: auto; max-width: 100%; width: 100%; }
.visiting-example-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin: 26px 0; }
.visiting-example-grid figure { margin: 0; }
.visiting-example-grid figcaption { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.editor-section { padding-top: 42px; }
.visiting-editor-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; }
.editor-canvas-wrap { align-items: center; background: #e9edf4; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 600px; overflow: auto; padding: 30px; }
#visiting-canvas { background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: contain; box-shadow: var(--shadow); flex: 0 0 auto; overflow: hidden; position: relative; }
.editor-status { color: var(--muted); font-size: .85rem; margin: 18px 0 0; }
.editor-canvas-wrap > #selection-panel { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 20px; max-width: 900px; padding: 22px; width: 100%; }
.editor-canvas-wrap > #selection-panel h2 { font-size: 1.3rem; margin: 0 0 18px; }
.editor-canvas-wrap > #selection-panel label { color: var(--muted); display: grid; font-size: .8rem; font-weight: 700; gap: 5px; margin-bottom: 12px; }
.editor-canvas-wrap > #selection-panel textarea, .editor-canvas-wrap > #selection-panel input:not([type="color"]), .editor-canvas-wrap > #selection-panel select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); min-height: 40px; padding: 8px; width: 100%; }
.editor-canvas-wrap > #selection-panel textarea { resize: vertical; }
.editor-canvas-wrap > #selection-panel input[type="color"] { height: 40px; padding: 3px; width: 100%; }
.editor-canvas-wrap > #selection-panel .editor-row { align-items: end; }
.visiting-controls { display: grid; gap: 18px; }
.visiting-controls .property-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; padding: 20px; }
.visiting-controls h2 { font-size: 1.25rem; margin-bottom: 16px; }
.visiting-controls h3 { font-size: .95rem; margin: 16px 0 0; }
.control-help { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: 8px 0 12px; }
.icon-heading { align-items: baseline; display: flex; justify-content: space-between; }
.icon-heading span { color: var(--muted); font-size: .72rem; }
.icon-list { display: grid; gap: 7px; grid-template-columns: repeat(3, 1fr); margin: 10px 0 12px; }
.icon-choice { align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; font-size: .7rem; gap: 3px; justify-content: center; min-height: 58px; padding: 6px 3px; }
.icon-choice > span:first-child { color: var(--brand); font-size: 1.2rem; line-height: 1; }
.icon-choice:hover, .icon-choice:focus-visible { background: var(--sky); border-color: var(--brand); }
.visiting-controls label { color: var(--muted); display: grid; font-size: .8rem; font-weight: 700; gap: 5px; margin-bottom: 12px; }
.visiting-controls textarea, .visiting-controls input:not([type="color"]), .visiting-controls select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); min-height: 38px; padding: 8px; width: 100%; }
.visiting-controls input[type="color"] { height: 38px; padding: 3px; width: 100%; }
.visiting-controls #background-color { display: block; height: 42px; width: 100%; }
.editor-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.full-width { justify-content: center; margin-top: 8px; width: 100%; }
.file-button { cursor: pointer; text-align: center; }
.file-button input { display: none; }
.selection-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.button-danger { background: #fff0ee; border: 0; border-radius: 11px; color: #b42318; display: inline-flex; font-weight: 700; justify-content: center; padding: 10px 13px; }
.editor-element { cursor: move; position: absolute; user-select: none; z-index: 2; }
.editor-element[data-type="text"] { padding-left: 12px; }
.editor-element.selected { outline: 2px solid var(--brand); outline-offset: 4px; }
.editor-image { overflow: hidden; }
.editor-image.shape-rounded { border-radius: 18px; }
.editor-image.shape-circle { border-radius: 50%; }
.editor-image.shape-diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.editor-image.shape-triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.editor-image.shape-octagon { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.editor-image.shape-pentagon { clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%); }
.editor-image.shape-hexagon { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.editor-image.shape-heptagon { clip-path: polygon(50% 0, 90% 18%, 100% 62%, 72% 100%, 28% 100%, 0 62%, 10% 18%); }
.editor-image.shape-star { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 95%, 50% 72%, 21% 95%, 32% 57%, 2% 35%, 39% 35%); }
.editor-image.shape-heart { clip-path: polygon(50% 100%, 5% 43%, 0 29%, 8% 10%, 25% 0, 42% 5%, 50% 20%, 58% 5%, 75% 0, 92% 10%, 100% 29%, 95% 43%); }
.editor-image.shape-parallelogram { clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.editor-image.shape-trapezoid { clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.editor-image.shape-shield { clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%); }
.editor-image.shape-cross { clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.editor-image img { display: block; height: 100%; object-fit: contain; pointer-events: none; width: 100%; }
.editor-image[class*=" shape-"] img { object-fit: cover; }
.format-controls { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.format-label { color: var(--muted); display: block; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.format-buttons { display: flex; gap: 8px; margin-bottom: 14px; }
.format-buttons button { align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; display: flex; flex: 1; flex-direction: column; font-size: .72rem; gap: 2px; justify-content: center; min-height: 48px; }
.format-buttons button > strong, .format-buttons button > em, .format-buttons button > u { font-size: 1.05rem; line-height: 1; }
.format-buttons button[aria-pressed="true"], .format-buttons button:hover, .format-buttons button:focus-visible { background: var(--sky); border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) { .visiting-editor-layout { grid-template-columns: 1fr; } .visiting-controls { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .visiting-controls { grid-template-columns: 1fr; } .editor-canvas-wrap { min-height: 420px; padding: 16px; } }
@media (max-width: 620px) { .visiting-example-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .visiting-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 650px) { .visiting-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .visiting-grid { grid-template-columns: 1fr; } }
