/* --- 1. Alapbeállítások --- */
:root {
    --ocean-top: #003049;  
    --ocean-bot: #001219;  
    --white-bg: #ffffff;
    
    /* SZÍNKÓDOK */
    --electric: #4CC9F0;      /* Informatikai jog */
    --balloon-red: #EE0000;   /* Orvosi jog (Vöröskereszt piros) */
    --honey-yellow: #FFD700;  /* Legal Tech (Arany/Méz sárga) */
    --neon-green: #39FF14;    /* Jogi innováció (Neon zöld) */
    
    --transition-speed: 0.3s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white-bg);
    color: var(--ocean-top);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
}

/* --- 2. Hero Szekció --- */
.sub-hero {
    min-height: 200px;
    height: auto;
    width: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to right, var(--ocean-bot), var(--ocean-top));
    background-size: 30px 30px, 30px 30px, 100% 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.hero-cta-button {
    display: block;
    width: 100%; 
    margin-top: 15px; 
    background: white;
    color: var(--ocean-top);
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-cta-button:hover {
    background: var(--ocean-top);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
}

.page-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.title-tag-extension {
    color: var(--electric);
    font-weight: 300;
}

/* Vissza gomb */
.back-home-btn {
    position: absolute;
    bottom: 15px;
    left: 10%;
    text-decoration: none;
    color: var(--electric);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.back-home-btn:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(76, 201, 240, 0.6);
    transform: translateX(3px);
}

.profile-container-top { display: flex; align-items: center; gap: 20px; }

.hero-text { 
    color: white; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    text-align: right; 
}

.hero-name { font-size: 2rem; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.hero-title { font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; }

.profile-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(0, 48, 73, 0.1);
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.profile-img-placeholder { width: 100%; height: 100%; object-fit: cover; background: #e0e0e0; }

/* --- 3. Szűrő Sáv --- */
.filter-bar {
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto 1rem auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--ocean-top);
    color: var(--ocean-top);
    padding: 8px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--ocean-top);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- 4. Publikációk Lista --- */
.publications-container {
    width: 100%; max-width: 1000px;
    margin: 0 auto; padding: 2rem 1.5rem 4rem 1.5rem;
    display: flex; flex-direction: column;
    gap: 2rem;
}

.pub-card {
    display: flex;
    background: white;
    border: 1px solid rgba(0, 48, 73, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--ocean-top);
}

/* Bal oldali színes csík */
.pub-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 6px; 
    background-color: var(--ocean-top);
}

.pub-card.cat-orvosi::before { background-color: var(--balloon-red); }
.pub-card.cat-it-jog::before { background-color: var(--electric); }
.pub-card.cat-legal-tech::before { background-color: var(--honey-yellow); }
.pub-card.cat-innovacio::before { background-color: var(--neon-green); }

.pub-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    gap: 0.8rem;
}

/* --- FEJLÉC --- */
.pub-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap; 
}

.pub-tag {
    font-weight: 700;
    color: var(--ocean-top);
}

.pub-genre {
    font-weight: 500;
    color: #666; 
    background-color: transparent;
    padding: 0;
    font-style: italic; 
}

/* Cím */
.pub-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ocean-top);
    margin-bottom: 5px;
}

/* Szövegtörzs */
.pub-text-body {
    font-size: 0.95rem;
    font-weight: 300;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pub-question-text {
    display: block;
    margin-bottom: 0.5rem;
}

/* --- LÁBLÉC --- */
.pub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-source {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.pub-source a {
    color: var(--electric);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.pub-source a:hover {
    color: var(--ocean-top);
    text-decoration: underline;
}

.read-btn {
    background-color: var(--ocean-top);
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 2px;
}

.read-btn:hover {
    background-color: var(--electric);
    color: var(--ocean-top);
}

/* --- 5. PDF MODAL --- */
.pdf-modal {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 18, 25, 0.98); 
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal.active { display: flex; opacity: 1; }

.modal-content {
    width: 100%;
    height: 100%; 
    max-width: 100%; 
    background: transparent; 
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    background-color: var(--ocean-top);
    border: 1px solid var(--electric);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    z-index: 10001; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.close-modal-btn:hover { 
    background-color: var(--electric);
    color: var(--ocean-top);
}

.pdf-frame {
    width: 100%; height: 100%; border: none; background-color: #f0f0f0; 
}



/* --- Mobil Nézet --- */
@media (max-width: 1100px) {
    .sub-hero { 
        padding: 2rem; 
        padding-bottom: 3.5rem; 
        height: auto; 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
    }
    .profile-container-top { flex-direction: column-reverse; }
    .hero-text { align-items: center; text-align: center; width: 100%; }
    
    .back-home-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
        width: 100%;
        text-align: center;
    }

    .back-home-btn:hover {
        transform: translateX(-50%) translateY(-2px); 
    }

    .pub-card { flex-direction: column; }
    .pub-card::before { width: 100%; height: 5px; top: 0; bottom: auto; }
    .pub-content { padding-top: 1.5rem; }
    
    .close-modal-btn {
        top: 10px; right: 10px; padding: 5px 10px; font-size: 0.8rem;
    }
}