﻿/* ==========================================================================
   Museum Stylesheet: Magyar Mozgóposta Katalógus (mozgo)
   Contains site-specific color palette and live site museum styling.
   Common layout and components are also supported via css/site_core.css.
   ========================================================================== */

:root {
  --theme-primary: #996515;
  --theme-primary-dark: #2c241d;
  --theme-primary-light: rgba(153, 101, 21, 0.12);
  --theme-border: rgba(41, 38, 23, 0.18);
  --theme-border-subtle: rgba(41, 38, 23, 0.08);
  --theme-text-body: #2c241d;
  --theme-text-muted: #7a6652;
  --theme-panel-bg: #faf6f0;
  --theme-panel-bg-subtle: #f4eee5;
  --theme-panel-gradient: linear-gradient(180deg, #ffffff 0%, #faf6f0 100%);
  --theme-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 246, 240, 0.92) 100%);
  --theme-accent-gradient: linear-gradient(90deg, transparent 0%, #996515 50%, transparent 100%);
  --theme-card-shadow: 0 4px 14px rgba(41, 38, 23, 0.04);
  --theme-card-shadow-hover: 0 8px 20px rgba(41, 38, 23, 0.10);
  --nav-bg: #f0dfb8;
  --nav-bg-strong: #d8b875;
  --nav-text: #2f2318;
  --nav-panel-bg: linear-gradient(180deg, #f9f4ec 0%, #f1e7d8 100%);
  --nav-hover-bg: rgba(116, 89, 55, 0.08);
  --nav-active-bg: rgba(116, 89, 55, 0.18);
  --nav-parent-active-bg: rgba(116, 89, 55, 0.12);
  --nav-sub-bg: rgba(41, 38, 23, 0.03);
  --page-bg: #f3efe7;
  --page-shell-bg: #fffdf9;
  --content-text: var(--theme-text-body);
  --link: #8e6741;
  --link-hover: #2a1f17;
  --border-soft: rgba(41, 38, 23, 0.18);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
}

@font-face {
  font-family: MainTitle;
  src: url('../fonts/PlayfairDisplay-Bold.ttf');
}

@font-face {
  font-family: 'stamp_symbolsregular';
  src: url('../fonts/stampsymbols-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background: var(--page-bg);
  color: var(--theme-text-body);
}

#container {
  margin: 14px auto 20px auto;
  background: var(--page-shell-bg);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   Top Menu & SmartMenus Layout
   ------------------------------------------------------------------------- */
#layoutMenu {
  background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
  border-bottom: 1px solid rgba(41, 38, 23, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (min-width: 769px) {
  #layoutMenu {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }
}

@media (max-width: 768px) {
  #layoutMenu {
    position: relative;
    height: auto !important;
    min-height: 42px !important;
    z-index: 1000;
  }
}

/* -------------------------------------------------------------------------
   Mozgóposta Dual Header Background
   ------------------------------------------------------------------------- */
#layoutHeader {
    height: 116px !important;
    background-position: left top, right top !important;
    background-size: auto 116px, auto 116px !important;
  }

.maintitle {
  position: absolute;
  bottom: 1px;
  right: 10px;
  width: auto;
  max-width: 90vw;
  padding-left: 0;
  box-sizing: border-box;
  font-family: 'MainTitle';
  font-size: clamp(21px, 3vw, 45px);
  color: #333;
  opacity: 1;
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* -------------------------------------------------------------------------
   Central Layout & Left Sidebar Navigation
   ------------------------------------------------------------------------- */
#layoutCenterBody {
  margin: 10px 5px 0 10px;
  padding-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#layoutNavigation {
  width: 210px;
  min-width: 210px;
  flex: 0 0 210px;
  border: 1px solid var(--theme-border);
  background: var(--nav-panel-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  overflow: hidden;
  float: none;
}

#layoutNavigation .navTitle {
  background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
  color: #2f2318;
  font-weight: bold;
  padding: 7px 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 !important;
  border-bottom: 1px solid var(--theme-border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#layoutNavigation ul,
#layoutNavigation li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#layoutNavigation ul.topnav {
  list-style: none;
  margin: 0;
  padding: 0;
}

#layoutNavigation ul.topnav li {
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

#layoutNavigation ul.topnav li a {
  display: block;
  background: transparent;
  border-bottom: 1px solid var(--theme-border-subtle);
  margin: 0;
  padding: 7px 12px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

#layoutNavigation ul.topnav li a:hover {
  background: var(--nav-hover-bg);
  color: var(--link-hover);
}

#layoutNavigation ul.topnav li.active > a,
#layoutNavigation ul.topnav li a#active,
#layoutNavigation .active a {
  background: var(--nav-active-bg);
  color: var(--theme-primary-dark);
  font-weight: 700;
}

#layoutNavigation .topnav ul {
  display: none;
  padding-left: 10px;
  background: var(--nav-sub-bg);
}

#layoutNavigation .topnav ul li a {
  font-weight: normal;
  padding: 5px 10px 5px 14px;
  font-size: 12.5px;
}

#layoutNavigation .topnav ul ul:last-child li {
  font-weight: normal;
}

#layoutNavigation ul.topnav span {
  float: right;
}

/* -------------------------------------------------------------------------
   Legend (Jelmagyarázat) in Sidebar
   ------------------------------------------------------------------------- */
#layoutNavigation .navTitle + dl.table-display,
#layoutNavigation dl.table-display {
  margin: 0 !important;
  padding: 8px 10px !important;
  background: var(--nav-panel-bg);
}

dl.table-display dt {
  width: 24px;
  margin: 0;
  padding: 3px 2px 3px 0;
  float: left;
  clear: left;
  font-size: 11.5px;
  color: var(--theme-primary);
  font-weight: 700;
}

