/* =================================================
   Base
================================================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #0f0f0f;
  color: #eaeaea;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Ubuntu, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =================================================
   Header
================================================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #222;
  background: #0f0f0f;
}

.logo {
  height: 32px;
  width: auto;
}

.follow-button,
.login-button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #333;
  font-size: 13px;
}

.follow-button:hover,
.login-button:hover {
  background: #1c1c1c;
}

/* =================================================
   Gallery (CSS Columns – FIXED)
================================================= */

.gallery {
  column-count: 4;
  column-gap: 16px;
  padding: 24px;
}

@media (max-width: 1200px) {
  .gallery { column-count: 3; }
}

@media (max-width: 800px) {
  .gallery { column-count: 2; }
}

@media (max-width: 500px) {
  .gallery { column-count: 1; }
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  background: #161616;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hover Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-likes {
  font-size: 14px;
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 12px;
  border-radius: 20px;
}

/* =================================================
   Photo Detail Page
================================================= */

.photo-detail {
  display: flex;
  gap: 48px;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .photo-detail {
    flex-direction: column;
  }
}

/* Image container (60% width) */
.photo-container {
  flex: 0 0 60%;
  max-width: 60%;
}

@media (max-width: 900px) {
  .photo-container {
    max-width: 100%;
    flex: 1;
  }
}

.photo-container img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}

/* Info column */
.photo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Action row */
.photo-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* =================================================
   Like Button (Gradient)
================================================= */

.like-button {
  background: linear-gradient(135deg, #bd93f9, #ff79c6);
  border: none;
  color: #0f0f0f;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 20px rgba(189, 147, 249, 0.25);
}

.like-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(255, 121, 198, 0.35);
  opacity: 0.95;
}

.like-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(189, 147, 249, 0.2);
}

/* Navigation under image */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.nav-buttons a {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #333;
  font-size: 13px;
}

.nav-buttons a:hover {
  background: #1f1f1f;
}

/* =================================================
   Footer
================================================= */

.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  opacity: 0.5;
}

