@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/* 
   Szívhangja - Romantikus & Akadálymentes Stíluslap (2025 Refined) 
   Design irányelv: Meleg, befogadó, biztonságos.
*/

:root {
  /* Alapszínek - Modern & Prémium */
  --primary-color: #cd1355;
  --primary-coral: #FF7F50; /* Kért elegáns korall-rózsaszín */
  --primary-hover: #b01049;
  --accent-color: #fab1a0; /* Új barack szín */
  --deep-charcoal: #2d3436; /* Új mély szénszürke */
  --blue-pass: #0984e3;    /* Új kék a Pass gombhoz */

  /* Háttérszínek */
  --bg-body: #ffffff;
  --bg-section: #ffffff;
  --bg-soft: #fff5f5;
  --glass-bg: rgba(255, 255, 255, 0.88); /* Megemelt opacitás az olvashatóságért */

  /* Szövegszínek */
  --text-main: #2d3436;
  --text-muted: #57606f; /* Sötétebb szürke a 4.5:1 kontrasztért */
  --text-light: #ffffff;

  /* UI Elemek */
  --border-color: #f1f2f6;
  --input-border: #dfe6e9;
  --focus-outline: 3px solid var(--primary-coral);
  --border-radius-lg: 32px; /* Kért 32px rádiusz */
  --border-radius-md: 16px;
  --border-radius-sm: 8px;

  /* Árnyékok */
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 50px rgba(255, 118, 117, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);

  --primary-gradient: linear-gradient(135deg, #ff7675 0%, #fab1a0 100%);
  --header-height: 80px;
}



/* --- UTILITIES --- */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gap-1 {
  gap: 1rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}


/* --- MODERNIZED NAVIGATION --- */
.glass-header {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 80px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.nav-links {
  display: flex !important;
  gap: 2rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-link {
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: var(--text-muted) !important;
  position: relative !important;
  padding: 0.5rem 0 !important;
  transition: color 0.3s ease !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-coral) !important;
}

.nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background: var(--primary-coral) !important;
  border-radius: 2px !important;
}

/* --- FILTER SIDEBAR --- */
.browse-layout {
  display: flex !important;
  gap: 2rem !important;
  align-items: flex-start !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 2rem !important;
}

.glass-sidebar {
  flex: 0 0 320px !important;
  background: white !important;
  border-radius: 32px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
  position: sticky !important;
  top: 100px !important;
  z-index: 10 !important;
}

.browse-results {
  flex: 1 !important;
}

.filter-group {
  margin-bottom: 1.5rem !important;
}

.filter-label {
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  color: var(--deep-charcoal) !important;
  margin-bottom: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.filter-input {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 2px solid #f0f0f0 !important;
  border-radius: 12px !important;
  font-family: 'Open Sans', sans-serif !important;
  transition: border-color 0.3s ease !important;
}

.filter-input:focus {
  outline: 3px solid var(--primary-color) !important; /* Szín mellett keret is jelenjen meg */
  outline-offset: 2px !important;
  border-color: var(--primary-color) !important;
}

.notif-badge-small {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary-coral);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  border: 2px solid var(--bg-section);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.user-profile-header:hover {
  background: white;
  border-color: var(--primary-coral);
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.logout-minimal {
  color: var(--text-muted);
  transition: color 0.2s;
}

.logout-minimal:hover {
  color: #ff7675;
}

/* Consistently sized avatars - classes consolidated at end of file */

.nav-guest {
  display: flex;
  gap: 1rem;
}

.btn-small {
  padding: 0.5rem 1.2rem !important;
  min-height: auto !important;
  border-radius: 20px !important;
  font-size: 0.9rem !important;
}

.hero-actions {
  margin-top: 1.5rem;
}

.profile-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dot-separator {
  margin: 0 4px;
}

/* --- ACCESSIBILITY UTILITIES --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: -3px;
  box-shadow: 0 0 0 5px var(--primary-color);
}

html {
  font-size: 15px;
  /* Kicsit kisebb alapszöveg a kompaktabb nézetért */
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden; /* Prevent massive image overflow */
}

a {
  color: var(--primary-color); /* Korall helyett az erősebb színt használjuk linkeknek a kontraszt miatt */
  text-decoration: underline; /* Egyértelműbb jelzés a linkeknek */
  text-underline-offset: 3px;
}

/* Global Focus Styles - High Visibility */
:focus {
  outline: none;
  /* Fallback for browsers that don't support focus-visible */
}

:focus-visible {
  outline: 3px solid #00acc1;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 172, 193, 0.2);
}

/* Tipográfia - Hierarchia és Olvashatóság */
h1,
h2,
h3,
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1.5rem;
  line-height: 1.3;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  max-width: 70ch;
}

/* Olvasási szélesség limit */

/* Sticky Header - Letisztult és Funkcionális */
/* Glassmorphism Header */
header {
  position: sticky;
  top: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0;
}

.nav-logo-container {
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif; /* Elegáns serif betűtípus */
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-coral) !important;
  text-decoration: none;
  flex-shrink: 0;
  display: block;
}

