html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#screen {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
    background-size: 20px 20px;
  background-image: linear-gradient(#333 1px, transparent 1px),
                    linear-gradient(90deg, #333 1px, transparent 1px);
}

/* Resizable fogók */
.resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffcc00;
  border-radius: 50%;
  cursor: pointer;
}

/* Sarokfogók */
.resize-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
.resize-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
.resize-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.resize-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }

/* Oldalfogók */
.resize-handle.n { top: -6px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.resize-handle.s { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.resize-handle.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: w-resize; }
.resize-handle.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: e-resize; }

/* Három panel egymás mellett */
#blogPanel1 { left: 40px;  top: 80px;  width: 400px; height: 300px; }
#blogPanel2 { left: 480px; top: 80px;  width: 400px; height: 300px; }
#blogPanel3 { left: 920px; top: 80px;  width: 400px; height: 300px; }

/* ============================
   MI2logia ARANY KERETES PANEL
============================ */

.panel {
  position: absolute;
  background: rgba(20, 20, 20, 0.85);        /* mély, vinyl-sötét */
  border-radius: 14px;
  border: 2px solid #d4af37;                 /* arany keret */
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.45),       /* arany fényudvar */
    inset 0 0 18px rgba(255, 255, 255, 0.08);/* belső fény */
  backdrop-filter: blur(6px);                /* MI2logia üveghatás */
  color: #f5f5f5;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Make panels layout as column so header/content/footer sizes behave predictably */
.panel {
  display: flex;
  flex-direction: column;
}

/* Panel content should take remaining space and scroll when needed */
.panel .panel-content {
  height: calc(100% - 80px);
  overflow: hidden;
  min-height: 0; /* allow proper flex overflow in Chromium-based browsers */
}

/* Hover kiemelés */
.panel:hover {
  border-color: #ffd86b;
  box-shadow:
    0 0 18px rgba(255, 215, 100, 0.55),
    inset 0 0 22px rgba(255, 255, 255, 0.12);
}

/* Címek MI2logia stílusban */
.panel h2 {
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffd86b; /* arany cím */
  margin-bottom: 12px;
}

/* Szöveg */
.panel p {
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #e0e0e0;
}

/* ============================
   RESIZE HANDLES – ARANY STÍLUS
============================ */

.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #d4af37;        /* arany */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  cursor: pointer;
}

/* Sarokfogók */
.resize-handle.nw { top: -7px; left: -7px; cursor: nw-resize; }
.resize-handle.ne { top: -7px; right: -7px; cursor: ne-resize; }
.resize-handle.sw { bottom: -7px; left: -7px; cursor: sw-resize; }
.resize-handle.se { bottom: -7px; right: -7px; cursor: se-resize; }

/* Oldalfogók */
.resize-handle.n { top: -7px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.resize-handle.s { bottom: -7px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.resize-handle.w { left: -7px; top: 50%; transform: translateY(-50%); cursor: w-resize; }
.resize-handle.e { right: -7px; top: 50%; transform: translateY(-50%); cursor: e-resize; }

/* Bezáró gomb */
/*.panel-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.9),
    0 0 18px rgba(0, 200, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: mi2-close-pulse 3s infinite alternate;
}*/

.panel-close:hover {
  transform: scale(1.2);
  box-shadow:
    0 0 16px rgba(255, 215, 100, 1),
    0 0 26px rgba(0, 240, 255, 0.9);
}

/* Neon pulzálás */
@keyframes mi2-close-pulse {
  0% {
    box-shadow:
      0 0 8px rgba(212, 175, 55, 0.6),
      0 0 14px rgba(0, 200, 255, 0.4);
  }
  100% {
    box-shadow:
      0 0 14px rgba(255, 215, 100, 1),
      0 0 22px rgba(0, 240, 255, 0.8);
  }
}

.restore-list {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 200px;
  background: rgba(10, 10, 15, 0.85);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 12px;
  box-shadow:
    0 0 14px rgba(212, 175, 55, 0.55),
    0 0 26px rgba(0, 180, 255, 0.35);
  backdrop-filter: blur(6px);
  color: #ffd86b;
}

.restore-list h3 {
  font-size: 18px;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(255, 215, 100, 0.7);
}

.restore-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.restore-list li {
  background: rgba(30, 30, 40, 0.8);
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  cursor: pointer;
  color: #e0e0e0;
  transition: 0.2s;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
}

.restore-list li:hover {
  background: rgba(50, 50, 70, 0.9);
  color: #ffd86b;
  box-shadow: 0 0 16px rgba(255, 215, 100, 0.7);
.panel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42px;
  background: rgba(20, 20, 30, 0.85);
  border-top: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow:
    0 -2px 12px rgba(212, 175, 55, 0.45),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.footer-icon {
  font-size: 20px;
  cursor: pointer;
  color: #ffd86b;
  text-shadow:
    0 0 8px rgba(255, 215, 100, 0.7),
    0 0 14px rgba(0, 200, 255, 0.6);
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-icon:hover {
  transform: scale(1.25);
  color: #ffffff;
}
  display: flex;
  gap: 12px;
  background: rgba(30, 30, 40, 0.7);
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.blog-index-item:hover {
  background: rgba(50, 50, 70, 0.9);
  box-shadow: 0 0 16px rgba(255, 215, 100, 0.7);
}

.blog-index-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.blog-index-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-index-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffd86b;
}

.blog-index-date {
  font-size: 13px;
  color: #ccc;
}

.blog-index-author {
  font-size: 13px;
  color: #9ecfff;
}

/* .panel-zup, .panel-zdown {
  position: absolute;
  top: 6px;
  right: 40px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.9),
    0 0 18px rgba(0, 200, 255, 0.7);
  transition: transform 0.2s ease;
} */

.panel-zdown {
  right: 70px;
}

.panel-zup:hover, .panel-zdown:hover {
  transform: scale(1.2);
}

.panel-header {
  position: relative;
  width: 100%;
  height: 38px;
  background: rgba(20, 20, 30, 0.85);
  border-bottom: 2px solid #d4af37;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.45),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffd86b;
  text-shadow: 0 0 8px rgba(255, 215, 100, 0.7);
  flex-grow: 1;
}

/* Gombok a headerben */
.panel-zup, .panel-zdown, .panel-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  margin-left: 8px;
  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.9),
    0 0 18px rgba(0, 200, 255, 0.7);
  transition: transform 0.2s ease;
}

.panel-zup:hover, .panel-zdown:hover, .panel-close:hover {
  transform: scale(1.2);
}

.panel-reset {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  margin-left: 8px;
  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.9),
    0 0 18px rgba(0, 200, 255, 0.7);
  transition: transform 0.2s ease;
}

