/* ══════════════════════════════════════════════════
   Cutiora — filters.css  (Filters page)
   ══════════════════════════════════════════════════ */

.pf-page { max-width: 1060px; margin: 0 auto; padding: 0 12px 60px; width: 100%; }
.pf-header { text-align: center; margin-bottom: 28px; padding-top: 4px; }
.pf-header-icon {
  font-size: 42px; line-height: 1; margin-bottom: 8px;
  display: inline-block;
  animation: pf-pulse 2.5s ease-in-out infinite;
}
@keyframes pf-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.pf-header h2 { font-family: 'Fredoka One', cursive; font-size: clamp(26px, 5.5vw, 42px); color: #2c2c2c; margin-bottom: 8px; line-height: 1.1; }
.pf-header p { font-size: 15px; color: #666; max-width: 460px; margin: 0 auto; line-height: 1.55; }

.pf-editor { display: flex; gap: 24px; align-items: flex-start; }
.pf-preview-col { flex: 0 0 auto; width: 380px; position: sticky; top: 20px; }

@media(max-width: 860px) and (min-width: 768px) {
  .pf-page { padding-bottom: 0; }
  .pf-editor { flex-direction: column; }
  .pf-preview-col { position: sticky; top: 56px; z-index: 400; width: 100%; background: #FFF3B0; padding-bottom: 10px; border-bottom: 2px solid #2c2c2c; box-shadow: 0 3px 6px rgba(0,0,0,0.10); }
  .pf-preset-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media(max-width: 767px) {
  .pf-page { padding-bottom: 0; }
  .pf-editor { flex-direction: column; }
  .pf-preview-col { position: sticky; top: 56px; z-index: 400; width: 100%; background: #FFF3B0; padding-bottom: 8px; border-bottom: 2px solid #2c2c2c; box-shadow: 0 3px 6px rgba(0,0,0,0.10); }
  .pf-dl-btn, .pf-pin-btn { font-size: 13px !important; padding: 11px 8px !important; white-space: nowrap; }
}

.pf-preview-card {
  background: #fff; border: 3px solid #2c2c2c; box-shadow: 6px 6px 0 #2c2c2c;
  overflow: hidden; min-height: 200px; display: flex; align-items: center; justify-content: center;
}
.pf-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 50px 24px; cursor: pointer;
  width: calc(100% - 24px); box-sizing: border-box; margin: 12px;
  background: #fafafa; border: 2.5px dashed #ccc;
  transition: background .2s, border-color .2s;
}
.pf-upload-zone:hover, .pf-upload-zone.pf-drag-over { background: #fff8d6; border-color: #e6b800; }
.pf-upload-icon { font-size: 36px; line-height: 1; }
.pf-upload-title { font-family: 'Fredoka One', cursive; font-size: 18px; color: #2c2c2c; }
.pf-upload-sub { font-size: 13px; color: #aaa; font-family: 'Nunito', sans-serif; }

.pf-img-wrap { position: relative; width: 100%; }
.pf-img-inner { position: relative; width: 100%; overflow: hidden; line-height: 0; background: #111; }
.pf-img-inner img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: contain; transition: filter .18s ease; will-change: filter; }

.pf-spiral-overlay { position: absolute; pointer-events: none; mix-blend-mode: multiply; opacity: 1; display: block; }
#pfPixelCanvas { mix-blend-mode: normal !important; object-fit: contain; }
#pfHalftoneCanvas { mix-blend-mode: multiply !important; }
#pfGlitchCanvas { mix-blend-mode: screen !important; }
#pfNeonCanvas, #pfInfraredCanvas, #pfDreamyCanvas { mix-blend-mode: normal !important; }
#pfSpiralCanvas { mix-blend-mode: multiply !important; }

.pf-overlay-vignette, .pf-overlay-grain, .pf-overlay-color, .pf-overlay-glow {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(255,255,200,0.5);
  background: radial-gradient(ellipse at center, rgba(255,255,200,0.22) 0%, transparent 70%);
}
.pf-overlay-vignette { background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%); }
.pf-overlay-grain {
  opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.pf-overlay-color { background: rgba(255,182,193,0.35); mix-blend-mode: multiply; }
.pf-overlay-glow { box-shadow: inset 0 0 60px rgba(255,255,220,0.45); background: radial-gradient(ellipse at center, rgba(255,255,200,0.25) 0%, transparent 70%); }

.pf-change-btn {
  display: block; width: 100%; padding: 9px 16px;
  background: #fff; border: none; border-top: 2px solid #eee;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: #666;
  cursor: pointer; transition: background .15s, color .15s; text-align: center;
}
.pf-change-btn:hover { background: #fff8d6; color: #2c2c2c; }

/* Floating mini preview (mobile) */
#pfFloatThumb { display: none; }
@media(max-width: 860px) {
  #pfFloatThumb {
    position: fixed; bottom: 80px; right: 14px;
    width: 90px; height: 90px;
    border: 3px solid #2c2c2c; box-shadow: 4px 4px 0 #2c2c2c;
    border-radius: 10px; overflow: hidden; z-index: 3000;
    background: #fff; cursor: pointer;
    opacity: 0; transform: scale(0.8);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
  }
  #pfFloatThumb.pf-float-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
  #pfFloatThumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

.pf-dl-row { margin-top: 14px; display: flex; flex-direction: row; gap: 10px; align-items: stretch; }
.pf-dl-btn {
  flex: 1; padding: 13px 10px; background: #4CAF50; color: #fff;
  border: 3px solid #2c2c2c; box-shadow: 4px 4px 0 #2c2c2c;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .12s; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pf-dl-btn:hover  { background: #43a047; }
.pf-dl-btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 #2c2c2c; }
.pf-pin-btn {
  flex: 1; padding: 13px 10px; background: #E60023; color: #fff;
  border: 3px solid #2c2c2c; box-shadow: 4px 4px 0 #2c2c2c;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .12s; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pf-pin-btn:hover  { background: #c0001e; }
.pf-pin-btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 #2c2c2c; }
.pf-pin-btn.pf-pin-loading { opacity: .75; pointer-events: none; }

.pf-controls-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pf-section { background: #fff; border: 3px solid #2c2c2c; box-shadow: 4px 4px 0 #2c2c2c; padding: 16px; }
.pf-section-title { font-family: 'Fredoka One', cursive; font-size: 17px; color: #2c2c2c; margin-bottom: 12px; letter-spacing: .2px; }

.pf-presets-wrap { display: flex; flex-direction: column; gap: 0; }
.pf-preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
@media(max-width: 560px) {
  .pf-preset-row { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .pf-preset-btn span:last-child { font-size: 10px; }
  .pf-preset-swatch { width: 100%; height: 26px; }
  .pf-preset-btn { padding: 6px 4px; gap: 4px; }
}
.pf-row-hidden { display: none; }
.pf-row-visible { display: grid; animation: pfRowReveal .25s ease; }
@keyframes pfRowReveal { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.pf-more-btn {
  width: 100%; padding: 10px 16px; margin-bottom: 8px;
  background: #fff8d6; border: 2px dashed #e6b800; border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: #b08800;
  cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, transform .1s;
  letter-spacing: .3px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pf-more-btn:hover { background: #fff0a0; border-color: #c09000; transform: translateY(-1px); }
.pf-more-btn:active { transform: translateY(1px); }
.pf-more-count { font-weight: 700; font-size: 12px; opacity: .75; }

.pf-preset-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 4px 9px; border: 2px solid #ddd; background: #fafafa;
  cursor: pointer; border-radius: 10px;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
  font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 700; color: #444;
  box-shadow: 2px 2px 0 rgba(44,44,44,0.08);
  -webkit-tap-highlight-color: transparent;
}
.pf-preset-btn:hover { border-color: #e6b800; background: #fffbe6; transform: translateY(-2px); box-shadow: 2px 4px 8px rgba(44,44,44,0.1); }
.pf-preset-btn.active { border-color: #2c2c2c; background: #fff; box-shadow: 3px 3px 0 #2c2c2c; }

.pf-preset-swatch { width: 44px; height: 32px; border-radius: 6px; display: block; border: 1.5px solid rgba(0,0,0,0.08); flex-shrink: 0; }
.pf-swatch-spiral { background: repeating-radial-gradient(circle at 50% 50%, #111 0px, #111 1.5px, #fff 1.5px, #fff 4px); background-size: 44px 44px; }
.pf-swatch-pixel { background: linear-gradient(135deg, #888 25%, transparent 25%) -8px 0, linear-gradient(225deg, #888 25%, transparent 25%) -8px 0, linear-gradient(315deg, #888 25%, transparent 25%), linear-gradient(45deg, #888 25%, transparent 25%); background-color: #ccc; background-size: 16px 16px; }
.pf-swatch-halftone { background: radial-gradient(circle, #222 30%, transparent 30%) 0 0, radial-gradient(circle, #222 30%, transparent 30%) 6px 6px; background-color: #fff; background-size: 12px 12px; }
.pf-swatch-glitch { background: linear-gradient(135deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%); position: relative; overflow: hidden; }
.pf-swatch-comic { background: repeating-linear-gradient(45deg, #000 0, #000 1px, transparent 0, transparent 50%); background-color: #fff; background-size: 6px 6px; border: 2px solid #000 !important; }

.pf-slider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pf-slider-row:last-child { margin-bottom: 0; }
.pf-slider-label { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: #555; width: 76px; flex-shrink: 0; }
.pf-slider { flex: 1; accent-color: #e6b800; cursor: pointer; }
.pf-slider-val { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; color: #888; width: 38px; text-align: right; flex-shrink: 0; }

.pf-effects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
@media(max-width: 767px) { .pf-effects-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.pf-effect-toggle {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px; border: 2px solid #ddd; border-radius: 10px;
  cursor: pointer; background: #fafafa;
  transition: border-color .15s, background .15s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.pf-effect-toggle.pf-effect-on { border-color: #e6b800; background: #fffbe6; }
.pf-effect-toggle input { display: none; }
.pf-effect-icon { font-size: 22px; line-height: 1; }
.pf-effect-name { font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 700; color: #444; }

.pf-color-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.pf-color-chip { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; transition: transform .1s, border-color .15s; flex-shrink: 0; }
.pf-color-chip:hover { transform: scale(1.15); }
.pf-color-chip.active { border: 3px solid #2c2c2c; }

.pf-reset-btn {
  width: 100%; padding: 12px; background: #fff;
  border: 2.5px solid #bbb; box-shadow: 3px 3px 0 rgba(44,44,44,0.15);
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700; color: #666;
  cursor: pointer; transition: transform .1s, box-shadow .1s, background .15s, border-color .15s; letter-spacing: .2px;
}
.pf-reset-btn:hover  { background: #fff8d6; border-color: #e6b800; color: #2c2c2c; }
.pf-reset-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(44,44,44,0.15); }

/* ══════════════════════════════════════════════════
   modals.css — Share FAB, Share Modal, Legal Modal
   ══════════════════════════════════════════════════ */

/* Share FAB */
#wShareFab {
  position: fixed; bottom: 24px; right: 20px; z-index: 6000;
  width: 52px; height: 52px; border-radius: 50%;
  background: #E60023; border: 3px solid #2c2c2c; box-shadow: 4px 4px 0 #2c2c2c;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
#wShareFab:hover  { transform: scale(1.08); }
#wShareFab:active { transform: scale(.95); box-shadow: 2px 2px 0 #2c2c2c; }
#wShareFab svg { flex-shrink: 0; }

/* Share modal overlay */
#wShareOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 6500;
  align-items: flex-end; justify-content: center;
}
#wShareOverlay.open { display: flex; }
#wShareModal {
  background: #fff; border: 3px solid #2c2c2c; border-bottom: none;
  border-radius: 20px 20px 0 0; box-shadow: 0 -4px 0 #2c2c2c;
  width: 100%; max-width: 480px; padding: 20px 20px 32px;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.34,1.3,.64,1);
  position: relative;
}
#wShareOverlay.open #wShareModal { transform: translateY(0); }
#wShareModalTitle { font-family: 'Fredoka One', cursive; font-size: 18px; color: #2c2c2c; margin-bottom: 4px; }
#wShareModalSub { font-family: 'Nunito', sans-serif; font-size: 13px; color: #888; margin-bottom: 20px; }

.wsm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.wsm-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; text-decoration: none; padding: 4px 0; }
.wsm-icon { width: 50px; height: 50px; border-radius: 14px; border: 2.5px solid #2c2c2c; box-shadow: 3px 3px 0 #2c2c2c; display: flex; align-items: center; justify-content: center; transition: transform .12s, box-shadow .12s; }
.wsm-btn:hover  .wsm-icon { transform: translateY(-2px); box-shadow: 3px 5px 0 #2c2c2c; }
.wsm-btn:active .wsm-icon { transform: translateY(1px);  box-shadow: 1px 1px 0 #2c2c2c; }
.wsm-label { font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; color: #2c2c2c; }
.wsm-icon.wsi-whatsapp  { background: #25D366; }
.wsm-icon.wsi-telegram  { background: #229ED9; }
.wsm-icon.wsi-messenger { background: #0084FF; }
.wsm-icon.wsi-viber     { background: #7360F2; }
.wsm-icon.wsi-line      { background: #06C755; }

#wShareCopyRow { display: flex; align-items: center; gap: 8px; background: #f5f5f5; border: 2px solid #ddd; border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
#wShareCopyUrl { flex: 1; font-family: 'Nunito', sans-serif; font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wShareCopyBtn { background: #FFE566; border: 2px solid #2c2c2c; border-radius: 8px; padding: 6px 12px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; box-shadow: 2px 2px 0 #2c2c2c; transition: transform .1s; }
#wShareCopyBtn:active { transform: scale(.95); }
#wShareCloseBtn { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: #999; line-height: 1; }

#wShareToast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: #2c2c2c; color: #fff; padding: 9px 20px; border-radius: 20px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; z-index: 9999; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }

/* Legal Modal */
#wLegalOverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9000; align-items: center; justify-content: center; padding: 16px; }
#wLegalOverlay.open { display: flex; }
#wLegalModal { background: #fff; border: 3px solid #2c2c2c; border-radius: 16px; box-shadow: 6px 6px 0 #2c2c2c; width: 100%; max-width: 680px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
#wLegalModalHead { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 3px solid #2c2c2c; background: #FFF3B0; flex-shrink: 0; }
#wLegalModalTitle { font-family: 'Fredoka One', cursive; font-size: 20px; color: #2c2c2c; }
#wLegalModalClose { background: #E60023; color: #fff; border: 2.5px solid #2c2c2c; box-shadow: 2px 2px 0 #2c2c2c; border-radius: 8px; width: 34px; height: 34px; font-size: 18px; cursor: pointer; line-height: 1; font-weight: 700; }
#wLegalModalBody { padding: 22px 24px; overflow-y: auto; font-family: 'Nunito', sans-serif; font-size: 14px; color: #333; line-height: 1.75; }
#wLegalModalBody h2 { font-family: 'Fredoka One', cursive; font-size: 17px; color: #2c2c2c; margin: 20px 0 6px; padding-bottom: 4px; border-bottom: 2px solid #FFE566; }
#wLegalModalBody h2:first-child { margin-top: 0; }
#wLegalModalBody p { margin: 0 0 12px; }
#wLegalModalBody ul { margin: 0 0 12px 20px; }
#wLegalModalBody a { color: #E60023; }
#wLegalModalBody .wl-contact-link { color: #E60023; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Site Footer */
#wSiteFooter { width: 100%; background: #2c2c2c; border-top: 4px solid #E60023; margin-top: 48px; font-family: 'Nunito', sans-serif; color: #f0f0f0; }
#wFooterInner { max-width: 900px; margin: 0 auto; padding: 40px 20px 28px; }
.wf-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 680px) { .wf-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 400px) { .wf-grid { grid-template-columns: 1fr; gap: 20px; } }
.wf-brand-title { font-family: 'Fredoka One', cursive; font-size: 22px; color: #FFE566; margin-bottom: 10px; letter-spacing: .5px; }
.wf-brand-desc { font-size: 13px; color: #bbbbbb; line-height: 1.65; margin-bottom: 14px; }
.wf-badge { display: inline-block; background: #E60023; color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 3px 9px; letter-spacing: .4px; border: 2px solid #fff2; }
.wf-col-title { font-family: 'Fredoka One', cursive; font-size: 14px; color: #FFE566; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #ffffff20; }
.wf-links { list-style: none; padding: 0; margin: 0; }
.wf-links li { margin-bottom: 8px; }
.wf-links a { color: #cccccc; text-decoration: none; font-size: 13px; font-weight: 700; transition: color .15s; cursor: pointer; }
.wf-links a:hover { color: #FFE566; }
.wf-divider { border: none; border-top: 1px solid #ffffff18; margin: 0 0 20px; }
.wf-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.wf-copy { font-size: 12px; color: #888; }
.wf-copy span { color: #E60023; font-weight: 700; }
.wf-bottom-links { display: flex; gap: 14px; }
.wf-bottom-links a { font-size: 12px; color: #888; text-decoration: none; font-weight: 700; transition: color .15s; cursor: pointer; }
.wf-bottom-links a:hover { color: #FFE566; }
