*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  min-height: 100vh;  
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #fff;  
}

.site-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle {  
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.toggle a {
  font-size: 14px;
  color: #777;
  text-decoration: none;
}

.toggle a.active {
  color: #111;
  font-weight: 600;
}

.logo a {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #111;
}

.logo span {
  color: #e60023; /* Pinterest kırmızısına yakın ama birebir değil */
}

.nav a {
  margin-left: 16px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.nav a:hover {
  color: #111;
}


/* GRID */
.grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* MOBİL */
  gap: 12px;
}
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}




/* CARD */
.card {
  display: block;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  overflow: visible;   /* önemli */
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-link {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3; /* Pinterest benzeri */
  overflow: hidden;
  border-radius: 12px;
}

.card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.detail .grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.image-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.pin-actions {
  margin: 16px 0 24px;
}

.related h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
#scroll-sentinel {
  height: 1px;
}
.category-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}



.detail-meta {
  margin: 12px 0 8px;
}

.detail-cat {
  display: inline-block;
  font-size: 13px;
  color: #777;
  text-decoration: none;
}

.detail-title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding: 24px 16px;
  background: #fafafa;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}

.footer-links a {
  margin-left: 12px;
  text-decoration: none;
  color: #777;
}

.footer-links a:hover {
  color: #111;
}



.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.content p {
  font-size: 16px;
  color: #666;
  margin-top: 12px;
  line-height: 1.6;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

form label {
  font-size: 14px;
  color: #333;
}

form input, form textarea {
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  background-color: #e60023;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #c1001a;
}


.error-page {
  text-align: center;
  padding: 60px 16px;
}

.error-page h1 {
  font-size: 48px;
  margin: 0;
}

.error-page p {
  margin-top: 12px;
  font-size: 16px;
  color: #666;
}

.error-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn {
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
}

.btn.ghost {
  background: #f0f0f0;
  color: #111;
}
.card-title {
  margin-top: 4px;
  padding: 0 2px;
  font-size: 11px;
  color: #999;
  line-height: 1.2;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card a {
  text-decoration: none;
  color: inherit;
}

.card:hover .card-title {
  color: #777;
}