.panel-reset:hover {
  transform: scale(1.2);
}

.panel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42px;
  background: rgba(20, 20, 30, 0.85);
  border-top: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow:
    0 -2px 12px rgba(212, 175, 55, 0.45),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.footer-icon {
  font-size: 20px;
  cursor: pointer;
  color: #ffd86b;
  text-shadow:
    0 0 8px rgba(255, 215, 100, 0.7),
    0 0 14px rgba(0, 200, 255, 0.6);
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 4px 8px;
}

.footer-icon:hover {
  transform: scale(1.25);
  color: #ffffff;
}

.icon-panel {
  background: rgba(10, 10, 15, 0.9);
  border: 2px solid #d4af37;
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    0 0 14px rgba(212, 175, 55, 0.55),
    0 0 26px rgba(0, 180, 255, 0.35);
  backdrop-filter: blur(6px);
}

/* Kétoszlopos megjelenítés az #iconPanel számára */
.icon-panel-wrapper {
  position: fixed;
  left: 20px;
  top: 120px;
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

#iconPanel {
  width: 160px;
  background: rgba(10, 10, 15, 0.9);
  border: 2px solid #d4af37;
  border-radius: 14px;
  padding: 8px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  box-shadow:
    0 0 14px rgba(212, 175, 55, 0.55),
    0 0 26px rgba(0, 180, 255, 0.35);
  backdrop-filter: blur(6px);
}

#iconPanel .icon-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  border-radius: 10px;
}

.clear-panels-button {
  width: 160px;
  display: block;
  background: rgba(212, 175, 55, 0.16);
  border: 2px solid #d4af37;
  color: #ffd86b;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.clear-panels-button:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.default-panels-button {
  width: 160px;
  display: block;
  background: rgba(212, 175, 55, 0.16);
  border: 2px solid #d4af37;
  color: #ffd86b;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.default-panels-button:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

/* Top horizontal icon panel styles */
.top-icon-panel, #topIconPanel {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  width: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  background: rgba(10,10,15,0.92);
  border: 2px solid #d4af37;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 9999;
  box-shadow:
    0 4px 18px rgba(0,0,0,0.6),
    0 0 12px rgba(0, 180, 255, 0.12);
}

.top-icon-panel .top-icon-logo, #topIconPanel .top-icon-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.top-icon-panel .top-icon-item, #topIconPanel .top-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.top-icon-panel .top-icon-item img, #topIconPanel .top-icon-item img {
  width: 40px;
  height: 40px;
}

.top-icon-panel .top-icon-item span, #topIconPanel .top-icon-item span {
  font-size: 12px;
  color: #ffd86b;
}

.top-icon-panel .top-icon-logo img, #topIconPanel .top-icon-logo img {
  height: 60px;
  max-height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 0;
  border-radius: 10px;
  transition: 0.2s;
}

.icon-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow:
    0 0 10px rgba(0, 200, 255, 0.7),
    0 0 18px rgba(212, 175, 55, 0.6);
}

.icon-item span {
  font-size: 12px;
  color: #ffd86b;
  text-align: center;
}

.icon-item:hover {
  background: rgba(40, 40, 60, 0.9);
  transform: translateX(2px);
}

.panel-header {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.panel-header * {
    pointer-events: auto;
}

.panel-drag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d4af37;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: grab;
    margin-left: 8px;
    box-shadow:
        0 0 10px rgba(212, 175, 55, 0.9),
        0 0 18px rgba(0, 200, 255, 0.7);
    transition: transform 0.2s ease;
}

.panel-drag:active {
    cursor: grabbing;
}

.panel-drag:hover {
    transform: scale(1.2);
}
