html, body { 
    margin: 0; padding: 0; overflow-x: hidden; }
* { 
    box-sizing: border-box; }

/* ===== Alap ===== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #fff;
}
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 10vw 10px 10vw;
    border-bottom: 1px solid #ddd;
}
.header-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: 2px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}
.header-link {
    text-decoration: none;
    color: inherit;
}
.container {
    display: flex;
    max-width: 1400px;
    margin: 32px auto 0 auto;
    gap: 40px;
    min-height: 700px;
    width: 100%;
    padding: 0 1vw;
}
aside {
    width: 240px;
    min-width: 180px;
    font-size: 15px;
    border-right: 1px solid #ddd;
    padding-top: 20px;
    flex-shrink: 0;
    background: #fff;
}
aside h3 {
    margin: 22px 0 10px 0;
    font-size: 13px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.menu-group { 
    margin-bottom: 16px; }
.collapsible {
    display: block;
    border: none;
    background: none;
    padding: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    outline: none;
    transition: background 0.2s;
    margin-bottom: 5px;
}
aside .collapsible {
    word-break: break-word;
    white-space: pre-line;
    text-align: left;
}
.menu-group .submenu {
    display: none;
    margin-left: 24px;
    margin-top: 4px;
}
.menu-group.active .submenu {
    display: block;
    animation: fadein 0.3s;
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.submenu a {
    display: block;
    color: #222;
    text-decoration: none;
    padding: 5px 0 5px 8px;
    font-size: 14px;
    margin-bottom: 3px;
    border-radius: 3px;
    transition: background 0.2s;
}
.submenu a:hover { 
    background: #f1f1f1; }
.menu-link {
    color: #111;
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin: 7px 0 7px 0;
}
main {
    flex: 1 1 auto;
    padding: 40px 20px 20px 20px;
    min-width: 0;
}
.desc {
    font-size: 15px;
    margin-bottom: 36px;
    line-height: 1.5;
    color: #444;
}
.labortartalom        { display: none; }
.labortartalom.active { display: block; }

/* ===== Kártyák ===== */
.products-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.product { width: 220px; }

.product-img,
.product-code {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.product-img.lock{
    background: #fff url("assets/lock.svg") center / 56px 56px no-repeat;
    display: grid;
    place-items: center;
    height: 180px;
    min-height: 180px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}

/* .img1 { background: #222; }
.img2 { background: #636d56; }
.img3 { background: #b1aea9; }
.img4 { background: #e2ded9; } */
.product-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 2px;
    color: #222;
}

.product-code {
  background: #1E1E1E;
  color: #eaeaea;
  padding: 6px;
  font-family: "Fira Mono","Consolas","Menlo",monospace;
  font-size: 15px;
  box-shadow: 0 2px 10px #0001;

  height: 180px;
  border-radius: 12px;
  margin-bottom: 10px;

  white-space: pre-line;
  word-break: normal;
  overflow-wrap: normal;
  overflow: hidden;

  line-height: 1.35;
  tab-size: 4;
  font-variant-ligatures: none;
}

.product-code code {
  color: #ffce55;
  background: none;
  font-size: 7.5px;
  font-family: inherit;
  border: 0;
  padding: 0;
  letter-spacing: 0;
}

