/* =========================================================================
   GYAKORLATOS E-TESZT MODERN KÁRTYA STÍLUS (Hover Emelkedéssel)
   ========================================================================= */

.etest-card-wrapper {
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    box-sizing: border-box;
    /* Finom átmenet az emelkedéshez, árnyékhoz és keretszínhez */
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* HOVER ÁLLAPOT: Kicsi emelkedés + kék árnyék és keret */
.etest-card-wrapper:hover {
    transform: translateY(-3px);
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

/* Fejléc sáv: Élénk kék háttérrel és sötétkék szöveggel */
.etest-card-header {
    background: #e0f2fe; /* Halvány szürke helyett élénk kék kiemelés */
    border-bottom: 1px solid #bae6fd;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.etest-header-icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.etest-header-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0369a1; /* Sötétebb kék betűszín a jó kontrasztért */
    margin: 0;
}

/* Kártya törzs és gomb konténer */
.etest-card-body {
    padding: 12px 16px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Interaktív Megnyitás gomb */
.etest-btn-action {
    width: 100%;
    background-color: #f1f5f9;
    color: #0284c7;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.etest-btn-action:hover {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.etest-btn-action:active {
    transform: translateY(1px);
}

.etest-btn-arrow {
    height: 14px;
    width: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.etest-btn-action:hover .etest-btn-arrow {
    transform: translateX(4px);
    filter: brightness(0) invert(1); /* Hoverre fehérre színezi a nyíl ikont */
}

/* =========================================================================
   LETÖLTÉSEK KÁRTYA STÍLUS (Resource Card / Modern Downloads)
   ========================================================================= */

.download-card-wrapper {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.download-card-wrapper:hover {
    transform: translateY(-3px);
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

/* Fejléc sáv */
.download-card-header {
    background: #e0f2fe;
    border-bottom: 1px solid #bae6fd;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-header-icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.download-header-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    margin: 0;
}

/* Kártya törzs és fájl sorok */
.download-card-body {
    background-color: #ffffff;
    padding: 4px 0;
}

.download-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
    #position: relative;
}

.download-file-row:last-child {
    border-bottom: none;
}

.download-file-row:hover {
    background-color: #f8fafc;
}

/* Fájl bal oldali része: Ikon és Hivatkozás */
.download-file-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0; /* Megakadályozza a hosszú szövegek túlfolyását */
    padding-right: 12px;
}

.download-file-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.download-file-link {
    color: #0284c7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease;
    word-break: break-word;
}

.download-file-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Fájl jobb oldali része: Meta adatok (Méret, Dátum) */
.download-file-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.download-file-size {
    font-weight: 600;
    color: #475569;
}

.download-file-date {
    color: #94a3b8;
}

/* Tooltip / Info popup stílus megtartása modernizálva */
.download-info-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: #334155;
}

/* Mobil nézet: A méret és a dátum elrejtése kis képernyőn (ahogy a régiben is volt) */
@media (max-width: 580px) {
    .download-file-meta {
        display: none !important;
    }
}

/* =========================================================================
   JS EGÉRKÖVETŐ TOOLTIP / POPUP STÍLUS
   ========================================================================= */

/* Maga a felbukkanó információs ablak */
.download-info-popup {
    display: none;
    position: absolute !important; /* Elengedhetetlen a JS koordinátákhoz! */
    z-index: 9999 !important;      /* Mindig minden elem felett legyen */
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    font-size: 11px;
    color: #334155;
    white-space: nowrap;
    pointer-events: none; /* Ne akadályozza az egérmozgást */
}

/* Borítókép formázása a popupon belül */
.download-info-popup img {
    margin-right: 8px;
    max-height: 50px;
    border-radius: 4px;
}

.enote-launch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 5px solid #0284c7;
    padding: 12px 16px;
    margin-top: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    gap: 15px;
}

.enote-launch-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.enote-launch-thumb {
    width: 80px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
}

.enote-launch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.enote-launch-info {
    display: flex;
    flex-direction: column;
}

.enote-launch-title {
    font-size: 14px;
    font-weight: bold;
    color: #0369a1;
}

.enote-launch-desc {
    font-size: 12px;
    color: #0c4a6e;
    margin-top: 2px;
}

.enote-launch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0284c7;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.enote-launch-btn:hover {
    background-color: #0369a1;
}

/* Reszponzív mobil nézet (<= 600px) */
@media (max-width: 600px) {
    .enote-launch-container {
        position: relative;
        overflow: hidden;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 16px;
        background-color: #ffffff;
        gap: 12px;
        border-left: none !important; /* Eltávolítjuk az eddigi csonka szegélyt */
    }

    /* Garantáltan végigfutó bal oldali kék csík */
    .enote-launch-container::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 5px;
        background-color: #0284c7;
        z-index: 3; /* A kép felett, a bal szélen szegélyként szalad le */
    }

    .enote-launch-main {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    /* A kép kifeszül a teljes dobozra (sarkoktól sarkokig) */
    .enote-launch-thumb {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        opacity: 0.20; /* Finom, halvány áttetszőség */
        filter: blur(1px);
        z-index: 1;
    }

    .enote-launch-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Szövegek a háttér felett */
    .enote-launch-info {
        position: relative;
        z-index: 2;
        margin-bottom: 12px;
    }

    .enote-launch-title {
        font-size: 15px;
        color: #0369a1;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    }

    .enote-launch-desc {
        font-size: 12px;
        color: #0f172a;
        font-weight: 500;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    }

    /* Gomb pontos igazítása a konténeren belül (túlcsordulás nélkül) */
    .enote-launch-btn {
        position: relative;
        z-index: 2;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    }
}

/* =========================================================================
   FULL-WIDTH FÉLÉVES ÖSSZESÍTŐ BANNER STÍLUSA
   ========================================================================= */

.enote-semester-banner {
    background-color: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.enote-semester-banner-header {
    background-color: #f0f9ff;
    border-bottom: 1px solid #bae6fd;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.enote-semester-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.enote-semester-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    display: flex;
    align-items: center;
}

.enote-semester-banner-side-desktop {
    font-size: 12px;
    color: #64748b;
    display: inline-block;
}

.enote-semester-banner-side-mobile {
    font-size: 11.5px;
    color: #64748b;
    display: none; /* Asztalin rejtve */
    margin-left: 26px; /* Ikon alatti igazítás */
}

.enote-semester-banner-body {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Százalékos doboz (Letisztult, felirat nélküli dizájn) */
.enote-semester-badge-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #10b981;
    border-radius: 8px;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.enote-semester-badge-val {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.enote-semester-progress-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.enote-semester-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #334155;
}

.enote-semester-bar-track {
    width: 100%;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.enote-semester-bar-fill {
    height: 100%;
    transition: width 0.4s ease-in-out;
}

.enote-semester-bar-threshold {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #0f172a;
    opacity: 0.7;
    z-index: 2;
}

/* RESZPONZÍV MOBIL TÖRÉSPONT (MOBIL <= 600px) */
@media (max-width: 600px) {
    .enote-semester-banner-side-desktop {
        display: none !important; /* Jobb oldali szöveg elrejtése mobilon */
    }

    .enote-semester-banner-side-mobile {
        display: block !important; /* Cím alatti követelmény megjelenítése */
    }

    .enote-semester-banner-body {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }

    .enote-semester-badge-box {
        width: 100%;
        height: 42px;
        justify-content: center;
    }

    .enote-semester-badge-val {
        font-size: 22px;
    }

    .enote-semester-info-row {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }
}