﻿/* =========================================
   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);
}

/* =========================================
   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);
}
.node-type-paper.node-view-mode-full .node-taxonomy-container .taxonomy-term:nth-child(2n) {
  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:nth-child(2n+1) {
  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:nth-child(2n) {
    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:nth-child(2n+1) {
    border-right: 2px solid var(--primary);
    margin-right: 50%;
    border-radius: 0;
  }
}

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

/* =========================================
   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);
}

/* 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;
}