/* ===== Szintaxiskiemelés (C, C++ VS dark) ===== */
.fv         { color:#DCDCAA; }
.fvarg,.sz  { color:#B4B4B4; }
.vkek       { color:#9CDCFE; }
.skek       { color:#569CD6; }
.purp       { color:#D8A0DF; }
.makr       { color:#BEB7FF; }
.str        { color:#D69D85; }
.func       { color:#9A9A9A; }
.stream     { color:#C8C8C8; }
.hegyes,
.vn         { color:#E8C9BB; }
.vzold      { color:#B5CEA8; }
.szold      { color:#4EC9B0; }
.kom        { color:#57A64A; }
.f          { color:#ffffff; }

.p          { color:crimson; } /* piros külön */

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tantragy-osszefoglalo .desc { 
    margin: 0 0 4px; font-weight: 600; }
.tantragy-osszefoglalo ul    { 
    margin: 0; padding-left: 1.1em; }
.tantragy-osszefoglalo li    { 
    margin: 0; line-height: 1.2; }

.kicsi {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet méret */
@media (max-width: 1200px) {
    .container {
        gap: 20px;
        padding: 0 2vw;
    }
    aside {
        width: 200px;
        min-width: 200px;
    }
    main {
        padding: 20px 15px;
    }
}

/* Kisebb tablet/nagy telefon */
@media (max-width: 900px) {
    .container {
        flex-direction: row; /* Megmarad a vízszintes elrendezés */
        gap: 15px;
        padding: 0 10px;
    }
    
    /* Bal oldali navigáció keskeny marad */
    aside {
        width: 140px;
        min-width: 140px;
        border-right: 1px solid #ddd;
        padding: 15px 8px;
        font-size: 12px;
    }
    
    /* Címek többsoros tördelése mobilon */
    .collapsible {
        font-size: 10px;
        line-height: 1.2;
        word-break: break-word;
        white-space: normal;
        text-align: left;
        padding: 4px 2px;
        margin-bottom: 6px;
    }
    
    aside h3 {
        font-size: 10px;
        margin: 12px 0 6px 0;
    }
    
    .submenu {
        margin-left: 10px;
    }
    
    .submenu a {
        font-size: 9px;
        padding: 3px 0 3px 4px;
        line-height: 1.2;
    }
    
    /* Fő tartalom a jobb oldalon */
    main {
        flex: 1;
        padding: 15px 10px;
        min-width: 0;
    }
    
    .desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Kártyák eredeti elrendezésben maradnak */
    .products-row {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .product {
        width: 180px; /* Kicsit kisebb a mobilon */
    }
    
    .product-img,
    .product-code {
        height: 150px; /* Kicsit alacsonyabb */
    }
    
    .product-code code {
        font-size: 6px;
    }
}

/* Kisebb telefonok */
@media (max-width: 600px) {
    header {
        padding: 15px 5vw 8px 5vw;
    }
    
    .header-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        letter-spacing: 1px;
    }
    
    aside {
        padding: 12px 15px;
    }
    
    /* Még kisebb betűméret a címekhez */
    .collapsible {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    aside h3 {
        font-size: 11px;
        margin: 12px 0 6px 0;
    }
    
    .submenu a {
        font-size: 12px;
    }
    
    main {
        padding: 15px 10px;
    }
    
    /* Kártyák kis telefonokon is megtartják az eredeti méretet */
    .product {
        width: 220px;
        max-width: calc(100vw - 20px);
    }
}

/* Nagyon kis telefonok (iPhone SE és hasonlók) */
@media (max-width: 400px) {
    .header-title {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    aside {
        padding: 10px 12px;
    }
    
    .collapsible {
        font-size: 11px;
    }
    
    aside h3 {
        font-size: 10px;
    }
    
    .submenu a {
        font-size: 11px;
    }
    
    main {
        padding: 12px 8px;
    }
    
    /* Még mindig eredeti méret, csak a maximum szélesség csökken */
    .product {
        max-width: calc(100vw - 16px);
    }
}
/* ===== OOP INFO KERETEZÉS ===== */

/* Fő keretek */
.info-main-frame, 
.zh-main-frame {
    border: 3px solid #2c3e50;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.zh-main-frame {
    border-color: #e74c3c;
}

/* Főcímek a keretekben */
.frame-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.zh-title {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* Belső szakaszok keretei */
.info-section,
.zh-section {
    border: 2px solid #34495e;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    background-color: #f8f9fa;
}

.zh-section {
    border-color: #c0392b;
    background-color: #fdf2f2;
}

/* Szakasz címek */
.section-header,
.zh-section-header {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.05em;
    margin-bottom: 10px;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 5px;
}

.zh-section-header {
    color: #c0392b;
    border-bottom-color: #e74c3c;
}

/* Szakasz tartalmak */
.section-content,
.zh-section-content {
    line-height: 1.5;
    color: #333;
}

/* Főtémák lista */
.topic-list {
    margin: 8px 0;
    padding-left: 20px;
}

.topic-list li {
    margin: 6px 0;
    line-height: 1.4;
}

/* ZH elemek */
.zh-item {
    margin: 8px 0;
    line-height: 1.4;
    padding: 5px 0;
}

/* Kiemelések */
.zh-highlight {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
}

/* Responsive kiegészítések */
@media (max-width: 900px) {
    .info-main-frame, 
    .zh-main-frame {
        padding: 15px;
        margin: 20px 0;
    }
    
    .frame-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .info-section,
    .zh-section {
        padding: 12px;
        margin: 12px 0;
    }
    
    .section-header,
    .zh-section-header {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .info-main-frame, 
    .zh-main-frame {
        padding: 12px;
        margin: 15px 0;
        border-width: 2px;
    }
    
    .frame-title {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .info-section,
    .zh-section {
        padding: 10px;
        margin: 10px 0;
        border-width: 1px;
    }
    
    .section-header,
    .zh-section-header {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    
    .zh-highlight {
        padding: 10px;
        margin: 12px 0;
    }
}
/* ===== ANALÍZIS SPECIFIKUS STÍLUSOK ===== */

/* Analízis fő keretek - lila/kék árnyalatok */
.anal-frame {
    border-color: #8e44ad;
}

.anal-zh-frame {
    border-color: #2980b9;
}

/* Analízis címek */
.anal-title {
    color: #8e44ad;
    border-bottom-color: #9b59b6;
}

.anal-zh-title {
    color: #2980b9;
    border-bottom-color: #3498db;
}

/* Analízis belső szakaszok */
.anal-section {
    border-color: #7d3c98;
    background-color: #f4f2f7;
}

.anal-zh-section {
    border-color: #2471a3;
    background-color: #eaf2f8;
}

/* Analízis szakasz címek */
.anal-header {
    color: #8e44ad;
    border-bottom-color: #af7ac5;
}

.anal-zh-header {
    color: #2980b9;
    border-bottom-color: #5dade2;
}

/* Vizsgaspecifikus stílusok */
.exam-topic {
    font-style: italic;
    color: #555;
    margin-top: 5px;
    padding-left: 15px;
    border-left: 3px solid #85c1e9;
}

.exam-grading {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.grade-formula {
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 10px;
    padding: 12px;
    background-color: #eaf2f8;
    border-radius: 4px;
    font-family: 'Times New Roman', serif;
}

.grade-formula .fraction {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}

.grade-formula .numerator {
    display: block;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.grade-formula .denominator {
    display: block;
    padding-top: 2px;
}

.grade-explanation {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.grade-table {
    margin: 10px 0;
}

.grade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    margin: 2px 0;
    background-color: #ffffff;
    border-radius: 3px;
    border-left: 3px solid #3498db;
}

.grade-range {
    font-family: monospace;
    font-weight: bold;
    color: #2c3e50;
    min-width: 140px;
}

.grade-word {
    color: #7f8c8d;
    font-size: 0.9em;
}

.grade-result {
    font-weight: bold;
    color: #27ae60;
}

.grade-note {
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Responsive kiegészítések az analízishez */
@media (max-width: 900px) {
    .grade-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
    }
    
    .grade-range {
        min-width: auto;
        margin-bottom: 2px;
    }
    
    .grade-formula {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .exam-topic {
        padding-left: 10px;
        font-size: 0.9em;
    }
    
    .exam-grading {
        padding: 12px;
    }
    
    .grade-formula {
        font-size: 0.9em;
        padding: 6px;
    }
    
    .grade-row {
        padding: 6px;
    }
    
    .grade-range {
        font-size: 0.85em;
    }
}

/* ===== FELADAT ELŐNÉZETEK ===== */

/* PDF típusú feladatok előnézete */
.product-tasks-preview {
    background: #f8f9fa;
    color: #333;
    padding: 12px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #e6e6e6;
}

.task-item {
    margin-bottom: 2px;
    font-size: 8px;
    line-height: 1.1;
    flex-shrink: 0;
}

.task-title {
    background: #333;
    color: white;
    padding: 3px 6px;
    margin: 0;
    font-size: 7px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-dots {
    background: white;
    color: #333;
    padding: 2px 6px;
    font-size: 6px;
    border-bottom: 1px solid #eee;
    white-space: normal;
    word-wrap: break-word;
    max-height: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Típus ikon */
.type-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

/* Hover effektek javítása */
.product-link:hover {
    transform: translateY(-2px);
}

/* Responsive kiegészítések */
@media (max-width: 900px) {
    .product-tasks-preview {
        padding: 16px;
        height: 160px;
    }
    
    .task-item {
        padding: 6px 10px;
        margin-bottom: 6px;
        font-size: 11px;
    }
    
    .task-title {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .product-tasks-preview {
        padding: 14px;
        height: 150px;
    }
    
    .task-item {
        padding: 5px 8px;
        margin-bottom: 5px;
        font-size: 10px;
    }
    
    .task-title {
        font-size: 9px;
    }
    
    .type-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}