﻿/* =========================================
   Nodes — EME Könyvkiadó
   ========================================= */

/* Base node */
.node,
.node-promoted,
.node-sticky,
.node-view-mode-full,
.node-unpublished {
  position: relative;
}

/* =========================================
   Teaser mode (listing view)
   ========================================= */
.node-view-mode-teaser {
  position: relative;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}
.node-view-mode-teaser:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.node-view-mode-teaser .node-title {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.node-view-mode-teaser .node-title a {
  color: var(--color-heading);
  transition: color 0.15s;
}
.node-view-mode-teaser .node-title a:hover {
  color: var(--primary);
}
.node-view-mode-teaser .node-content {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.65;
}
.node-view-mode-teaser.node-sticky {
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--secondary);
  background-color: var(--lighter);
}

.field--name-field-gallery .field__items {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-items: center;
  text-align: center;
}
.field--name-field-gallery .field-item {
  flex: 1 1 45%;
}

/* =========================================
   Full node view
   ========================================= */
.node-view-mode-full .node-taxonomy-container {
  margin: 0 0 1rem 0;
}

/* =========================================
   Book / Kiadvány type
   ========================================= */
.node-type-kiadvany {
  position: relative;
}

/* Full book page */
.node-type-kiadvany.node-view-mode-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .node-type-kiadvany.node-view-mode-full {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
  }
}
.node-type-kiadvany.node-view-mode-full .field--name-field-borito {
  max-width: 260px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.node-type-kiadvany.node-view-mode-full .field--name-field-borito img {
  display: block;
  width: 100%;
  height: auto;
}

/* Taxonomy pairings for paper/article type */
.node-type-paper.node-view-mode-full .node-taxonomy-container {
  display: block;
}
.node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term {
  padding: 16px;
  display: block;
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}
.node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-author) {
  border-left: 2px solid var(--secondary);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-reviewer),
.node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-administrator),
.node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-content_editor) {
  border-right: 2px solid var(--primary);
  text-align: right;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@media (min-width: 960px) {
  .node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term {
    border-bottom: none;
    background-color: rgba(0,0,0,0.04);
  }
  .node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-author) {
    border-left: 2px solid var(--secondary);
    margin-left: calc(50% - 1px);
    border-radius: 0;
    background-color: rgba(125, 103, 58, 0.07);
  }
  .node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-reviewer),
  .node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-administrator),
  .node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:has(.role-content_editor) {
    border-right: 2px solid var(--primary);
    margin-right: 50%;
    border-radius: 0;
  }
}

/* Add/edit pages */
.node-paper-form .vertical-tabs__panes {
  display: none;
}

/* =========================================
   Taxonomy description collapse/expand
   ========================================= */
.field--name-description.description-collapsed {
  position: relative;
  height: 4em;
  overflow: hidden;
  transition: height 0.4s ease;
}

.description-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.description-collapsed .description-fade {
  opacity: 1;
}

.description-toggle {
  display: inline-block;
  cursor: pointer;
  user-select: none;
  margin-left: 100%;
  transform: translateX(-100%);
  white-space: nowrap;
  color: var(--primary);
}

/* =========================================
   Node header (author, date)
   ========================================= */
.node-header.clear {
  margin-bottom: 1rem;
}
.node-submitted-details {
  font-size: 0.78rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.author-picture img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* =========================================
   Node content body
   ========================================= */
.node-content {
  line-height: 1.75;
}
.node-content img {
  border-radius: var(--radius-sm);
}

/* Hirek list */

.hirek .views-row {
  margin: 2em 0;
  clear: both;
}
.hirek .views-field-field-image {
  margin-bottom: 1em;
}
.hirek .views-field-view-node {
  margin-top: 1em;
}
@media (min-width: 768px) {
 
   .hirek .views-field-field-image {
    float: right;
    width: 33%;
    margin-left: 1em;
    aspect-ratio: 4/2.33;
  }
}

/* Search node */
.quicksearch {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quicksearch .views-row {
  box-shadow: 1px 1px 10px #eee;
  padding: 1em;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
.quicksearch .views-field-search-api-url {
  align-self: flex-end;
  margin-top: auto;
}
/* */
#block-emekiado-contentform {
  display: none;
}
.entity-moderation-form .form-item {
  font-size: 0.9em;  
}
.entity-moderation-form .form-item label {
  font-size: 0.9em;
  font-weight: bold;
}
.entity-moderation-form input[type="submit"] {
  font-size: 0.8em;
  padding: 0.5em 1em;
}