.nav-logo:visited {
  color: var(--primary-coral) !important;
}

nav {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex !important; /* Force flex */
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Navigációs Linkek */
nav a.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  /* Kisebb betűméret */
  padding: 0.4rem 0.6rem;
  border-radius: var(--border-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a.nav-link:hover,
nav a.nav-link:focus {
  color: var(--primary-color);
  background-color: var(--bg-soft);
}

nav a.nav-link[aria-current="page"] {
  color: var(--primary-color);
  position: relative;
}

nav a.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.8rem;
  right: 0.8rem;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

nav a.nav-link.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Felhasználói Menü (Dropdown) */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  transition: background-color 0.2s;
  color: var(--text-main);
  font-weight: 600;
}

.user-toggle:hover,
.user-toggle:focus {
  background-color: var(--bg-soft);
}

/* Redundant avatar style removed */

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--bg-section);
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 0;
  z-index: 1001;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.user-menu-container:hover .dropdown-menu,
.user-menu-container:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bg-soft);
  color: var(--primary-color);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

/* Billentyűzet Navigáció */
*:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

/* Fő tartalmi elemek */
main {
  max-width: 1400px;
  /* Bővebb hely a rácsnak */
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

main.main-wide {
  max-width: 1200px;
}

.card {
  background-color: var(--bg-section);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  /* Tágasabb */
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.forum-card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.forum-card:hover {
  transform: translateY(-4px);
}

/* Gombok - Hívogatóbbak */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(205, 19, 85, 0.2);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(205, 19, 85, 0.3);
  color: white;
}

.btn.secondary {
  background: transparent !important;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn.secondary:hover {
  background-color: var(--bg-soft) !important;
}

.btn.warning {
  background: transparent !important;
  border: 2px solid #f44336;
  color: #f44336;
  box-shadow: none;
}

.btn.warning:hover {
  background-color: #ffebee !important;
}

/* Űrlap elemek */
.form-group {
  margin-bottom: 1.8rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-main);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--input-border);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-section);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  color: #717171;
  /* WCAG 2.1 AA 4.5:1 contrast against white background */
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: 3px solid var(--primary-color); /* Erősebb fókusz jelzése */
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(205, 19, 85, 0.15);
}

/* Custom File Input Styling */
.custom-file-upload {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  background-color: var(--bg-soft);
  color: var(--primary-color);
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.custom-file-upload:hover {
  background-color: var(--primary-color);
  color: white;
  border-style: solid;
}

input[type="file"].hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Checkbox & Radio Refinement */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--primary-color);
  flex-shrink: 0;
}

.checkbox-group span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}


/* Hibaüzenetek és Értesítések */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Profile Page Specifics */
.profile-header-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  /* Main content + Gallery/Sidebar */
  gap: 2rem;
  align-items: start;
}

/* New Profile Header Flex Layout - Refined for no overlap */
.profile-header {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin-bottom: 0;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap !important;
  /* Allow wrapping to prevent overlap */
}

.profile-photo-container {
  flex-shrink: 0 !important;
  /* Ensure image never shrinks */
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.profile-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1;
  min-width: 0;
}

.profile-info h1,
.profile-info p {
  margin: 0 !important;
}

.profile-info h1 {
  margin-bottom: 0.5rem !important;
  line-height: 1.2;
}

/* Modern Card UI for Browse */
.browse-main {
  max-width: 500px; /* Tablet/Mobile-first card width */
  margin: 2rem auto;
  padding: 0 1rem 100px 1rem;
  position: relative;
}

.large-profile-card {
  position: relative;
  width: 100%;
  max-width: 500px; /* Szigorú limit a kártya szélességének */
  aspect-ratio: 3/4;
  background: var(--bg-soft);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  transform: translateZ(0);
  margin: 0 auto;
}

