/* ==========================================================================
   PHOTOARENA - STÍLUSLAP (STYLE.CSS)
   Itt tudod egyszerűen módosítani az oldal színeit, betűit és elrendezését!
   ========================================================================== */

:root {
  /* ==========================================================================
     1. SZÍNPALETTA - ITT VÁLTOZTATHATSZ MINDENT EGY HELYEN!
     Ha pl. kékre szeretnéd az oldalt, csak írd át a --primary-t: #2563eb
     ========================================================================== */
  --primary: #10b981;                /* Fő smaragdzöld kiemelő szín */
  --primary-hover: #059669;          /* Gombok hover (egérrel rámutatva) */
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --accent-gold: #f59e0b;            /* Arany érem és Főadmin jelvény */
  --accent-silver: #94a3b8;          /* Ezüst érem */
  --accent-bronze: #d97706;          /* Bronz érem */
  --accent-cyan: #06b6d4;            /* Gyémánt trófea */

  /* Sötét prémium fotós háttérszínek */
  --bg-page: #121316;                /* Teljes oldal háttere */
  --bg-card: #181a20;                /* Kártyák és panelek háttere */
  --bg-card-hover: #1f232c;          /* Kártya egér fölévitelkor */
  --bg-input: #0e1013;               /* Űrlapmezők háttere */
  --bg-header: rgba(18, 19, 22, 0.95); /* Fejléc */

  /* Keretek és elválasztók */
  --border-subtle: #272b35;          /* Keretszín */
  --border-focus: #10b981;           /* Kijelölési keret */

  /* Szövegszínek */
  --text-white: #ffffff;
  --text-main: #f4f4f5;              /* Fő szöveg */
  --text-muted: #a1a1aa;             /* Halvány másodlagos szöveg */
  --text-dim: #71717a;               /* Apró betűk és EXIF */

  /* Lekerekítések */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Betűtípus */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. ALAP BEÁLLÍTÁSOK (RESET & TYPOGRAPHY)
   ========================================================================== */
* {
  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.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   3. FEJLÉC ÉS NAVIGÁCIÓ (PC ÉS MOBIL)
   ========================================================================== */
.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: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-name span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background-color: var(--bg-card);
}

.nav-links a.active {
  color: var(--primary);
  border: 1px solid var(--border-subtle);
}

.nav-links a.admin-link {
  color: #86efac;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   4. GOMBOK ÉS JELVÉNYEK
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: #3f4452;
}

.btn-admin {
  background-color: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-superadmin {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-admin {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-member {
  background: #27272a;
  color: var(--text-muted);
}

/* ==========================================================================
   5. KEZDŐLAPI HERO BANNER (A KÉRDEZETT SZÖVEG MEGJELENÉSE)
   ========================================================================== */
.hero-banner {
  margin: 32px 0;
  padding: 40px;
  background: linear-gradient(135deg, #181a20, #1b1e27 60%, #121316);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-content {
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--primary), #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   6. RÁCS ELRENDEZÉS (KIHÍVÁSOK & FOTÓK)
   ========================================================================== */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #3f4452;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: #000;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.8rem;
  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 rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   7. ŰRLAPOK ÉS BEVITELI MEZŐK (LOGIN, UPLOAD, ADMIN)
   ========================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--border-focus);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   8. TÁBLÁZATOK (RANGLISTA / LEADERBOARD)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  padding: 14px 18px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   9. LÁBLÉC
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 24px 0;
  background-color: #0e0f12;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   10. RESPONSIVE NÉZETEK (TABLET ÉS TELEFON)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 24px;
    margin: 18px 0;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
