/*
Theme Name: Folset Links
Theme URI: https://folset.framer.website/
Author: Folset
Description: Folset için düzenlenebilir, tek sayfalık bağlantı ve iletişim teması.
Version: 1.10.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: folset-links
*/

:root {
  --color-bg: #ffffff;
  --color-text: #0a0a0a;
  --color-muted: #8a8a8a;
  --color-border: rgba(10, 10, 10, 0.10);
  --color-border-hover: rgba(10, 10, 10, 0.20);
  --color-card: #f5f5f7;
  --color-card-hover: #efeff1;
  --color-blue: #2f72f6;
  --color-accent: #ffb000;
  --color-contact: #f05212;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --radius-card: 0.55rem;
  --radius-mark: 0.75rem;
  --container: 1140px;
  --drawer-width: 480px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.profile-section {
  min-height: 100svh;
  padding: clamp(5rem, 9vh, 7.5rem) 0 5rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 565px;
  gap: clamp(4rem, 10vw, 9rem);
  align-items: start;
}

.brand-column { min-width: 0; }

.brand-mark {
  width: 150px;
  aspect-ratio: 1;
  border-radius: var(--radius-mark);
  overflow: hidden;
  background: var(--color-blue);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-heading-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.brand-heading-row h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.verified-badge { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; color: var(--color-accent); font-size: 28px; }
.verified-badge svg { width: 100%; height: 100%; fill: var(--color-accent); }
.verified-badge .check { fill: none; stroke: white; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.brand-copy {
  margin: 2.4rem 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 38px;
  margin-top: clamp(8rem, 25vh, 15rem);
  padding: 0.55rem 0.85rem;
  border: 1px solid #ece9e2;
  border-radius: 999px;
  background: #f7f5f0;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.contact-pill:hover { border-color: #d8d4ca; background: #f2f0ea; }
.contact-pill img { display: block; width: 18px; height: 18px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 175px);
  gap: 1.35rem;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 175px;
  height: 175px;
  min-height: 175px;
  padding: 1rem 1.05rem;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--card-bg, var(--color-card));
  color: var(--color-text);
  text-decoration: none;
  will-change: transform;
  transition: transform 220ms cubic-bezier(.2,.75,.25,1), background-color 220ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  background-color: color-mix(in srgb, var(--card-bg, var(--color-card)) 94%, #000000 6%);
}
.link-card:hover .card-arrow { transform: translate(4px, -1px); }
.link-card:hover .platform-icon { transform: scale(1.07); }
.link-card:active { transform: translateY(-1px) scale(0.995); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--card-muted, var(--color-muted));
  font-size: 0.88rem;
}

.platform-wrap { display: flex; align-items: center; min-width: 0; gap: 0.4rem; }
.platform-wrap span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-icon { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; color: inherit; font-size: 20px; transition: transform 220ms cubic-bezier(.2,.75,.25,1); }
.platform-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-arrow { flex: 0 0 auto; color: var(--card-muted, var(--color-muted)); font-size: 19px; transition: transform 160ms ease; }
.card-title { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.025em; }

.promo-card {
  min-height: 175px;
  border-radius: 27px;
  background-color: #4170b7;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.promo-card--bento {
  justify-content: flex-start;
  padding: 17px 13px;
  border: 1px solid rgba(0,0,0,.7);
  border-radius: 27px !important;
  background-color: #4170b7 !important;
  background-image: linear-gradient(180deg, #4170b7 0%, #4170b7 51%, #94b3da 100%) !important;
  color: #fff !important;
}

.promo-card--bento::before {
  position: absolute;
  z-index: 0;
  inset: -1px -1px 0;
  border-radius: 27px;
  background: linear-gradient(160.94deg, rgba(255,255,255,.25) 5.36%, rgba(255,255,255,0) 51.54%);
  content: "";
  mix-blend-mode: screen;
  pointer-events: none;
}

.promo-card--bento::after {
  position: absolute;
  z-index: 0;
  inset: 1px;
  border: .5px solid rgba(255,255,255,.92);
  border-radius: 26px;
  content: "";
  pointer-events: none;
}

.widget-card { padding: 0; background: transparent; }
.widget-card:hover { background-color: transparent; }
.widget-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.widget-overlay { position: absolute; right: 8px; bottom: 8px; left: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 8px; min-height: 58px; padding: 9px 10px; border-radius: 14px; background: rgba(255,255,255,0.76); color: #111; -webkit-backdrop-filter: blur(14px) saturate(145%); backdrop-filter: blur(14px) saturate(145%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); pointer-events: none; }
.widget-subtitle { grid-column: 1 / -1; overflow: hidden; color: rgba(0,0,0,0.56); font-size: 0.58rem; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.widget-title { min-width: 0; overflow: hidden; font-size: 0.72rem; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.widget-value { justify-self: end; font-size: 0.72rem; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.widget-source { grid-column: 1 / -1; color: rgba(0,0,0,0.38); font-size: 0.47rem; line-height: 1; }
.widget-overlay-weather .widget-value { grid-row: 2 / span 2; grid-column: 2; align-self: center; font-size: 1.2rem; letter-spacing: -0.04em; }
.widget-overlay-text-standard .widget-title { white-space: normal; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.material-symbols-rounded { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20; line-height: 1; }
.verified-badge.material-symbols-rounded { font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24; }

.promo-card:not(.promo-card--bento)::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -20%;
  bottom: -55%;
  width: 110%;
  height: 95%;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  filter: blur(18px);
}

.promo-title {
  position: relative;
  z-index: 1;
  max-width: 9ch;
  margin: 0;
  white-space: pre-line;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.promo-card--bento .promo-title {
  width: 138px;
  max-width: 138px;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  font-feature-settings: "lnum" 1, "pnum" 1;
  line-height: 23px;
  letter-spacing: -0.025em;
}

.contact-section {
  min-height: 100svh;
  padding: clamp(5rem, 12vh, 9rem) 0 7rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.1fr);
  gap: clamp(4rem, 10vw, 9rem);
  align-items: start;
}

.contact-layout h2 {
  margin: 0;
  font-size: clamp(5rem, 9vw, 8.8rem);
  line-height: 0.8;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  grid-template-areas: "location social" "website social";
  row-gap: 8rem;
  column-gap: 4rem;
}

.contact-location { grid-area: location; }
.contact-social { grid-area: social; justify-self: end; min-width: 120px; }
.contact-website { grid-area: website; }
.contact-group p { margin: 0; }
.eyebrow { margin-bottom: 1.35rem !important; color: var(--color-muted); font-size: 0.88rem; }
.eyebrow span { margin-left: 0.4rem; }
.contact-value, .contact-social a { display: block; font-size: 1.06rem; font-weight: 600; line-height: 1.6; text-decoration: none; }
.contact-secondary { display: block; color: var(--color-muted); font-size: 0.88rem; text-decoration: none; }
.contact-group a:hover { text-decoration: underline; text-underline-offset: 3px; }

.editor-toggle {
  position: fixed;
  z-index: 20;
  right: 1.3rem;
  bottom: 1.3rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: white;
  color: black;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  cursor: pointer;
}

.editor-toggle[hidden] { display: none; }
.editor-toggle .material-symbols-rounded { font-size: 21px; }

.editor-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(0,0,0,0.22);
}

.editor-backdrop[hidden] { display: none; }

.editor-drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  width: min(100%, var(--drawer-width));
  height: 100svh;
  border-left: 1px solid var(--color-border);
  background: white;
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.editor-drawer.is-open { transform: translateX(0); }
.editor-header { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 1.5rem; border-bottom: 1px solid var(--color-border); }
.editor-header h2 { margin: 0; font-size: 1.18rem; }
.icon-button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.editor-content { height: calc(100svh - 76px); padding: 1.4rem; overflow-y: auto; }
.card-editor-list { display: grid; gap: 1rem; }
.card-editor { position: relative; padding: 1rem; border: 0; border-radius: 14px; background: #f5f5f7; transition: opacity 140ms ease, transform 140ms ease; }
.card-editor.is-dragging { opacity: 0.42; transform: scale(0.985); }
.card-editor.drop-before::before, .card-editor.drop-after::after { content: ""; position: absolute; right: 0; left: 0; height: 3px; border-radius: 999px; background: var(--color-blue); }
.card-editor.drop-before::before { top: -0.6rem; }
.card-editor.drop-after::after { bottom: -0.6rem; }
.card-editor-heading { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.card-editor-heading h3 { margin: 0; font-size: 0.95rem; }
.card-editor-heading p { margin: 0.15rem 0 0; color: #858585; font-size: 0.72rem; }
.drag-handle { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: #e8e8ed; color: #6e6e73; font-size: 21px; cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field, .field-wide { display: grid; gap: 0.35rem; }
.field-wide { grid-column: 1 / -1; }
.field label, .field-wide label { color: #646464; font-size: 0.75rem; font-weight: 600; }
.field input, .field select, .field-wide input, .field-wide select, .field-wide textarea {
  width: 100%;
  min-height: 40px;
  padding: 0.6rem 0.65rem;
  border: 1px solid #d7d7d7;
  border-radius: 0.35rem;
  background: white;
  color: black;
  font-size: 0.86rem;
}
.field-wide textarea { min-height: 72px; resize: vertical; }
.field input[type="color"] { min-height: 44px; padding: 0.25rem; cursor: pointer; }
.palette-field { display: grid; gap: 0.45rem; }
.palette-field > span { color: #646464; font-size: 0.75rem; font-weight: 600; }
.palette-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.palette-button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.07); font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: transform 150ms ease; }
.palette-button:hover { transform: scale(1.08); }
.checkbox-field { display: flex; align-items: center; gap: 0.5rem; padding-top: 1.25rem; font-size: 0.82rem; }
.checkbox-field input { width: 18px; height: 18px; accent-color: black; }
.card-editor-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.editor-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; min-height: 40px; padding: 0.55rem 0.8rem; border: 1px solid #d7d7d7; border-radius: 0.4rem; background: white; color: black; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.editor-button .material-symbols-rounded { font-size: 17px; }
.editor-button:hover { border-color: #9e9e9e; }
.editor-button:disabled { opacity: 0.38; cursor: not-allowed; }
.editor-button-wide { width: 100%; margin-top: 1rem; }
.editor-button-dark { border-color: black; background: black; color: white; }
.editor-button-danger { color: #a32424; }
.profile-editor { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.contact-editor { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.profile-editor h3, .contact-editor h3 { margin: 0 0 1.2rem; font-size: 1rem; }
.editor-portability { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1rem; border-radius: 14px; background: #f5f5f7; }
.editor-portability h3 { margin: 0; font-size: 0.92rem; }
.editor-portability p { margin: 0.25rem 0 0; color: var(--color-muted); font-size: 0.75rem; }
.editor-portability-actions { display: flex; gap: 0.45rem; }
.editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--color-border); }
.editor-actions-primary { display: flex; gap: 0.5rem; }
.editor-status { min-height: 1.2rem; margin: 0.8rem 0 0; color: var(--color-muted); font-size: 0.78rem; }
.body-locked { overflow: hidden; }

@media (max-width: 1040px) {
  .profile-layout, .contact-layout { grid-template-columns: minmax(250px, 0.7fr) minmax(370px, 1fr); gap: 4rem; }
  .link-grid { grid-template-columns: repeat(2, 175px); }
  .contact-details { column-gap: 2rem; }
}

@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 2rem), var(--container)); }
  .profile-section { padding: 2rem 0 5rem; }
  .profile-layout, .contact-layout { grid-template-columns: 1fr; gap: 4.5rem; }
  .brand-mark { width: 112px; }
  .brand-heading-row { margin-top: 1.4rem; }
  .brand-copy { margin-top: 1.7rem; }
  .contact-pill { margin-top: 3.5rem; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .link-card, .promo-card { width: 100%; height: auto; min-height: 150px; padding: 0.85rem; }
  .promo-card--bento { min-height: 175px; padding: 17px 13px; }
  .card-top { font-size: 0.78rem; }
  .card-title { font-size: 0.9rem; }
  .contact-section { min-height: auto; padding: 6rem 0 8rem; }
  .contact-layout h2 { font-size: clamp(4.5rem, 22vw, 7rem); }
  .contact-details { grid-template-columns: 1fr 1fr; grid-template-areas: "location social" "website website"; gap: 4rem 2rem; }
  .contact-social { justify-self: start; }
}

@media (max-width: 430px) {
  .link-grid { grid-template-columns: 1fr; }
  .link-card, .promo-card { min-height: 138px; }
  .promo-card--bento { min-height: 175px; }
  .contact-details { grid-template-columns: 1fr; grid-template-areas: "location" "social" "website"; gap: 3rem; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .editor-actions { align-items: stretch; flex-direction: column-reverse; }
  .editor-actions-primary { display: grid; grid-template-columns: 1fr 1fr; }
  .editor-button-danger { width: 100%; }
  .editor-portability { align-items: stretch; flex-direction: column; }
  .editor-portability-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
