/* =========================
   RESET + ALAP BEÁLLÍTÁSOK
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background: var(--body-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: var(--line-height);
}

/* =========================
   HEADER
========================= */

header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-weight: var(--font-weight);
  letter-spacing: 1px;
  text-align: right;
}
/* =========================
   NAVIGÁCIÓ
========================= */
nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

nav a {
  text-decoration: none;
  color: var(--accent);
  padding: 8px 12px;
}

nav a {
  position: relative;
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: white;
}
/*
nav a:hover::after {
  width: calc(100% + 8px);
}
*/

/* =========================
   MAIN TARTALOM
========================= */

main {
  flex: 1;
  padding: 80px 10%;
  background: var(--main-bg);
}

/* =========================
   INTRO SZEKCIÓ
========================= */

.intro {
  text-align: center;
  margin-bottom: 40px;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* =========================
   VILÁG KÁRTYÁK
========================= */

.world-grid {
  display: grid;
}

.world-card {
  background: var(--card-bg);
  color: var(--card-text);
  text-decoration: none;
  box-shadow: 0 6px 18px var(--shadow-soft);
}

.world-card:hover {
  transform: translateY(-6px);
}

.world-card h2 {
  margin-top: 0;
  color: var(--card-text);
  font-size: 1.1rem;
}

.world-card p {
  font-size: 0.9rem;
  opacity: 0.85;
}


.project-card {
  max-width: 1500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 8px;
  color: var(--header-bg);
}
/* =========================
   AUTH (Login / Reg)
========================= */

.auth-box-log {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 8px;
  color: var(--header-bg);
}

.auth-box-log input {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px 0;
}

.auth-box-log button {
  width: 100%;
  padding: 10px;
  background: var(--button-bg);
  color: white;
  border: none;
  cursor: pointer;
}

.auth-box-log button:hover {
  opacity: 0.9;
}

.auth-box-sign {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 8px;
  color: var(--header-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-box-sign label {
  display: block;
  margin-bottom: 10px;
}

.auth-box-sign input {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px 0;
}

.auth-box-sign button {
  width: 100%;
  padding: 10px;
  background: var(--button-bg);
  color: white;
  border: none;
  cursor: pointer;
}

.auth-box-sign button:hover {
  opacity: 0.9;
}

/* =========================
   BACKEND GOMBOK ?
========================= */

input, select, textarea, fieldset { margin-bottom: 10px; }

        input[type="reset"], input[type="submit"] {
            background-color: var(--button-bg);
            color: #FFF;
            border: none;
            outline: none;
            font-size: 16px;
            width: 100%;
        }

/* =========================
   FOOTER
========================= */

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 15px;
  border-top: 2px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* =========================
   MEDIA
========================= */


/*
@media (max-width: 768px)*/


@media (max-width: 480px){

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 10px 0;
    list-style: none;
  }

  nav li {
    list-style: none;
  }

  nav a {
    display: block;
    font-size: 13px;
    padding: 5px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    white-space: normal; /* EZ FONTOS */
  }
}
