/* ============================================================
   FISHING GALLERY PRO - Main Stylesheet
   Glassmorphism + Animations + Modern Layout
   ============================================================ */

:root {
  --fgp-accent: #00d4ff;
  --fgp-accent2: #0099cc;
  --fgp-accent3: #ff6b35;
  --fgp-dark: #0a1628;
  --fgp-dark2: #0d1f3c;
  --fgp-glass-bg: rgba(255,255,255,0.08);
  --fgp-glass-border: rgba(255,255,255,0.18);
  --fgp-glass-shadow: 0 8px 32px rgba(0,0,0,0.37);
  --fgp-blur: blur(12px);
  --fgp-radius: 16px;
  --fgp-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --fgp-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Base ---- */
.fgp-wrapper {
  font-family: var(--fgp-font);
  color: #fff;
  position: relative;
  width: 100%;
}

.fgp-empty { color: rgba(255,255,255,0.6); font-style: italic; padding: 20px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.fgp-section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.fgp-section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--fgp-accent) 50%, #00ffcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px;
  line-height: 1.2;
}

.fgp-section-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  margin: 0;
}

.fgp-section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--fgp-accent), var(--fgp-accent3));
  margin: 16px auto 0;
  border-radius: 3px;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.fgp-glass-card {
  background: var(--fgp-glass-bg);
  backdrop-filter: var(--fgp-blur);
  -webkit-backdrop-filter: var(--fgp-blur);
  border: 1px solid var(--fgp-glass-border);
  border-radius: var(--fgp-radius);
  box-shadow: var(--fgp-glass-shadow);
  transition: var(--fgp-transition);
  overflow: hidden;
  position: relative;
}

.fgp-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  z-index: 1;
}

.fgp-glass-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,212,255,0.25), 0 8px 32px rgba(0,0,0,0.5);
  border-color: rgba(0,212,255,0.4);
}

/* ============================================================
   ALBUMS GRID
   ============================================================ */
.fgp-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.fgp-album-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.fgp-album-cover {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
  border-radius: var(--fgp-radius) var(--fgp-radius) 0 0;
}

.fgp-album-cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.fgp-album-card:hover .fgp-album-cover img {
  transform: scale(1.08);
}

.fgp-album-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
  transition: var(--fgp-transition);
}

.fgp-album-card:hover .fgp-album-cover-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(0,50,80,0.9) 100%);
}

.fgp-album-count-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,212,255,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.05em;
}

.fgp-album-info {
  padding: 16px;
  position: relative;
  z-index: 2;
}

.fgp-album-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.fgp-album-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fgp-album-meta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fgp-accent);
  display: inline-block;
}

/* ============================================================
   GALLERY GRID (thumbnail cards)
   ============================================================ */
.fgp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.fgp-gallery-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.fgp-gallery-thumb {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
  border-radius: var(--fgp-radius);
}

.fgp-gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.fgp-gallery-card:hover .fgp-gallery-thumb img {
  transform: scale(1.1);
}

.fgp-gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fgp-gallery-card:hover .fgp-gallery-thumb-overlay {
  opacity: 1;
}

.fgp-gallery-thumb-icon {
  width: 56px; height: 56px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.fgp-gallery-card:hover .fgp-gallery-thumb-icon {
  transform: scale(1);
}

.fgp-gallery-thumb-icon svg {
  width: 24px; height: 24px;
  fill: #fff;
}

.fgp-gallery-card-info {
  padding: 12px 0 0;
}

.fgp-gallery-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}

.fgp-gallery-card-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   GALLERY LAYOUTS
   ============================================================ */

/* --- FILTER BAR --- */
.fgp-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: var(--fgp-glass-bg);
  backdrop-filter: var(--fgp-blur);
  border: 1px solid var(--fgp-glass-border);
  border-radius: 50px;
}

.fgp-view-btns {
  display: flex;
  gap: 6px;
}

.fgp-view-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--fgp-transition);
  font-size: 16px;
}

.fgp-view-btn:hover,
.fgp-view-btn.active {
  background: var(--fgp-accent);
  border-color: var(--fgp-accent);
  color: #fff;
}

.fgp-gallery-action-btns {
  display: flex;
  gap: 8px;
}

.fgp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--fgp-glass-bg);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--fgp-transition);
  backdrop-filter: blur(8px);
}

.fgp-btn:hover {
  background: var(--fgp-accent);
  border-color: var(--fgp-accent);
  color: var(--fgp-dark);
  transform: translateY(-1px);
}

.fgp-btn-primary {
  background: linear-gradient(135deg, var(--fgp-accent), var(--fgp-accent2));
  border-color: transparent;
  color: var(--fgp-dark);
}

.fgp-btn-slideshow {
  background: linear-gradient(135deg, var(--fgp-accent3), #ff4500);
  border-color: transparent;
  color: #fff;
}

/* --- MASONRY GRID --- */
.fgp-masonry-grid {
  column-count: 3;
  column-gap: 16px;
}

.fgp-masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--fgp-radius);
  overflow: hidden;
  cursor: pointer;
  animation: fgpFadeUp 0.6s ease both;
}

.fgp-masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  border-radius: var(--fgp-radius);
}

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

