/*
 * MCDEVS HU - Pixel Műhely
 * Készítette: Phodorr
*/
:root {
  --background: #121212;
  --ui-surface: #1E1E1E;
  --border-subtle: #333333;
  --text-primary: #F5F5F5;
  --text-secondary: #8A8A8A;
  --accent-gold: #D4AF37;
  --accent-gold-glow: rgba(212, 175, 55, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  background-image: radial-gradient(circle at top left, rgba(212, 175, 55, 0.05), transparent 30%),
                    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.05), transparent 40%);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigációs menü */
.navbar {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 1s ease-out forwards;
}
.nav-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    text-decoration: none;
    color: var(--text-primary);
}
.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    margin-left: 25px;
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}


/* Tartalom konténer */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5vh 20px;
}

main, .page-content {
  width: 100%;
  max-width: 650px;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Kezdőlap specifikus stílusok */
.hero-section h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.hero-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--accent-gold);
    color: var(--background);
}
.btn-primary:hover {
    background: #EAC54E;
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: var(--ui-surface);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Általános oldal stílusok (Rólam, Útmutató, GYIK) */
.page-content h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    margin-bottom: 30px;
}
.page-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--accent-gold);
    text-align: left;
}
.page-content p, .page-content li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
    margin-bottom: 20px;
}
.page-content ul {
    list-style-position: inside;
    text-align: left;
    padding-left: 10px;
}
.page-content a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}
.page-content a:hover {
    text-decoration: underline;
}
.page-content code {
    background-color: var(--ui-surface);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 14px;
    color: var(--text-primary);
}

/* Galéria Stílusok */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
}
.gallery-item {
    background: var(--ui-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}
.gallery-item img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    margin-bottom: 10px;
    border: 1px solid var(--border-subtle);
}
.gallery-item p {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Generátor oldal stílusok */
.generator-container { max-width: 500px; }
.header { text-align: center; margin-bottom: 40px; }
.header h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.input-group { margin-bottom: 25px; }
.input-group label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 10px; text-align: left;
}
input[type="text"] {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px; width: 100%; padding: 16px;
  background: var(--ui-surface); border: 1px solid var(--border-subtle);
  border-radius: 6px; color: var(--text-primary); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.config-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 25px; margin-bottom: 40px;
}

.color-picker { text-align: left; }
.color-picker label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 10px;
}
.color-input-wrapper { position: relative; width: 100%; height: 52px; }
input[type="color"] {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.color-swatch {
  width: 100%; height: 100%; background-color: #FFF;
  border: 1px solid var(--border-subtle); border-radius: 6px;
  pointer-events: none; display: flex; align-items: center;
  padding: 0 16px; font-family: 'Inter', monospace;
  font-weight: 500; font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.color-input-wrapper:hover .color-swatch,
input[type="color"]:focus + .color-swatch {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

#downloadBtn {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 0.5px; width: 100%; padding: 18px;
  color: var(--background); background: var(--accent-gold);
  border: none; border-radius: 6px; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
#downloadBtn:hover { background: #EAC54E; }
#downloadBtn:active { transform: scale(0.99); }

.divider {
  width: 100%; max-width: 500px;
  border: none; height: 1px;
  background-color: var(--border-subtle);
  /* JAVÍTVA ITT: */
  margin: 40px 0 20px 0;
}

.preview-section {
  width: 100%;
  text-align: center;
  overflow-x: auto; 
}
.preview-section h2 {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.canvas-wrapper {
  display: inline-block; 
  padding: 4px;
  background: var(--ui-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
canvas { display: block; image-rendering: pixelated; }

footer {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.6;
}