/* Main Styles - Modern Redesign */
:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #2b2d42;
  --accent-color: #ef476f;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #06d6a0;
  --error-color: #ef476f;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 1rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-100);
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
.site-header,
.header {
  background-color: #fff;
  color: var(--secondary-color);
  padding: 1.25rem 0;
  box-shadow: var(--box-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container,
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: var(--secondary-color);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a:before {
  content: "📷";
  font-size: 1.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav a:hover:after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  color: var(--gray-700);
  padding: 0.75rem 1.25rem;
  display: block;
}

.dropdown-menu a:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.dropdown-menu a:after {
  display: none;
}

/* Footer Styles */
.site-footer,
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Main Content Styles */
main,
.main-content {
  padding: 3rem 1rem;
}

.page-title {
  margin-bottom: 2rem;
  color: var(--secondary-color);
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.page-title:after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background-color: var(--primary-color);
  border-radius: 1rem;
}

/* Categories Block */
.categories-block {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.category-item {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--gray-100);
  color: var(--gray-700);
  border-radius: 2rem;
  transition: var(--transition);
  font-weight: 500;
  border: 1px solid var(--gray-200);
}

.category-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-sm);
  border-color: var(--primary-color);
}

/* Albums Grid */
.albums-grid {
  margin-bottom: 3rem;
}

.albums-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.album-thumbnail {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.album-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.thumbnail-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.thumbnail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.album-thumbnail:hover .thumbnail-image img {
  transform: scale(1.05);
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: var(--gray-200);
  color: var(--gray-600);
  font-size: 0.9rem;
}

.thumbnail-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thumbnail-info h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--secondary-color);
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gray-100);
  color: var(--gray-700);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: fit-content;
  align-self: flex-start;
}

/* Album Page Styles */
.album-header {
  margin-bottom: 2.5rem;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.album-title {
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.photos-gallery {
  margin-bottom: 3rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  aspect-ratio: 1 / 1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
  cursor: pointer;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: white;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.photo-item:hover .photo-title {
  transform: translateY(0);
}

.navigation-links {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: white;
  color: var(--gray-700);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--box-shadow-sm);
}

/* Remove the double arrow from back links */
.back-link:before {
  content: "←";
  font-size: 1.1rem;
}

.back-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
  position: absolute;
  top: -3rem;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.close-lightbox:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#lightbox-caption {
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 1.1rem;
}

/* Messages */
.message {
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.message:before {
  font-size: 1.5rem;
}

.success {
  background-color: rgba(6, 214, 160, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(6, 214, 160, 0.2);
}

.success:before {
  content: "✓";
}

.error {
  background-color: rgba(239, 71, 111, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(239, 71, 111, 0.2);
}

.error:before {
  content: "!";
}

/* No Albums/Photos Messages */
.no-albums,
.no-photos {
  text-align: center;
  padding: 3rem 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.no-albums p,
.no-photos p {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.no-albums:before,
.no-photos:before {
  content: "📷";
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .album-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .site-header .container,
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    justify-content: center;
    gap: 1rem;
  }

  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
  }

  .albums-container {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .navigation-links {
    flex-direction: column;
    gap: 1rem;
  }

  .album-header {
    padding: 1.5rem;
  }

  .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .album-title {
    font-size: 1.75rem;
  }

  .albums-container {
    grid-template-columns: 1fr;
  }

  .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .categories-block,
  .album-header {
    padding: 1.25rem;
  }
}

.photo-item a.photo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-item a.photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
  cursor: pointer;
  filter: saturate(0.9);
}

.photo-item:hover a.photo-link img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

