
/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
  line-height: 1.5;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 20px;
}

header h1 {
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav li {
    display: inline-block;
}

nav a, nav input {
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    padding: 5px 10px;
}

#container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

/* Bal oldali szűrőpanel */
#filter-panel {
  flex: 0 0 250px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#filter-panel h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

#filter-panel details {
  margin-bottom: 12px;
}

#filter-panel summary {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 5px;
}

#filter-panel label {
  display: block;
  margin: 4px 0;
  cursor: pointer;
}

/* Jobb oldali rész */
main {
  flex: 1;
}

/* Kereső mező */
#search {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

#posts h3 {
  margin: 20px 0 10px;
  font-size: 20px;
  color: #444;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* Poszt kártyák */
.post-card {
  display: flex;
  gap: 15px;
  background: #fff;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-image {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.post-content {
  flex: 1;
}

.post-title {
  font-size: 18px;
  margin-bottom: 6px;
  color: #222;
}

.post-description {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.version, .version-date {
  font-size: 12px;
  color: #666;
}

.post-meta {
  font-size: 13px;
  margin-top: 8px;
  color: #888;
}

.post-meta a {
  text-decoration: none;
  color: #0077cc;
}

.post-meta a:hover {
  text-decoration: underline;
}

/* Mobil nézet */
@media (max-width: 768px) {
  #container {
    flex-direction: column;
  }

  #filter-panel {
    width: 100%;
    order: -1;
  }

  .post-card {
    flex-direction: column;
    align-items: center;
  }

  .post-image {
    width: 100%;
    height: auto;
  }

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



** modhub **

  :root{
    --card-w: 400px;
    --card-h: 400px;
    --radius: 14px;
    --border: #e5e7eb;   /* világos körvonal */
    --ring: #cbd5e1;     /* külső „összefoglaló” kontúr */
  }

  body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#f6f7fb;color:#0f172a;}
  .page{
    max-width: calc((var(--card-w)*4) + (24px*3)); /* 4 oszlop + 3 rés */
    margin: 40px auto;
    padding: 0 16px;
  }

  /* Rács: 4 oszlop, fix méretű kártyák */
  .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 oszlop */
  gap: 24px; /* távolság a kártyák között */
}


  /* Kártya: dupla körvonal (border + outline) az „összefoglaló” hatásért */
  .card{
    width:var(--card-w);
    height:var(--card-h);
    background:#fff;
    border:2px solid var(--border);
    outline: 6px solid var(--ring);
    outline-offset: 6px;
    border-radius:var(--radius);
    box-shadow: 0 10px 20px rgba(2,6,23,0.08);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .card:hover{
    transform:translateY(-3px);
    box-shadow: 0 14px 28px rgba(2,6,23,0.12);
  }

  /* Kép a tetején (magas, vágás nélkül torzítás nélkül) */
  .card img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
    border-bottom:1px solid var(--border);
  }

  .card .content{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:14px 16px;
    flex:1;
  }
  .title{
    font-size:20px;
    font-weight:700;
    line-height:1.2;
    margin:4px 0 0 0;
  }
  .desc{
    color:#475569;
    font-size:14px;
    line-height:1.45;
    margin:0;
    /* leírás kényelmes tördelése: max 3-5 sor belefér */
    display:-webkit-box;
    line-clamp:5;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  /* Modern letöltés gomb */
  .actions{
    padding: 8px 16px 16px 16px;
    display:flex;
    justify-content:center;
  }
  .download-btn{
    appearance:none;
    border:none;
    border-radius:999px;
    padding:12px 20px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color:#fff;
    box-shadow: 0 6px 16px rgba(34,197,94,.35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:10px;
  }
  .download-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(34,197,94,.4);
    filter:brightness(1.03);
  }
  .download-btn:active{
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(34,197,94,.35);
  }
  .download-btn .icon{
    font-size:18px;
    line-height:1;
  }

  /* (Opcionális) Reszponzív vészfék kisebb kijelzőn – ilyenkor 2 oszlopra törik,
     de az eredeti kérést (4×4) asztali nézetben tartjuk. */
  @media (max-width: 1700px){
    .grid{ grid-template-columns: repeat(3, var(--card-w)); }
  }
  @media (max-width: 1280px){
    .grid{ grid-template-columns: repeat(2, var(--card-w)); }
  }
  @media (max-width: 860px){
    .grid{ grid-template-columns: repeat(1, var(--card-w)); }
  }


/* oldalszám */

  /* === Lapozás (pagination) === */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 25px 0;
}

#pagination button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

#pagination button:hover {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
}

#pagination button.active {
  background: #3498db;
  color: #fff;
  font-weight: bold;
  border-color: #2980b9;
}

#pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* footer */

/* === Footer === */
footer {
  background: #2c3e50;   /* sötét háttér */
  color: #ecf0f1;        /* világos szöveg */
  text-align: center;
  padding: 30px 15px;
  margin-top: 40px;
}

footer a {
  color: #3498db;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1abc9c;
}

footer .footer-links {
  margin-bottom: 12px;
}

footer .copyright {
  font-size: 14px;
  color: #bdc3c7;
}
