/* ========== Base Theme Styles ========== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', 'Quicksand', sans-serif;
  background-color: #fafafa;
  color: #333;
}

/* Light Theme */
body.light-theme {
  background-color: #fafafa;
  color: #333;
}

/* Dark Theme */
body.dark-theme {
  background-color: #2b2b2b;
  color: #eaeaea;
}

body.dark-theme .site-header {
  background-color: #000; /* ✅ Black header in dark mode */
  color: #eaeaea;
  box-shadow: none;
}

body.dark-theme .profile-container {
  background-color: #3a3a3a;
  color: #eaeaea;
  box-shadow: none;
}

body.dark-theme a,
body.dark-theme button {
  background-color: #555;
  color: #fff;
}

body.dark-theme a:hover,
body.dark-theme button:hover {
  background-color: #777;
}

/* ========== Header ========== */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 1rem 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

/* ========== Navigation Buttons ========== */
.nav-buttons button {
  background-color: #e0e0e0;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
  background-color: #d6d6d6;
}

/* ========== Gallery Layout ========== */
.gallery {
  column-count: 4;
  column-gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.photo {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  background-color: white;
}

.photo img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.photo img:hover {
  transform: scale(1.03);
}

/* ========== Profile Container ========== */
.profile-container {
  max-width: 500px;
  width: 100%;
  background: white;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.profile-container img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.profile-container input[type="file"] {
  margin-bottom: 1rem;
}

.profile-container h2 {
  margin: 0.5rem 0;
  color: #4e704f;
}

.profile-container p {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #555;
}

/* ========== Profile Buttons ========== */
.logout {
  background-color: #a3c8a3;
  color: white;
  text-decoration: none;
}

.logout:hover {
  background-color: #8bb88b;
}

.back-home {
  background-color: #f0b46d;
  color: white;
  text-decoration: none;
}

.back-home:hover {
  background-color: #e29a49;
}

.toggle-theme-btn {
  background-color: #d2ecd2;
  color: #333;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.toggle-theme-btn:hover {
  background-color: #b5dcb5;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }

  .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