.card-photo-edge {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 2rem 2.5rem 2rem;
  background: linear-gradient(to top, 
    rgba(0,0,0,0.9) 0%, 
    rgba(0,0,0,0.5) 50%, 
    transparent 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-name {
  font-family: 'Montserrat', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-location {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.card-bio-short {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Floating Interaction Buttons */
.interaction-buttons {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 10;
}

.btn-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-circle:hover {
  transform: scale(1.1);
}

.btn-pass {
  background: white;
  color: var(--blue-pass);
}

.btn-like {
  background: var(--primary-gradient);
  color: white;
}

/* Bottom Message Bar */
.bottom-actions {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 460px;
  z-index: 100;
}

.btn-message-full {
  width: 100%;
  background: white;
  color: var(--primary-coral);
  border: 1px solid rgba(255, 118, 117, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-weight: 700;
}

/* Retractable Filter */
.filter-toggle {
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 900;
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .profile-header-grid {
    grid-template-columns: 1fr;
    /* Stack sidebar on tablet too for safe space */
  }

  .profile-header {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Profile Image Container */
/* Profile Image Container - Refined */
.profile-photo-container {
  /* Kept for legacy if needed, but overridden above */
  width: 160px;
  height: 160px;
  /* ... */
}

.profile-avatar-lg {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  /* Box shadow removed here if container has border, or keep it subtle */
}

/* Fallback for Main Image */
.profile-header-grid img[src*="uploads/"]:first-child {
  max-width: 140px;
  max-height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  border: 2px solid #f0f0f0;
}

/* Gallery Container & Fallback */
.profile-gallery-column .flex-gap,
.profile-gallery-column>div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-gallery-column img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

/* Data List Component */
.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-list li {
  display: flex;
  margin-bottom: 0.8rem;
  align-items: baseline;
}

.data-list .label {
  flex: 0 0 140px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.data-list .value {
  flex: 1;
  color: var(--text-muted);
}

.data-list .value.empty {
  font-style: normal;
  /* Avoid italics for high-speed screen reader clarity */
  color: #717171;
  opacity: 0.8;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.verified::before {
  content: "✓ ";
  font-weight: bold;
}

.status-badge.online::before {
  content: "• ";
  font-weight: bold;
}

.status-badge.verified {
  background-color: #f1f8f3;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.status-badge.online {
  background-color: #f0f7ff;
  color: #0d47a1;
  border: 1px solid #bbdefb;
  margin-left: 8px;
}

/* Notification Badge Refinement */
.notif-badge {
  background-color: #d32f2f;
  /* Piros */
  color: white;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Content Blocks */
.block {
  margin-bottom: 2rem;
}

.block h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Footer & Skip Link */
footer {
  margin-top: 32px;
  padding: 16px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
}

/* Notification Card - High Contrast Fix */
.notification-card {
  background: #ffffff !important;
}

.notification-card .text {
  color: #333333 !important;
  margin: 0;
  font-weight: inherit;
}

.notification-card .meta {
  color: #57606f !important;
  font-size: 0.85rem; /* px helyett rem */
  display: block;
  margin-bottom: 0.4rem;
}

/* Message Item - Border Fix */
.message-item {
  position: relative;
  padding-left: 20px;
  /* Increased slightly for visual balance */
  overflow: hidden;
  /* Ensures relative positioning contains children if needed */
}


/* Gallery Item - Edit Profile Fix */
.gallery-item {
  position: relative;
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-item .delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
  border-radius: 4px;
  z-index: 10;
}


/* File Upload - Edit Profile Fix */
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Hero Section - Homepage Fix */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.hero-icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
  display: flex;
  /* Ensure SVG behaves */
}

.hero h1 {
  margin-top: 0;
  /* Remove top margin conflict */
}

/* Üzenetküldés Spinner & Button Styles */
.btn:disabled {
  background-color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
  box-shadow: none !important;
}

.spinner-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  display: none;
  /* Alapértelmezés szerint rejtett */
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

/* Secondary gombnál sötét spinner */
.btn.secondary .spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary-color);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* --- AVATAR PLACEHOLDERS --- */
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
}

.avatar-placeholder.small {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.avatar-placeholder.medium {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 32px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.avatar-placeholder.large {
    width: 100%;
    height: 100%;
    font-size: 8rem;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Premium Gradients */
.avatar-grad-1 { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); }
.avatar-grad-2 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.avatar-grad-3 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.avatar-grad-4 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.avatar-grad-5 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.avatar-grad-6 { background: linear-gradient(135deg, #cd1355 0%, #f06292 100%); }

/* --- CONSOLIDATED AVATAR SYSTEM --- */
.avatar-small, img.avatar-small, .user-profile-header img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 32px !important; /* Kért 32px lekerekítés */
  object-fit: cover !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Lágy drop shadow */
}

.avatar-medium, img.avatar-medium {
  width: 60px !important;
  height: 60px !important;
  border-radius: 32px !important; /* Kért 32px lekerekítés */
  object-fit: cover !important;
  flex-shrink: 0 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.avatar-large, img.avatar-large, .card-photo-edge {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  display: block;
}


/* --- MODERN BROWSE GRID --- */
.browse-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.browse-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.modern-profile-card {
  position: relative;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 3 / 4.2;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.modern-profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modern-card-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.modern-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-profile-card:hover .modern-card-image img {
  transform: scale(1.05);
}

.modern-card-info {
  padding: 1.25rem;
  background: white;
}

.modern-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--deep-charcoal);
}

.modern-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.modern-card-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-hover); /* Sötétebb korall/piros a fehér hátteren való olvashatóságért */
  z-index: 2;
}

.no-results-modern {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 32px;
  max-width: 500px;
  margin: 2rem auto;
}


/* --- LIKE/PASS INTERACTION UI --- */
.modern-profile-card-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.card-actions-overlay {
    position: absolute;
    bottom: 80px; /* Az info sáv felett */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 1rem;
    z-index: 10;
    pointer-events: none; /* Átengedjük a kattintást a kártyára ha kell, de a gombokra nem */
}

.action-btn {
    pointer-events: auto; /* A gombok viszont kattinthatóak */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:hover {
    transform: scale(1.15);
}

.pass-btn {
    background: white;
    color: #636e72;
}

.like-btn {
    background: var(--primary-gradient);
    color: white;
}

.message-btn {
    background: #00cec9; /* Modern teal/turquoise */
    color: white;
}

/* MATCH OVERLAY */
.match-overlay-hidden {
    display: none;
}

.match-overlay-visible {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.match-content {
    background: white;
    padding: 3rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.match-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-coral);
    margin-bottom: 0.5rem;
}

.match-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- JAVÍTOTT AKADÁLYMENTESÍTŐ STÍLUSOK --- */
html.large-font {
  font-size: 20px !important; /* Az alap 15px helyett */
}

html.high-contrast {
  /* Alapszínek felülírása változókkal */
  --bg-body: #000000 !important;
  --bg-section: #000000 !important;
  --bg-soft: #1a1a1a !important;
  --text-main: #ffff00 !important;
  --text-muted: #ffff00 !important;
  --primary-color: #ffff00 !important;
  --primary-coral: #ffff00 !important;
  --accent-color: #00ffff !important;
  --border-color: #ffff00 !important;
  --glass-bg: #000000 !important;
  --primary-gradient: linear-gradient(135deg, #ffff00 0%, #ffff00 100%) !important;
}

html.high-contrast body {
  background-color: #000000 !important;
  color: #ffff00 !important;
}

/* Minden elem kényszerítése a kontrasztos színekre */
html.high-contrast *:not(.accessibility-toggle-btn, .accessibility-panel, .accessibility-panel *, .switch, .slider, .slider:before) {
  border-color: #ffff00 !important;
  box-shadow: none !important;
  background-image: none !important;
}

html.high-contrast a {
  color: #00ffff !important;
  text-decoration: underline !important;
}

html.high-contrast .btn {
  background: none !important;
  background-color: transparent !important;
  border: 3px solid #ffff00 !important;
  color: #ffff00 !important;
}

html.high-contrast .btn:hover {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

html.high-contrast .accessibility-panel {
  background: white !important;
  color: black !important;
}

html.high-contrast .accessibility-panel * {
  background: transparent !important;
  color: black !important;
  border-color: #ccc !important;
}

/* --- LANDING PAGE ADDITIONS --- */

:root {
  --pastel-pink: #fff5f7;
  --deep-burgundy: #800020;
  --white: #ffffff;
}

.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--pastel-pink);
  min-height: 500px;
  gap: 2rem;
}

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

.hero-title-main {
  font-size: 3rem;
  color: var(--deep-burgundy);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions-new {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-illustration-placeholder {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.illustration-circle {
  width: 400px;
  height: 400px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(128, 0, 32, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-circle::after {
  content: 'Illusztráció helye';
  color: var(--accent-color);
  font-style: italic;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--deep-burgundy);
  margin-bottom: 4rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--pastel-pink);
  color: var(--deep-burgundy);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon svg {
  width: 40px;
  height: 40px;
}

.step-card h3 {
  font-size: 1.5rem;
  color: var(--deep-burgundy);
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Trust Bar */
.trust-bar {
  background-color: var(--deep-burgundy);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: 32px;
  margin: 4rem 2rem;
}

.trust-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.trust-badge {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge svg {
  width: 60px;
  height: 60px;
  color: var(--accent-color);
}

.trust-text h2 {
  color: var(--white);
  margin-top: 0;
  font-size: 2rem;
}

.trust-text p {
  font-size: 1.2rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Utility buttons */
.btn-large {
  padding: 1.2rem 3rem !important;
  font-size: 1.1rem !important;
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-actions-new {
    justify-content: center;
  }
  
  .illustration-circle {
    width: 300px;
    height: 300px;
  }
  
  .trust-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- ACCESSIBILITY PANEL STYLES --- */

.accessibility-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--deep-burgundy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 9999;
  border: 2px solid white;
  transition: transform 0.2s;
}

.accessibility-toggle-btn:hover {
  transform: scale(1.1);
}

.accessibility-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  width: 250px;
  display: none;
  border: 1px solid var(--border-color);
}

.accessibility-panel.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.accessibility-panel h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--deep-burgundy);
  margin-bottom: 1rem;
}

.a11y-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.a11y-setting label {
  margin-bottom: 0;
  font-weight: 500;
}

/* Toggle Switch Style */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* --- JAVÍTOTT AKADÁLYMENTESÍTŐ STÍLUSOK --- */
html.large-font {
  font-size: 20px !important; /* Az alap 15px helyett */
}

html.high-contrast {
  /* Alapszínek felülírása változókkal */
  --bg-body: #000000 !important;
  --bg-section: #000000 !important;
  --bg-soft: #1a1a1a !important;
  --text-main: #ffff00 !important;
  --text-muted: #ffff00 !important;
  --primary-color: #ffff00 !important;
  --primary-coral: #ffff00 !important;
  --accent-color: #00ffff !important;
  --border-color: #ffff00 !important;
  --glass-bg: #000000 !important;
  --pastel-pink: #000000 !important;
  --deep-burgundy: #ffff00 !important; /* Most már látszani fog a főcím! */
  --white: #000000 !important;
  --primary-gradient: linear-gradient(135deg, #ffff00 0%, #ffff00 100%) !important;
}

html.high-contrast body,
html.high-contrast section,
html.high-contrast main,
html.high-contrast div:not(.accessibility-panel, .accessibility-panel *) {
  background-color: #000000 !important;
  color: #ffff00 !important;
}

/* Minden elem kényszerítése a kontrasztos színekre */
html.high-contrast *:not(.accessibility-toggle-btn, .accessibility-panel, .accessibility-panel *, .switch, .slider, .slider:before) {
  border-color: #ffff00 !important;
  box-shadow: none !important;
  background-image: none !important;
}

html.high-contrast .hero-split,
html.high-contrast .how-it-works,
html.high-contrast .trust-bar,
html.high-contrast .step-icon,
html.high-contrast .illustration-circle {
  background-color: #000000 !important;
  background: #000000 !important;
  border: 1px solid #ffff00 !important;
}

html.high-contrast a {
  color: #00ffff !important;
  text-decoration: underline !important;
}

html.high-contrast .btn {
  background: none !important;
  background-color: transparent !important;
  border: 3px solid #ffff00 !important;
  color: #ffff00 !important;
}

html.high-contrast .btn:hover {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

/* A panel maradjon eredeti, hogy a kapcsolók látszódjanak */
html.high-contrast .accessibility-panel {
  background: white !important;
  color: black !important;
  border: 2px solid #ccc !important;
}

html.high-contrast .accessibility-panel * {
  background: transparent !important;
  color: black !important;
  border-color: #ccc !important;
}

html.high-contrast .slider {
  background-color: #ccc !important;
}

html.high-contrast input:checked + .slider {
  background-color: #cd1355 !important;
}

html.high-contrast .slider:before {
  background-color: white !important;
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease-out;
}

@media (max-width: 992px) {
  .hero-img {
    margin-top: 2rem;
    max-width: 80%;
  }
}
