/* ==========================================================================
   1. FONTS (OPEN SANS) REGISTRATION - FULL FAMILY
   ========================================================================== */

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* ==========================================================================
   2. GLOBAL SETTINGS & COLOR PALETTE
   ========================================================================== */

:root {
    --header-footer-bg: #144c18; /* Dark Green */
    --highlight-green: #5ca846;  /* Vibrant Green accent */
    --text-color: #333;
    --link-color: #000;          /* Default links are black */
    --main-bg: #fff;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background-color: var(--main-bg);
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   3. LAYOUT STRUCTURE
   ========================================================================== */

.content-wrapper {
    flex-grow: 1;
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

#top-header, #main-footer {
    background-color: var(--header-footer-bg);
    color: white;
    padding: 15px 0;
    font-size: 12px;
    flex-shrink: 0;
}

#top-header p, #main-footer p {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Link Fix - No underline */
#main-footer a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

#main-footer a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.main-title-bar {
    background-color: var(--highlight-green);
    color: white;
    padding: 8px 0;
    flex-shrink: 0;
}

.main-title-bar h1 {
    font-size: 18px;
    font-weight: normal;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebars & Content */
.sidebar-left {
    flex: 0 0 15%;
    min-width: 160px;
    padding-right: 15px;
    border-right: 1px solid #ccc;
    font-size: 13px;
}

.main-content {
    flex: 1;
    padding: 0 20px;
}

.sidebar-right {
    flex: 0 0 200px;
    padding-left: 15px;
    border-left: 1px solid #eee;
}

/* ==========================================================================
   4. PUBLICATION LISTS & TABLES
   ========================================================================== */

.publication-container {
    padding: 20px 0;
}

.publication-volume {
    margin: 20px 0 40px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.volume-header-box {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 3px solid var(--highlight-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.volume-header-box h2 {
    margin: 0;
    color: var(--header-footer-bg);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.article-table th {
    background-color: #f4f4f4;
    color: var(--header-footer-bg);
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid var(--highlight-green);
}

.article-table td {
    padding: 20px; 
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    vertical-align: top;
}

.article-table tbody tr:hover td {
    background-color: #f1f8f0; 
}

.article-table tbody tr:hover .title-col a {
    color: var(--highlight-green); 
}

.auth-col {
    width: 30%;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

.title-col {
    width: 70%;
}

.title-col a {
    color: #000; 
    text-decoration: none;
    display: block; 
    font-size: 15px;
    line-height: 1.5;
}

/* ==========================================================================
   5. ARCHIVE GRID (PROCEEDINGS LIST)
   ========================================================================== */

.proceedings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding-bottom: 50px;
}

.year-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border-bottom: 4px solid #ddd;
}

.year-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-bottom-color: var(--highlight-green);
}

.year-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--header-footer-bg);
    margin-bottom: 5px;
}

.year-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.year-status {
    font-size: 11px;
    color: var(--highlight-green);
    background: #f0f9ed;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    margin: 10px 0 15px 0;
    font-weight: bold;
}

.year-link {
    display: block;
    color: var(--header-footer-bg);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* ==========================================================================
   6. ARTICLE DETAIL VIEW (ABSTRACT PAGE)
   ========================================================================== */

.article-page .article-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--header-footer-bg);
    margin-bottom: 20px;
    line-height: 1.25;
}

.article-meta-card {
    background-color: #f8fbf8;
    border-left: 4px solid var(--highlight-green);
    padding: 20px;
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--highlight-green);
    text-decoration: none;
}

.abstract-content h3 {
    font-size: 18px;
    color: var(--header-footer-bg);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Justified Abstract Text */
.abstract-text {
    text-align: justify;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    hyphens: auto;
}

/* Keywords Display */
.keywords-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
    border-left: 3px solid #eee;
}

.keywords-box strong {
    color: var(--header-footer-bg);
    text-transform: uppercase;
    font-size: 11px;
    margin-right: 5px;
}

.keywords-list {
    font-style: italic;
    color: #555;
}

.author-names {
    color: #444;
    font-weight: 600;
}

.download-btn-container {
    text-align: center;
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.access-note {
    font-size: 11px;
    color: #777;
    margin-top: 15px;
}

.navigation-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.back-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--highlight-green);
    text-decoration: none;
}

