:root {
  --primary: #38c8d8;
  --primary-hover: #5ee2f0;
  --bg-color: #125562;
  --bg-gradient: radial-gradient(ellipse at top, #2fa3b4 0%, #176372 45%, #0b3740 100%);
  --surface: #0e404b;
  --surface-hover: #14505d;
  --surface-border: rgba(255, 255, 255, 0.14);
  --text-main: #f0fdfa;
  --text-muted: #a5d8df;
  --text-dim: #71abb5;
  --danger: #ef4444;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(10, 45, 52, 0.4);
  --shadow-hover: 0 25px 50px -12px rgba(56, 200, 216, 0.35);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-pirate: 'Pirata One', cursive, serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Top Navigation */
.top-nav {
  background: rgba(11, 48, 56, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span.dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 30px;
  border: 1px solid var(--surface-border);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #06242a;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(56, 200, 216, 0.4);
  transform: translateY(-1px);
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
}

.btn-google img {
  width: 17px;
  height: 17px;
}

.btn-google:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Header Section */
.page-header {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.header-hero-banner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-image-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 200, 216, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.header-fisherman-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.header-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 55, 64, 0.1) 0%, rgba(11, 55, 64, 0.35) 50%, rgba(6, 32, 38, 0.88) 100%);
  pointer-events: none;
}

.header-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  z-index: 2;
}

.pirate-title {
  font-family: var(--font-pirate);
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff9e6;
  text-shadow: 
    3px 3px 0px #06242a,
    -2px -2px 0px #06242a,
    2px -2px 0px #06242a,
    -2px 2px 0px #06242a,
    0 6px 16px rgba(0, 0, 0, 0.85);
  margin: 0;
  -webkit-text-fill-color: #fff9e6;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Centered Showcase Section */
.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  width: 100%;
  max-width: 1150px;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
}

.image-container {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  background-color: #050810;
  cursor: pointer;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.05);
}

.image-overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}

.zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.image-container:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.zoom-hint:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.05);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
}

.card-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.btn-like {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-like:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.btn-like.liked {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.15);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 16, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1.5rem;
  cursor: pointer;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  max-width: 92vw;
  max-height: 82vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox-img:hover {
  transform: scale(0.99);
}

.lightbox-caption {
  margin-top: 1.25rem;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-hint {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.92rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: var(--danger);
  background: #2a1115;
}

/* Responsive */
@media (max-width: 860px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
  
  .image-container {
    height: 280px;
  }

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

@media (max-width: 480px) {
  .page-title {
    font-size: 2.2rem;
  }
  .page-header {
    padding: 2.5rem 1rem 1.75rem;
  }
  .top-nav {
    padding: 0.75rem 1rem;
  }
  .user-name {
    display: none;
  }
}