.fgp-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,20,40,0.92) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: var(--fgp-radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.fgp-masonry-item:hover .fgp-item-overlay {
  opacity: 1;
}

.fgp-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.fgp-item-caption {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.fgp-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.fgp-item-action-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.25s;
  text-decoration: none;
}

.fgp-item-action-btn:hover {
  background: var(--fgp-accent);
  border-color: var(--fgp-accent);
  color: var(--fgp-dark);
}

/* --- GRID LAYOUT --- */
.fgp-grid-layout {
  display: grid;
  grid-template-columns: repeat(var(--fgp-cols, 3), 1fr);
  gap: 16px;
}

.fgp-grid-item {
  position: relative;
  padding-top: 75%;
  border-radius: var(--fgp-radius);
  overflow: hidden;
  cursor: pointer;
  animation: fgpFadeUp 0.6s ease both;
}

.fgp-grid-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fgp-grid-item:hover img { transform: scale(1.08); }

.fgp-grid-item .fgp-item-overlay { border-radius: var(--fgp-radius); }

/* --- MOSAIC LAYOUT --- */
.fgp-mosaic-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.fgp-mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--fgp-radius);
  cursor: pointer;
  animation: fgpFadeUp 0.6s ease both;
}

.fgp-mosaic-item:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
.fgp-mosaic-item:nth-child(7n+1) { grid-column: span 1; grid-row: span 2; }

.fgp-mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fgp-mosaic-item:hover img { transform: scale(1.07); }
.fgp-mosaic-item .fgp-item-overlay { border-radius: var(--fgp-radius); }

/* ============================================================
   FLOATING PARTICLES (ambient bg effect)
   ============================================================ */
.fgp-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.fgp-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--fgp-accent);
  border-radius: 50%;
  opacity: 0;
  animation: fgpFloat 8s ease-in-out infinite;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.fgp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}

.fgp-breadcrumb a {
  color: var(--fgp-accent);
  text-decoration: none;
}

.fgp-breadcrumb a:hover { text-decoration: underline; }

.fgp-breadcrumb-sep { color: rgba(255,255,255,0.3); }

.fgp-breadcrumb-current { color: #fff; font-weight: 600; }

/* ============================================================
   FISH SPECIES / TAG PILLS
   ============================================================ */
.fgp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.fgp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 20px;
  color: var(--fgp-accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.fgp-tag:hover {
  background: rgba(0,212,255,0.3);
  color: #fff;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.fgp-skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: fgpSkeleton 1.5s infinite;
  border-radius: var(--fgp-radius);
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.fgp-load-more-wrapper {
  text-align: center;
  margin-top: 36px;
}

/* ============================================================
   COUNTER / STATS BAR
   ============================================================ */
.fgp-stats-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: var(--fgp-glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--fgp-glass-border);
  border-radius: 50px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fgp-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.fgp-stat-value {
  color: var(--fgp-accent);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   WATER RIPPLE HOVER EFFECT
   ============================================================ */
.fgp-ripple-wrapper {
  position: relative;
  overflow: hidden;
}

.fgp-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: fgpRipple 0.7s linear;
  background: rgba(0,212,255,0.25);
  pointer-events: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fgpFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fgpZoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fgpSlideLeft {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fgpSlideRight {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fgpFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

@keyframes fgpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(0,212,255,0); }
}

@keyframes fgpShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fgpSkeleton {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fgpRipple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes fgpWave {
  0%   { transform: scaleX(1); }
  50%  { transform: scaleX(1.05) scaleY(0.95); }
  100% { transform: scaleX(1); }
}

@keyframes fgpGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0,212,255,0.5)); }
  50%       { filter: drop-shadow(0 0 20px rgba(0,212,255,0.9)); }
}

/* Stagger animation delays */
.fgp-masonry-item:nth-child(1)  { animation-delay: 0.05s; }
.fgp-masonry-item:nth-child(2)  { animation-delay: 0.10s; }
.fgp-masonry-item:nth-child(3)  { animation-delay: 0.15s; }
.fgp-masonry-item:nth-child(4)  { animation-delay: 0.20s; }
.fgp-masonry-item:nth-child(5)  { animation-delay: 0.25s; }
.fgp-masonry-item:nth-child(6)  { animation-delay: 0.30s; }
.fgp-masonry-item:nth-child(7)  { animation-delay: 0.35s; }
.fgp-masonry-item:nth-child(8)  { animation-delay: 0.40s; }
.fgp-masonry-item:nth-child(9)  { animation-delay: 0.45s; }
.fgp-masonry-item:nth-child(n+10) { animation-delay: 0.5s; }

.fgp-grid-item:nth-child(1)  { animation-delay: 0.05s; }
.fgp-grid-item:nth-child(2)  { animation-delay: 0.10s; }
.fgp-grid-item:nth-child(3)  { animation-delay: 0.15s; }
.fgp-grid-item:nth-child(4)  { animation-delay: 0.20s; }
.fgp-grid-item:nth-child(5)  { animation-delay: 0.25s; }
.fgp-grid-item:nth-child(6)  { animation-delay: 0.30s; }
.fgp-grid-item:nth-child(n+7) { animation-delay: 0.35s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fgp-masonry-grid { column-count: 2; }
  .fgp-mosaic-layout { grid-template-columns: repeat(2,1fr); }
  .fgp-grid-layout { --fgp-cols: 2 !important; }
}

@media (max-width: 640px) {
  .fgp-masonry-grid  { column-count: 1; }
  .fgp-albums-grid   { grid-template-columns: 1fr; }
  .fgp-gallery-grid  { grid-template-columns: repeat(2,1fr); }
  .fgp-mosaic-layout { grid-template-columns: 1fr; }
  .fgp-grid-layout   { --fgp-cols: 1 !important; }
  .fgp-gallery-controls { border-radius: var(--fgp-radius); }
  .fgp-mosaic-item:nth-child(3n+1) { grid-column: span 1; grid-row: span 1; }
}