/* ==========================================================================
   7. BUTTONS & UI ELEMENTS
   ========================================================================== */

.isbn-badge {
    display: inline-block;
    background: #e8f4e5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--header-footer-bg);
    border: 1px solid var(--highlight-green);
}

.pdf-dl-btn, .pdf-action-btn {
    background-color: var(--header-footer-bg);
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    display: inline-block;
    transition: all 0.2s;
}

.pdf-action-btn i {
    margin-right: 8px;
}

.pdf-dl-btn:hover, .pdf-action-btn:hover {
    background-color: var(--highlight-green);
    transform: translateY(-1px);
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar-left, .sidebar-right {
        flex: none;
        width: 100%;
        border: none;
        padding: 15px 0;
    }
    .proceedings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .proceedings-grid {
        grid-template-columns: 1fr;
    }
    .article-table th:nth-child(1), .article-table td:nth-child(1) {
        display: none;
    }
}
/* Pontozott lista stílusa */
.dotted-list {
    list-style: none;
    padding: 0;
}

.dotted-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.dotted-list .dots {
    flex: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 10px;
}
.conference-title {
    color: var(--header-footer-bg);
    border-bottom: 2px solid var(--highlight-green);
    padding-bottom: 10px;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap; /* Mobilnézetben egymás alá ugranak */
    gap: 20px;
}

.topics-grid ul {
    flex: 1;
    min-width: 250px;
    margin-top: 0;
}

.info-card {
    background: #f4f4f4;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid var(--highlight-green);
}

.info-card h4 {
    margin-top: 0;
    color: var(--header-footer-bg);
}
/* Participation badges */
.participation-mode {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.participation-mode.personal { background: #d4edda; color: #155724; }
.participation-mode.online { background: #fff3cd; color: #856404; }

/* Admin table adjustments */
.article-table td i {
    width: 14px;
    color: #888;
}

/* Print view optimization */
@media print {
    #top-header, #main-footer, .sidebar-left, .sidebar-right, .breadcrumb, .admin-actions {
        display: none !important;
    }
    .content-wrapper, .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    .article-table {
        font-size: 10px;
    }
    .article-table td, .article-table th {
        padding: 8px !important;
    }
}

.paper-id-tag {
    background: #f0f0f0;
    color: #444;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: monospace;
    font-weight: bold;
    cursor: help; /* Kérdőjeles kurzor, jelezve a plusz infót */
}

.paper-id-tag:hover {
    background: var(--highlight-green);
    color: white;
    border-color: var(--header-footer-bg);
}

.author-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Három oszlop: Szerepkör, Étkezés, Mód */
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 10px;
}
.option-group { display: flex; flex-direction: column; gap: 5px; }
.option-group-title { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: #6c757d; 
    font-weight: bold; 
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}
.option-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.option-item input { width: auto; margin: 0; }
.option-info { font-size: 0.7rem; color: #888; font-style: italic; line-height: 1.1; margin-bottom: 5px; }

/* ==========================================================================
   9. HOME PAGE SPECIFIC STYLES (NEW)
   ========================================================================== */

.home-container {
    padding: 20px 0;
}

.conference-date {
    font-size: 16px;
    color: #555;
    margin-top: -5px;
    margin-bottom: 25px;
}

.intro-section {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-color);
}

.topics-section {
    margin: 40px 0;
}

.topics-section h3 {
    font-size: 18px;
    color: var(--header-footer-bg);
    border-bottom: 2px solid var(--highlight-green);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Kiemelt információ (Erasmus+) */
.highlight-info {
    background-color: #e8f4e5; /* Nagyon halvány zöld */
    border-left: 5px solid var(--highlight-green);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--header-footer-bg);
    line-height: 1.6;
}

.info-blocks {
    margin-bottom: 40px;
}

/* Deadlines szekció címe */
.deadlines-section {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.deadlines-section h4 {
    color: var(--header-footer-bg);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}

/* További finomítás a listákhoz a Home oldalon */
.topics-grid ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    list-style: none;
}

.topics-grid ul li::before {
    content: "•";
    color: var(--highlight-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}