/* Sizden gelenler — akış sayfası */

.sgf-page {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #f5f3f0 0%, #fafafa 35%, #f6f6f6 100%);
  padding: 0 0 3.75rem;
  text-align: left;
  color: #222;
}

.sgf-page > .container {
  max-width: 640px;
  padding-top: 2rem;
}

.sgf-hero {
  text-align: center;
  margin: 0 auto;
  padding: 0 0.25rem 0.25rem;
}

.sgf-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c36a43;
  background: rgba(195, 106, 67, 0.12);
  border: 1px solid rgba(195, 106, 67, 0.32);
  border-radius: 999px;
  padding: 0.38rem 1rem;
  margin-bottom: 0.85rem;
}

.sgf-hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #141210;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sgf-hero-lead {
  margin: 0 auto;
  max-width: 36em;
  color: #4a4540;
  font-size: 1rem;
  line-height: 1.65;
}

.sgf-hero-login {
  margin: 1.15rem auto 0;
  max-width: 36em;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

.sgf-hero-login a {
  font-weight: 600;
  color: #c36a43;
}

.sgf-feed {
  max-width: 560px;
  margin: 0 auto;
  padding-top: 1.25rem;
}

.sgf-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 560px;
  margin: 1.25rem auto 0;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e6e2dc;
  border-radius: 999px;
}

.sgf-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5c564f;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sgf-view-tab:hover {
  color: #141210;
  text-decoration: none;
  background: rgba(195, 106, 67, 0.08);
}

.sgf-view-tab.active {
  background: #c36a43;
  color: #fff;
}

.sgf-view-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
}

.sgf-view-tab.active .sgf-view-tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.sgf-btn-edit {
  margin-left: auto;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #ddd6ce;
  background: #faf8f5;
  color: #5c564f;
}

.sgf-edit-form {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e6e2dc;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.sgf-card.is-editing .sgf-card-caption-wrap,
.sgf-card.is-editing .sgf-actions,
.sgf-card.is-editing .sgf-comments {
  display: none;
}

.sgf-edit-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #141210;
}

.sgf-edit-head i {
  color: #c36a43;
}

.sgf-edit-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5c564f;
  margin-bottom: 0.35rem;
}

.sgf-edit-form textarea {
  width: 100%;
  border: 1px solid #ddd6ce;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
  resize: vertical;
  min-height: 7.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sgf-edit-form textarea:focus {
  border-color: #c36a43;
  box-shadow: 0 0 0 3px rgba(195, 106, 67, 0.15);
  outline: none;
}

.sgf-edit-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  color: #8a837b;
}

.sgf-edit-image-zone {
  position: relative;
  margin-bottom: 0.85rem;
}

.sgf-edit-image-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.sgf-edit-image-pick {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #ddd6ce;
  border-radius: 10px;
  background: #faf8f5;
  font-size: 0.85rem;
  color: #5c564f;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sgf-edit-image-zone:hover .sgf-edit-image-pick,
.sgf-edit-image-zone:focus-within .sgf-edit-image-pick {
  border-color: #c36a43;
  background: rgba(195, 106, 67, 0.06);
}

.sgf-edit-image-pick i {
  font-size: 1.15rem;
  color: #c36a43;
}

.sgf-edit-image-name {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #8a837b;
}

.sgf-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.sgf-edit-actions .sgf-btn-save {
  background: #c36a43;
  border: 1px solid #c36a43;
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.sgf-edit-actions .sgf-btn-save:hover {
  background: #a85838;
  border-color: #a85838;
}

.sgf-edit-actions .sgf-btn-cancel {
  background: transparent;
  border: 1px solid #ddd6ce;
  color: #5c564f;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.sgf-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6e2dc;
  margin-bottom: 1.75rem;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.sgf-card:last-child {
  margin-bottom: 0;
}

.sgf-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #f0ebe6;
  text-align: left;
  position: relative;
}

.sgf-card-head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
}

.sgf-card-head .name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #141210;
  line-height: 1.3;
}

.sgf-card-media {
  background: #f0eeeb;
}

.sgf-card-media img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

.sgf-card-body {
  padding: 1rem 1.15rem 1.15rem;
  text-align: left;
}

.sgf-card-caption {
  font-size: 0.95rem;
  color: #2a2624;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  word-break: break-word;
}

.sgf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.sgf-btn {
  border: 1px solid #ddd8d3;
  background: #faf8f6;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sgf-btn:hover {
  background: #f0ebe6;
  border-color: #cfc9c3;
}

.sgf-btn.active {
  border-color: #c36a43;
  color: #a85a38;
  background: rgba(195, 106, 67, 0.1);
}

.sgf-btn-msg {
  text-decoration: none !important;
  color: #333 !important;
}

.sgf-like-count {
  font-size: 0.8rem;
  color: #777;
  margin-left: 0.15rem;
}

.sgf-comments {
  border-top: 1px solid #f0ebe6;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.sgf-load-comments {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #c36a43 !important;
  text-decoration: none !important;
}

.sgf-load-comments:hover {
  color: #a85a38 !important;
}

.sgf-comments-list {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 0.55rem;
}

.sgf-comment {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
}

.sgf-comment img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sgf-comment .bubble {
  background: #f5f2ef;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  flex: 1;
  min-width: 0;
  border: 1px solid #ebe6e1;
}

.sgf-comment .who {
  font-weight: 600;
  color: #333;
  margin-right: 0.35rem;
}

.sgf-comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.sgf-comment-form input[type="text"] {
  flex: 1;
  border: 1px solid #ddd8d3;
  border-radius: 10px;
  padding: 0.48rem 0.75rem;
  font-size: 0.86rem;
}

.sgf-comment-form .btn-primary {
  border-radius: 10px;
  font-weight: 600;
  padding-left: 1rem;
  padding-right: 1rem;
  background: #c36a43;
  border-color: #c36a43;
}

.sgf-empty {
  text-align: center;
  color: #555;
  padding: 2.5rem 1.35rem;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed #d4ccc4;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sgf-empty .bi {
  font-size: 2.5rem;
  color: #c36a43;
  opacity: 0.85;
  display: block;
  margin-bottom: 0.75rem;
}

.sgf-empty p {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

.sgf-empty .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

@media (min-width: 768px) {
  .sgf-page > .container {
    max-width: 680px;
  }
  .sgf-feed {
    max-width: 580px;
    padding-top: 2.25rem;
  }
  .sgf-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .sgf-page > .container {
    padding-top: 1.5rem;
  }

  .sgf-feed {
    padding-top: 1.75rem;
  }
}
