/* ===== Alap beállítások ===== */
:root {
  --color-bg: #0d0d0f;
  --color-panel: #1a1a1f;
  --color-text: #ffffff;
  --color-muted: #b3b3c6;
  --color-accent: #ff00ff;
  --color-accent-hover: #e600e6;
  --color-success: #00d48f;
  --color-error: #ff4d4d;
  --color-border: rgba(255, 255, 255, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ===== Fejléc ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: var(--color-panel);
  border-bottom: 1px solid var(--color-border);
}

header h1 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}

header nav a {
  color: var(--color-text);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  transition: color 0.2s ease;
}
header nav a:hover {
  color: var(--color-accent);
}

/* ===== Konténer ===== */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 32px;
  background: var(--color-panel);
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

/* ===== Tipográfia ===== */
h1, h2, h3 {
  margin-top: 0;
  font-weight: 700;
}
p {
  margin-bottom: 1em;
  color: var(--color-muted);
}

/* ===== Form elemek ===== */
form {
  display: grid;
  gap: 16px;
}

label {
  font-weight: 600;
  color: var(--color-text);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #111114;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.25);
  outline: none;
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
}
button:hover {
  background: var(--color-accent-hover);
}
button:active {
  transform: translateY(1px);
}

/* ===== Üzenetek ===== */
.success {
  color: var(--color-success);
  background: rgba(0, 212, 143, 0.1);
  border: 1px solid rgba(0, 212, 143, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.error {
  color: var(--color-error);
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

/* ===== Táblázatok ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: rgba(255, 255, 255, 0.05);
}
thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
}

tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.status-sent { color: var(--color-success); font-weight: 600; }
.status-failed { color: var(--color-error); font-weight: 600; }
.status-pending { color: var(--color-accent); font-weight: 600; }

/* ===== QR kód ===== */
.qr img {
  display: block;
  margin: 16px auto;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #111114;
  border: 1px solid var(--color-border);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 24px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ===== Dashboard layout ===== */
.dashboard {
  display: flex;
  align-items:stretch;
  min-height: 100vh;
  background: var(--color-bg);
}

/* ===== Sidebar ===== */
.sidebar {
  width: 70px;
  height: auto;
  background: var(--color-panel);
  transition: width 0.3s ease;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
}
.sidebar.open { width: 220px; }

.sidebar .menu-toggle {
  display: block;
  padding: 20px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--color-text);
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar li:hover { background: rgba(255,255,255,0.08); }
.sidebar li i {
  font-size: 20px;
  margin-right: 12px;
}
.sidebar.open li span { display: inline; }
.sidebar li span { display: none; }

/* ===== Content area ===== */
.content {
  flex: 1;
  padding: 32px;
}
.card {
  background: var(--color-panel);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--color-text);
}

/* ===== Address cards ===== */
.address-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease;
}
.address-card.active {
  border-color: var(--color-accent);
}
.address-card.active::after {
  content: "Fő cím";
  position: absolute;
  top: 8px; right: 12px;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: bold;
}

/* ===== 2FA secret reveal ===== */
.secret-box {
  background: #111114;
  border: 1px dashed var(--color-border);
  padding: 12px;
  border-radius: 8px;
  display: none;
  margin-top: 12px;
  font-family: monospace;
  color: var(--color-accent);
  text-align: center;
}

.card-section {
  display: none;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: #eee;
  text-align: center;
  padding: 15px 10px;
}


.site-footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer .footer-nav {
  margin-top: 10px;
}

.site-footer .footer-nav a {
  color: #eee;
  margin: 0 10px;
  text-decoration: none;
}

.site-footer .footer-nav a:hover {
  text-decoration: underline;
}

body.login-page {
  background: #f1f1f1;
  font-family: Arial, sans-serif;
}

.login-container {
  width: 320px;
  margin: 80px auto;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.13);
}

.login-logo {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #b0006d; /* magenta árnyalat */
}

.login-form label {
  font-size: 14px;
  color: #333;
}

.login-form input[type="email"],
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fafafa;
}

.login-form button {
  width: 100%;
  padding: 10px;
  background: #d60093; /* magenta főszín */
  color: #fff;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover {
  background: #b0006d; /* sötétebb magenta hover */
}

.error {
  color: red;
  margin-bottom: 10px;
}

.success {
  color: green;
  margin-bottom: 10px;
}

.nav {
  text-align: center;
  margin-top: 15px;
}
/* Profile oldal stílusai maradnak, csak a formokra adunk WP-s kinézetet */
.wp-form label {
  font-size: 14px;
  color: #333;
}

.wp-form input[type="email"],
.wp-form input[type="text"],
.wp-form input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fafafa;
  box-sizing: border-box;
}

.wp-form button {
  width: 100%;
  padding: 10px;
  background: #d60093; /* magenta főszín */
  color: #fff;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
}

.wp-form button:hover {
  background: #b0006d; /* sötétebb magenta hover */
}

.error {
  color: red;
  margin-bottom: 10px;
}

.success {
  color: green;
  margin-bottom: 10px;
}


.avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}
.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-wrapper .overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(214,0,147,0.6); /* magenta áttetsző */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: bottom 0.3s;
  font-weight: bold;
}
.avatar-wrapper:hover .overlay {
  bottom: 0;
}
/* GALÉRIA */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

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

.gallery-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(214,0,147,0.7); /* magenta overlay */
  display: flex;
  justify-content: space-around;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-actions {
  opacity: 1;
}

.gallery-actions button {
  background: #520685;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-actions button:hover {
  background: #140a0a;
}


/** Email küldés **/
.email-block {
  margin: 15px 0;
}

.email-wrapper {
  display: flex;
  align-items: center;
  background: #2a002a;
  padding: 10px;
  border-radius: 6px;
}

.email-wrapper span {
  flex: 1;
  font-family: monospace;
}

.email-wrapper button.toggle-email {
  background: none;
  border: none;
  color: #ff00ff;
  font-size: 18px;
  cursor: pointer;
}
/* Konténer */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

/* Mobilra 1 oszlop */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Label */
.form-grid label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.95rem;
}

/* Input és select mezők */
.form-grid input[type="text"],
.form-grid select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-grid input[type="text"]:focus,
.form-grid select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Speciális stílus a cím mezőkhöz */
.shipping-address {
    grid-column: 1 / -1;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}