/* UVAS SWAT Gallery System Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #005c29;
  --primary-dark: #00381a;
  --primary-light: #00853c;
  --accent-gold: #d4af37;
  --accent-gold-hover: #b89628;
  --bg-light: #f4f6f9;
  --card-bg: #ffffff;
  --text-dark: #1a202c;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
}

/* Navbar */
.navbar-custom {
  background: rgba(0, 56, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--accent-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.7rem 1.5rem;
  transition: var(--transition);
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.uvas-logo-img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  padding: 2px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  transition: var(--transition) !important;
  display: inline-block !important;
}

.navbar-brand-wrapper:hover .uvas-logo-img {
  transform: scale(1.06) rotate(3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 60%, #007333 100%);
  color: white;
  padding: 4rem 1rem 5rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Category Section */
.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* Album Card */
.album-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.album-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 92, 41, 0.3);
}

.album-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #e2e8f0;
}

.album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-card:hover .album-img {
  transform: scale(1.08);
}

.album-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 60, 26, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 56, 26, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.album-card:hover .album-overlay {
  opacity: 1;
}

.album-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.album-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.album-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.btn-open-album {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-open-album:hover {
  background: var(--primary-dark);
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* Gallery View Section */
.gallery-header-bar {
  background: white;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-btn {
  background: var(--bg-light);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.search-box-wrapper {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 92, 41, 0.15);
  background-color: #ffffff;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Picture Card Grid (4 per row on desktop) */
.picture-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.picture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 92, 41, 0.3);
}

.picture-thumb-container {
  position: relative;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.picture-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.picture-card:hover .picture-img {
  transform: scale(1.08);
}

.picture-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 56, 26, 0.85);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.picture-card:hover .picture-overlay-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.picture-card-footer {
  padding: 0.85rem 1rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
}

.picture-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.btn-download {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-download:hover {
  background: var(--primary-dark);
  color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Lightbox Modal */
.modal-content-custom {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  color: white;
}

.lightbox-img {
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* Pagination Controls */
.pagination-custom .page-link {
  color: var(--primary-dark);
  border-color: var(--border-color);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  margin: 0 2px;
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--accent-gold);
}

.pagination-custom .page-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

/* Mandatory Footer */
.footer-custom {
  background: var(--primary-dark);
  color: #ffffff;
  border-top: 3px solid var(--accent-gold);
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
}

.footer-text {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-link {
  color: var(--accent-gold) !important;
  font-weight: 700;
  text-decoration: underline;
  transition: var(--transition);
}

.footer-link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .brand-title {
    font-size: 1rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .picture-name {
    max-width: 90px;
  }
}
