/* Public profile "paylaşan" (frame 12). */

/* Header band: photo, name, plain facts, actions (BBC Good Food author page style). */
.profile-band { display: flow-root; background: var(--c-primary-soft); border-bottom: 1px solid var(--c-primary-line); padding-bottom: 48px; }
.profile-band .breadcrumb { margin-top: 32px; }
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; margin-top: 16px; }
.profile .profile__avatar { width: 160px !important; height: 160px !important; box-shadow: 0 0 0 6px #fff; }
.profile .avatar--fallback { display: grid; font-size: 64px !important; background: #fff; }
.profile__info { display: grid; gap: 10px; min-width: 0; }
.profile__name { font-size: 40px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.profile__meta { color: var(--c-muted); font-size: 14px; }
.profile__counts { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: #333; }
.profile__counts strong { font-weight: 800; color: var(--c-text); }
.profile__bio { max-width: 560px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; margin-top: 4px; }
.profile__social { list-style: none; display: flex; gap: 8px; margin-top: 4px; }
.profile__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-primary-line); }
@media (hover: hover) and (pointer: fine) { .profile__social a:hover { border-color: var(--c-primary); } }
.profile__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; align-self: start; margin-top: 12px; }
.profile__logout { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; color: var(--c-danger); font-weight: 700; font-size: 14px; }
.profile__logout:hover { text-decoration: underline; }
.profile__follow { min-width: 160px; }
.profile__follow[aria-pressed="true"] { background: #fff; color: var(--c-danger); border-color: var(--c-danger); }
@media (hover: hover) and (pointer: fine) { .profile__follow[aria-pressed="true"]:hover { background: var(--c-danger); color: #fff; } }

.profile-tabs { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0 40px; }
.profile-tabs .tabs { margin: 0; padding-bottom: 12px; }
.profile-tabs .tabs__tab { font-size: 22px; }
.profile-tabs .tabs__tab:hover { color: var(--c-primary); }

.profile-search { display: flex; align-items: center; justify-content: flex-end; flex: none; }
.profile-search__toggle { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #c9c9c9; background: #fff; display: grid; place-items: center; }
@media (hover: hover) and (pointer: fine) { .profile-search__toggle:hover { border-color: var(--c-primary); background: var(--c-primary-soft); } }
.profile-search__form { position: relative; width: min(280px, 100%); }
.profile-search__form > img { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.profile-search__form .input { min-height: 48px; padding: 0 44px 0 44px; background: var(--c-field); border-color: transparent; }
.profile-search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.profile-search__clear:hover { background: #e6e6e6; }

.profile-search [hidden] { display: none !important; }

@media (max-width: 960px) {
  .profile { grid-template-columns: auto minmax(0, 1fr); gap: 24px 28px; }
  .profile .profile__avatar { width: 120px !important; height: 120px !important; }
  .profile .avatar--fallback { font-size: 48px !important; }
  .profile__actions { grid-column: 2; flex-direction: row; align-items: center; margin-top: 0; gap: 24px; }
  .profile-tabs .tabs__tab { font-size: 20px; }
}
@media (max-width: 560px) {
  .profile-band { padding-bottom: 32px; }
  .profile-band .breadcrumb { margin-top: 20px; }
  .profile { grid-template-columns: 1fr; justify-items: start; gap: 20px; }
  .profile .profile__avatar { width: 96px !important; height: 96px !important; }
  .profile .avatar--fallback { font-size: 40px !important; }
  .profile__name { font-size: 28px; }
  .profile__counts { gap: 4px 16px; font-size: 14px; }
  .profile__actions { grid-column: 1; width: 100%; justify-content: space-between; }
  .profile__follow { flex: 1; }
  .profile-tabs { flex-wrap: wrap; margin: 32px 0 28px; }
  .profile-tabs .tabs { gap: 20px; }
  .profile-tabs .tabs__tab { font-size: 17px; }
  .profile-search { flex: 1 0 100%; justify-content: center; }
  .profile-search__form { width: 100%; }
}
