/*
Theme Name: Ivanqnev
Theme URI: http://localhost/ivan-qnev.com/
Author: Ivanqnev
Description: A minimal dark-arts theme inspired by Keinemusik — warm beige background, gothic logo, bold condensed sidebar navigation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ivanqnev
Tags: minimal, custom-menu, two-column, music
*/


/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 13px;
  scroll-behavior: smooth;
}

body {
  background-color: #f0e9e2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #111;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #e07638;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.site {
  display: flex;
  min-height: 100vh;
}

/* ── Main content area ── */
.site-content {
  flex: 1;
  padding: 36px 40px 80px 60px;
  max-width: calc(100% - 280px);
}

/* ── Fixed sidebar ── */
.site-sidebar {
  width: 280px;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 20px 28px 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
  pointer-events: none;
}

.site-sidebar > * {
  pointer-events: all;
}

/* ─────────────────────────────────────────────
   SITE BRANDING / LOGO
───────────────────────────────────────────── */
.site-branding {
  text-align: right;
}

.site-logo-link {
  display: inline-block;
  text-decoration: none;
}

.site-logo-link svg {
  width: 160px;
  height: 160px;
  display: block;
  margin-left: auto;
  transition: opacity 0.15s;
}

.site-logo-link:hover svg {
  opacity: 0.75;
}

/* Ensure SVG inherits colour correctly */
.site-logo-link svg path,
.site-logo-link svg text,
.site-logo-link svg circle {
  fill: currentColor;
}

.site-logo-link svg [fill="none"] {
  fill: none !important;
}

.site-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 64px;
  font-weight: normal;
  line-height: 0.88;
  color: #111;
  letter-spacing: -1px;
}

.site-title a {
  color: #111;
  text-decoration: none;
}

.site-title a:hover {
  color: #e07638;
}

.site-description {
  display: none;
}

/* ─────────────────────────────────────────────
   TOP NAV (Primary Menu)
───────────────────────────────────────────── */
.top-navigation {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  justify-content: center;
}

.top-navigation ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.top-navigation ul li a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.top-navigation ul li a:hover,
.top-navigation ul li.current-menu-item a,
.top-navigation ul li.current_page_item a {
  color: #e07638;
}

/* ─────────────────────────────────────────────
   SIDEBAR NAV (Secondary Menu)
───────────────────────────────────────────── */
.sidebar-navigation {
  text-align: right;
}

.sidebar-navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-navigation ul li a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
  letter-spacing: 0.04em;
  color: #111;
  text-decoration: none;
  line-height: 1.08;
  display: block;
  transition: color 0.15s;
}

.sidebar-navigation ul li a:hover,
.sidebar-navigation ul li.current-menu-item a,
.sidebar-navigation ul li.current_page_item a {
  color: #e07638;
}

/* ─────────────────────────────────────────────
   SOCIAL ICONS
───────────────────────────────────────────── */
.site-social {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  align-items: center;
}

.site-social a {
  color: #111;
  opacity: 0.75;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.site-social a:hover {
  opacity: 1;
  color: #111;
}

.site-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

/* ─────────────────────────────────────────────
   POSTS / ENTRIES
───────────────────────────────────────────── */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entry {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 160px;
  padding: 5px 0;
  line-height: 1.6;
  align-items: baseline;
  border-bottom: none;
}

.entry-date {
  font-size: 13px;
  color: #111;
  white-space: nowrap;
}

.entry-title {
  font-size: 13px;
  color: #111;
  font-weight: normal;
}

.entry-title a {
  color: #111;
  text-decoration: none;
}

.entry-title a:hover {
  color: #e07638;
}

.entry-venue {
  text-align: center;
  font-size: 13px;
  color: #111;
}

.entry-category {
  text-align: center;
  font-size: 13px;
  color: #111;
}

.entry-city {
  text-align: right;
  font-size: 13px;
  color: #999;
}

/* ─────────────────────────────────────────────
   EVENT META FIELDS
───────────────────────────────────────────── */
.event-meta-fields {
  display: flex;
  gap: 40px;
  margin-bottom: 28px;
  padding: 10px 0;
  border-top: 1px solid #ddd6cd;
  border-bottom: 1px solid #ddd6cd;
}

.event-meta-fields .meta-item strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 3px;
}

.event-meta-fields .meta-item span {
  font-size: 13px;
  color: #111;
}

/* ─────────────────────────────────────────────
   SINGLE POST / PAGE
───────────────────────────────────────────── */
.single-entry,
.page-entry {
  max-width: 680px;
}

.single-entry .entry-header,
.page-entry .entry-header {
  margin-bottom: 32px;
}

.single-entry .entry-title-large,
.page-entry .entry-title-large {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 56px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #111;
  font-weight: normal;
}

.entry-meta {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  display: flex;
  gap: 16px;
}

.entry-content {
  font-size: 14px;
  line-height: 1.75;
  color: #222;
}

.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  font-weight: normal;
  margin: 1.8em 0 0.6em;
}