dl.table-display dd {
  float: left;
  font-size: 11.5px;
  font-weight: normal;
  padding: 3px 2px;
  margin: 0;
  color: var(--theme-text-body);
}

.table-display:after {
  content: '';
  display: table;
  clear: both;
}

/* -------------------------------------------------------------------------
   Main Body Content Card
   ------------------------------------------------------------------------- */
#layoutBodyContent {
  margin-left: 0;
  margin-right: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 246, 240, 0.94) 100%);
  border: 1px solid rgba(54, 44, 34, 0.14);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(41, 38, 23, 0.05);
}

#layoutBodyContent h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 26px;
  color: var(--theme-primary-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

#layoutBodyContent h2 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--theme-primary-dark);
  margin-bottom: 12px;
}

#layoutBodyContent h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: var(--theme-primary);
  margin: 16px 0 8px;
}

#layoutBodyContent a:link,
#layoutBodyContent a:visited {
  color: var(--link);
  text-decoration: none;
}

#layoutBodyContent a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

#layoutBodyContent > p {
  margin-top: 10px;
}

.clearer {
  clear: both;
  height: 5px;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
#layoutFooter {
  height: 34px;
  background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
  border-top: 1px solid rgba(41, 38, 23, 0.25);
}

#layoutFooter .siteinfoLegal {
  float: right;
  padding: 6px;
}

/* -------------------------------------------------------------------------
   Search Form & Controls
   ------------------------------------------------------------------------- */
.search {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
}

#searchtable {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#searchtable td {
  padding: 4px 8px;
  font-size: 13px;
  color: var(--theme-text-body);
}

#searchtable input[type="text"],
#searchtable select {
  padding: 6px 10px;
  border: 1px solid rgba(41, 38, 23, 0.22);
  border-radius: 6px;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--theme-text-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#searchtable input[type="text"]:focus,
#searchtable select:focus {
  border-color: var(--theme-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(153, 101, 21, 0.15);
}

#searchtable input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
  border: 1px solid rgba(80, 50, 15, 0.3);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #2f2318;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
}

#searchtable input[type="submit"]:hover {
  background: linear-gradient(180deg, #f0dfb8 0%, #d8b875 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   Results & Classification Tables
   ------------------------------------------------------------------------- */
.searchresult {
  margin: 16px auto;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
}

.searchresult table,
table.searchresult2,
table#stype {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(41, 38, 23, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(41, 38, 23, 0.04);
  background: #ffffff;
  margin: 10px auto;
}

.searchresult thead th,
.searchresult thead tr th,
table.searchresult2 thead th,
table.searchresult2 thead tr th,
.searchresult-table thead th,
.searchresult-table thead tr th,
.searchresult:not(:has(thead)) > tr:first-child td,
table.searchresult2:not(:has(thead)) > tr:first-child td {
  background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%) !important;
  color: #2f2318 !important;
  font-weight: 700 !important;
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid rgba(41, 38, 23, 0.2);
  text-align: center;
}

.searchresult tbody tr:nth-child(even),
table.searchresult2 tbody tr:nth-child(even) {
  background: rgba(248, 243, 236, 0.65) !important;
}

.searchresult tbody tr:nth-child(odd),
table.searchresult2 tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

.searchresult tbody tr:hover,
table.searchresult2 tbody tr:hover,
table#stype tr:hover {
  background: rgba(184, 134, 11, 0.08) !important;
}

.searchresult td,
table.searchresult2 td,
table#stype td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(41, 38, 23, 0.08);
  font-size: 13px;
  color: var(--theme-text-body);
}

table#stype td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(41, 38, 23, 0.1);
}

#stype td:nth-child(2) {
  text-align: center;
}

#stype img {
  display: block;
  margin: 0 auto;
  max-width: 280px;
  height: auto;
  border-radius: 4px;
}

#specfont {
  font-family: 'stamp_symbolsregular', sans-serif;
  font-size: 13px;
  display: inline-block;
  font-style: normal;
  color: var(--theme-primary);
}

#screenshot {
  position: absolute;
  border: 1px solid #ccc;
  background: #333;
  padding: 5px;
  display: none;
  color: #fff;
  z-index: 2000;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

img.screenshotimage {
  width: 100%;
  height: 100%;
  max-width: 250px;
  max-height: 250px;
  object-fit: contain;
  display: block;
}

#intro-list ul {
  list-style: disc;
  margin: 10px 0 10px 24px;
  padding: 0;
  border: none;
}

#intro-list li {
  padding: 4px 0;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Responsive Styling (max-width: 768px)
   ------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  #container { width: 100% !important; max-width: 100% !important; overflow: hidden !important; margin: 0 !important; }
  #layoutHeader { height: 116px !important; background-position: left top, right top !important; background-size: auto 116px, auto 116px !important; }
  .maintitle { font-size: 15px; position: absolute !important; right: 3px !important; bottom: 1px !important; height: 40px !important; line-height: 1.15 !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }
  #layoutCenterBody { display: block !important; margin: 8px 10px 0 !important; width: auto !important; }
  #layoutNavigation { display: block !important; width: 100% !important; min-width: 100% !important; flex: none !important; float: none !important; margin: 0 0 12px 0 !important; box-sizing: border-box !important; }
  #layoutBodyContent, #layoutBodyContent[class] { display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; flex: none !important; margin: 0 !important; float: none !important; box-sizing: border-box !important; }
  #layoutFooter { padding-right: 54px !important; box-sizing: border-box !important; }
  #layoutFooter .siteinfoLegal { padding-right: 48px !important; }
}
