body {
  background: url("/assets/background.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: rgba(0,0,0,0.8);
  border-radius: 12px;
  text-align: center;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background: transparent;
}

.site-header {
  position: relative;
  width: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.site-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 90px;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-desktop ul li a {
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-desktop ul li a:hover {
  color: #FFD700;
}

.news-section {
  padding: 50px;
  color: white;
  text-align: center;
}

.page-title {
  font-size: 36px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.news-card {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: scale(1.03);
}

.news-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.date {
  font-size: 14px;
  color: #bbb;
}

footer {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 1rem;
  margin-top: 20px;
}

footer a {
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #7289DA !important;
  text-decoration: underline;
}

/* -------------------- */
/* LOGIN/REGISTER FORMS */
/* -------------------- */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 8px;
  padding: 10px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: border 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus {
  border: 1px solid #FFD700;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

form button {
  padding: 12px;
  background: #FFD700;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

form button:hover {
  background: #e6c200;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* --- Logout gomb stílus --- */
.logout-btn {
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.logout-btn:hover {
    color: red;
}

/* --- Logout gomb erősebb stílus --- */
.logout-btn {
    color: white !important;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.logout-btn:hover {
    color: red !important;
}

/* --------- Admin hírek form --------- */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  background: rgba(0,0,0,0.6);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
}

.admin-form button {
  padding: 10px;
  background: #FFD700;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.admin-form button:hover {
  background: #e6c200;
}

/* --------- Hírek lista --------- */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.news-list a.delete {
  color: red;
  font-weight: bold;
  text-decoration: none;
}

.news-list a.delete:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  border-top: 1px solid #444;
}

.site-footer a {
  color: #FFD700;
  text-decoration: none;
  margin-left: 5px;
}

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

/* Egységes betűtípus minden oldalon */
body {
    font-family: 'Poppins', sans-serif;
}
