/* ==========================================================================
   RETRO FOTÓS – PORTFÓLIÓ OLDAL
   Fekete-arany dizájn
   ========================================================================== */

:root {
  /* === Színpaletta === */
  --gold: #d4af37;              /* Klasszikus arany – kiemelés */
  --gold-dark: #c9a227;         /* Ó-arany – linkek, hover */
  --gold-light: #e8c547;        /* Világosabb arany – fókusz */
  --gold-glow: rgba(212, 175, 55, 0.25);

  --bg-page: #0a0a0a;           /* Mély fekete háttér */
  --bg-card: #141414;           /* Kártyák háttere */
  --bg-card-hover: #1a1a1a;     /* Kártya hover */
  --bg-input: #0f0f0f;          /* Űrlapmezők háttere */
  --bg-header: rgba(10, 10, 10, 0.95);

  --border-subtle: #262626;     /* Finom keret */
  --border-gold: rgba(212, 175, 55, 0.4);

  --text-white: #ffffff;
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-dim: #6b6b6b;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   ALAP
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;

  /* === Füstös-ködös ezüst háttér === */
  background-image:
    /* 1. Halvány ezüst köd – felső középen */
    radial-gradient(ellipse 60% 50% at 50% 0%,
      rgba(212, 175, 55, 0.10) 0%,
      rgba(212, 175, 55, 0.02) 30%,
      transparent 70%),
    /* 2. Halvány ezüst köd – jobb alsó sarok */
    radial-gradient(ellipse 50% 60% at 100% 100%,
      rgba(200, 200, 210, 0.08) 0%,
      rgba(200, 200, 210, 0.02) 40%,
      transparent 70%),
    /* 3. Halvány ezüst köd – bal közép */
    radial-gradient(ellipse 40% 50% at 0% 50%,
      rgba(180, 180, 190, 0.06) 0%,
      transparent 60%),
    /* 4. Alap fekete */
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 50%, #0a0a0a 100%);
  background-attachment: fixed;
  background-size: cover;
  position: relative;

  /* === Füstös háttér animáció === */
  animation: smokeDrift 20s ease-in-out infinite;
}

/* === Füstös háttér animáció – nagyon lassú mozgás === */
@keyframes smokeDrift {
  0%   { background-position: 0% 0%, 100% 100%, 0% 50%, 0% 0%; }
  50%  { background-position: 5% 3%, 95% 97%, 3% 48%, 0% 0%; }
  100% { background-position: 0% 0%, 100% 100%, 0% 50%, 0% 0%; }
}

/* === Füstös textúra réteg a body fölött === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.015) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.012) 0%, transparent 40%);
  opacity: 0.8;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   FEJLÉC
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
}

.brand-icon {
  font-size: 1.6rem;
}

.brand-name {
  color: var(--gold);
}

.brand-name span {
  color: var(--text-muted);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--gold);
  background-color: var(--bg-card);
}

.nav-links a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}

/* ==========================================================================
   GOMBOK
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0a;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a0a0a;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

/* ==========================================================================
   FORM ELEMEK
   ========================================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

select.form-control {
  cursor: pointer;
}

/* ==========================================================================
   KÁRTYÁK
   ========================================================================== */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #000;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RÁCS
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   SZAKASZ CÍMEK
   ========================================================================== */

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 8px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  margin: 0 20px;
}

/* ==========================================================================
   HERO (kezdőlap)
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 60px 0;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0.4;
  max-width: 440px;
  margin: 0 auto;
}

.hero-content {
  padding-left: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin-top: 20px;
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s;
  letter-spacing: 1px;
  max-width: 320px;
}

.hero-nav a::before {
  content: '▸';
  color: var(--gold);
  font-size: 1rem;
  transition: transform 0.25s;
}

.hero-nav a:hover {
  color: var(--gold);
  padding-left: 8px;
  border-color: var(--border-gold);
}

.hero-nav a:hover::before {
  transform: translateX(4px);
}

/* ==========================================================================
   ALBUM KÁRTYA (portfolio.php)
   ========================================================================== */

.album-cover {
  position: relative;
  overflow: hidden;
}

.album-cover-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .album-cover-img {
  transform: scale(1.05);
}

.album-cover-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
  color: var(--gold);
  font-size: 3rem;
  opacity: 0.5;
}

.album-photo-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 10, 0.85);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  letter-spacing: 1px;
}

/* ==========================================================================
   FOTÓ NÉZET (album.php)
   ========================================================================== */

.photo-viewer {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
}

.photo-viewer-img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  background: #000;
}

.photo-viewer-body {
  padding: 20px;
}

.photo-viewer-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.photo-viewer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.photo-exif {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--bg-input);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: monospace;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   ÉRTÉKELŐ ŰRLAP
   ========================================================================== */

.rating-form {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.rating-form-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.rating-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.rating-field select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}
.rating-field select:focus {
  border-color: var(--gold);
}

/* ==========================================================================
   LÁBLÉC
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: 30px 0;
  background-color: #060606;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-content a {
  color: var(--gold-dark);
}

/* ==========================================================================
   ZOOM NÉZŐ
   ========================================================================== */

.zoom-overlay-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity .2s, transform .2s, background .2s;
  z-index: 5;
  cursor: pointer;
}
.zoom-overlay-icon:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}

#zoomViewer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
}
#zoomViewer.active {
  display: flex;
}
#zoomViewer img {
  max-width: none;
  max-height: none;
  cursor: zoom-in;
  transition: transform .15s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
#zoomViewer img.zoomed {
  cursor: zoom-out;
}

.zoom-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 100000;
}
.zoom-toolbar button {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.zoom-toolbar button:hover {
  background: rgba(212, 175, 55, 0.25);
}

.zoom-back {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0 16px;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 100000;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.zoom-back:hover {
  background: rgba(212, 175, 55, 0.25);
}

.zoom-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(212, 175, 55, 0.7);
  font-size: 0.75rem;
  background: rgba(0,0,0,0.6);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  z-index: 100000;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
   RESZPONZÍV
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    min-height: auto;
    padding: 40px 0;
  }
  .hero-content {
    padding-left: 0;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-nav {
    align-items: center;
  }
  .hero-nav a {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    gap: 12px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  .nav-links a {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .rating-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .zoom-hint {
    display: none;
  }
}