/* =====================================================
   ALAP
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    background: #f4f4f4;
    color: #222;
}


/* =====================================================
   FEJLÉC
===================================================== */

header {
    background: #315f8c;
    color: white;
    padding: 25px;
    text-align: center;
}

header h1 {
    margin: 0 0 20px 0;
    font-size: 30px;
}


/* =====================================================
   MENÜ
===================================================== */

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

nav a:hover {
    text-decoration: underline;
}


/* =====================================================
   SZEKCIÓK
===================================================== */

.section-box {
    background: white;
    padding: 25px;
    margin: 25px auto;
    max-width: 1100px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.section-box h2 {
    margin-top: 0;
}


/* =====================================================
   FŐCÍMEK
===================================================== */

.pdf-category {
    margin-top: 35px;
}

.pdf-category h2 {
    border-bottom: 2px solid #315f8c;
    padding-bottom: 8px;
}


/* =====================================================
   PDF SOR
===================================================== */

.pdf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 15px;
    margin: 10px 0;

    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.pdf-name {
    flex: 1;
}

.pdf-name a {
    color: #315f8c;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
}

.pdf-name a:hover {
    text-decoration: underline;
}


/* =====================================================
   LIKE / DISLIKE
===================================================== */

.pdf-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.reaction-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

.reaction-button:hover {
    transform: scale(1.15);
}

.reaction-button:disabled {
    cursor: default;
    opacity: 0.6;
}

.reaction-button.selected {
    transform: scale(1.2);
}

.reaction-count {
    min-width: 20px;
    margin-right: 8px;
    font-size: 15px;
}


/* =====================================================
   HIBÁS A FELADAT GOMB
===================================================== */

.report-button {
    border: none;
    background: #b00020;
    color: white;

    padding: 8px 12px;

    border-radius: 5px;

    cursor: pointer;

    font-family: inherit;
    font-weight: bold;
}

.report-button:hover {
    opacity: 0.85;
}

.report-button:disabled {
    cursor: default;
}

.report-button.reported {
    background: #4b7d4b;
}


/* =====================================================
   ÜRES FŐCÍM
===================================================== */

.empty-category {
    color: #777;
    font-style: italic;
}


/* =====================================================
   HIBA
===================================================== */

.error-message {
    color: #b00020;
    font-weight: bold;
}


/* =====================================================
   LÁBLÉC
===================================================== */

footer {
    text-align: center;
    padding: 25px;
    color: #666;
}


/* =====================================================
   TELEFON
===================================================== */

@media (max-width: 700px) {

    header h1 {
        font-size: 23px;
    }

    nav {
        gap: 15px;
    }

    .pdf-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdf-actions {
        width: 100%;
    }

}