.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 28px; }
.entry-content h4 { font-size: 22px; }

.entry-content a {
  color: #e07638;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content blockquote {
  border-left: 2px solid #e07638;
  padding-left: 20px;
  margin: 1.4em 0;
  color: #555;
  font-style: italic;
}

.entry-content img {
  margin: 1.4em 0;
}

/* ─────────────────────────────────────────────
   DATES TABLE (Events category)
───────────────────────────────────────────── */
.dates-list {
  display: flex;
  flex-direction: column;
}

.dates-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 160px;
  padding: 5px 0;
  line-height: 1.6;
  align-items: baseline;
  text-decoration: none;
  color: #111;
  transition: color 0.12s;
}

.dates-row:hover {
  color: #e07638;
}

.dates-date {
  font-size: 13px;
  white-space: nowrap;
}

.dates-title {
  font-size: 13px;
}

.dates-location {
  font-size: 13px;
  text-align: center;
}

.dates-city {
  font-size: 13px;
  text-align: right;
  color: #999;
}

.dates-row:hover .dates-city {
  color: #e07638;
}

/* ─────────────────────────────────────────────
   NO POSTS
───────────────────────────────────────────── */
.no-results {
  font-size: 13px;
  color: #888;
  padding: 20px 0;
}

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  font-size: 12px;
  color: #888;
}

.pagination a {
  color: #111;
}

.pagination a:hover {
  color: #e07638;
}

/* ─────────────────────────────────────────────
   COMMENTS
───────────────────────────────────────────── */
.comments-area {
  margin-top: 60px;
  max-width: 680px;
}

.comment-list {
  list-style: none;
  margin-bottom: 40px;
}

.comment {
  padding: 16px 0;
  border-top: 1px solid #ddd6cd;
}

.comment-author {
  font-weight: 500;
  margin-bottom: 4px;
}

.comment-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}

.comment-content {
  font-size: 13px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #ccc4bc;
  padding: 8px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #111;
  outline: none;
  margin-bottom: 12px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #e07638;
}

input[type="submit"],
button[type="submit"] {
  background: #111;
  color: #f0e9e2;
  border: none;
  padding: 10px 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background: #e07638;
}

/* ─────────────────────────────────────────────
   SEARCH
───────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.search-field {
  flex: 1;
}

/* ─────────────────────────────────────────────
   RESPONSIVE — tablet (≤ 900 px)
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .site {
    flex-direction: column;
  }

  .site-content {
    max-width: 100%;
    padding: 20px 20px 60px;
    order: 1;
  }

  /* Sidebar moves to a sticky top bar */
  .site-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 14px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd6cd;
    background: #f0e9e2;
    z-index: 200;
    order: 0;
  }

  /* Top nav becomes scrollable row */
  .top-navigation {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .top-navigation::-webkit-scrollbar { display: none; }
  .top-navigation ul { flex-wrap: nowrap; gap: 18px; }

  .site-logo-link svg {
    width: 100px;
    height: 100px;
  }

  .site-title {
    font-size: 40px;
  }

  .sidebar-navigation ul li a {
    font-size: 26px;
  }

  /* Entries: 2-col on tablet */
  .entry {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 12px;
  }

  .entry-venue,
  .entry-city {
    display: none;
  }

  .dates-row {
    grid-template-columns: 70px 1fr;
  }
  .dates-location,
  .dates-city {
    display: none;
  }

  /* Single/page headings */
  .single-entry .entry-title-large,
  .page-entry .entry-title-large {
    font-size: 40px;
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — mobile (≤ 600 px)
───────────────────────────────────────────── */
@media (max-width: 600px) {
  html { font-size: 12px; }

  .site-content {
    padding: 16px 16px 60px;
  }

  .site-sidebar {
    padding: 10px 16px;
    gap: 10px;
  }

  /* Top nav: smaller gap on phones */
  .top-navigation ul { gap: 14px; }
  .top-navigation ul li a { font-size: 12px; }

  .site-logo-link svg {
    width: 72px;
    height: 72px;
  }

  .site-title { font-size: 32px; }

  .sidebar-navigation ul li a {
    font-size: 22px;
  }

  /* Social icons: smaller */
  .site-social svg { width: 14px; height: 14px; }

  /* Entries: stack fully */
  .entry {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #ece5de;
  }

  .entry-date {
    font-size: 11px;
    color: #999;
  }

  .entry-title { font-size: 13px; }

  .dates-row {
    grid-template-columns: 60px 1fr;
    padding: 7px 0;
  }

  /* Single/page headings */
  .single-entry .entry-title-large,
  .page-entry .entry-title-large {
    font-size: 30px;
    letter-spacing: 0.02em;
  }

  /* Event meta: stack vertically */
  .event-meta-fields {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Comments */
  .comments-area { margin-top: 40px; }

  /* Pagination */
  .pagination { font-size: 11px; gap: 12px; margin-top: 28px; }

  /* Forms */
  input[type="submit"],
  button[type="submit"] {
    width: 100%;
    font-size: 15px;
  }
}
