/* MOBILEINDEX.CSS */

/* Alap mobil beállítások */
@media (max-width: 768px) {

  /* Logó mobilra - a tartalom jobb felső sarkában */
.corner-logo {
    position: absolute;
    top: 120px;       /* a cím alatt */
    right: 20px;      /* majdnem a képernyő szélén */
    width: 125px;
    height: auto;
    z-index: 10;
  }
  
  header.hero {
    position: relative;
  }

  /* Hamburger megjelenítése */
  .hamburger {
    display: flex;
    position: fixed;           /* hamburger mindig látszik */
    top: 15px;
    left: 15px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 2000;
  }

  .hamburger span {
    height: 4px;
    background: #f1c40f;
    border-radius: 2px;
    width: 100%;
  }

  /* Sidebar mobilra */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 180px;
    height: 100vh;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  /* Main content margin levétele */
  .main-area {
    margin-left: 0;
  }

  /* Content wrapper mobilon */
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 15px;
  }

  /* Intro-text Rólam rész */
  .intro-text {
    max-width: 100%;
    font-size: 1em;
    line-height: 1.5em;
  }

  /* Post grid reszponzív */
  .posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Post-card mobilon */
  .post-card {
    min-height: auto;
  }

  .post-image {
    height: 150px;
  }

  .post-card h3 {
    font-size: 1.1em;
  }

  .post-card p {
    font-size: 0.9em;
    -webkit-line-clamp: 4;
  }

  /* Modal mobilon */
  .modal-content {
    max-height: 80vh; /* görgethető a hosszú tartalom */
    overflow-y: auto;
    padding: 20px;
    margin: 10vh auto;
    width: 90%;
  }

  /* Footer mobilon */
  .bottom-bar {
    font-size: 0.85em;
    padding: 8px;
  }
}

/* Extra kisebb eszközre, 480px alatt */
@media (max-width: 480px) {

  /* Logó kisebb képernyőre */
  .corner-logo {
    width: 100px;
    height: auto;
    align-self: flex-end; /* flex konténerben jobbra */
    margin: 15px 0;
  }

  .post-image {
    height: 120px;
  }

  .post-card p {
    -webkit-line-clamp: 3;
  }

  .hamburger {
    top: 10px;
    left: 10px;
    width: 25px;
    height: 20px;
  }

  .hamburger span {
    height: 3px;
  }

  .intro-text h3 {
    font-size: 1.1em;
  }
}
