/* ==========================================================================
   DADA LAKHMI CHAND JOURNAL OF PERFORMING & VISUAL ARTS
   "CURTAIN & CANVAS" THEME  (for OJS 3.4)

   Mood: theatre curtain reds + gallery-wall cream + brass/gold accents —
   built for a performing & visual arts journal, not a generic sciences look.

   HOW TO USE:
   Journal Settings -> Website -> Appearance -> Setup -> Additional CSS
   Paste this whole file in, save.

   HEADER FONT: only ONE display typeface is used for the journal title —
   'Playfair Display' (a Google Font). Georgia is listed only as the
   plain system fallback for the instant before the webfont loads, it is
   not a second decorative font.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. FONTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- palette: theatre curtain / gallery wall ---- */
  --curtain-deep:   #4a1220;   /* deep maroon curtain */
  --curtain-mid:    #6d1c2c;
  --curtain-light:  #8f2f3c;
  --canvas:         #faf5ec;   /* warm gallery-wall cream */
  --canvas-panel:   #fffdf8;
  --charcoal:       #2a2320;   /* body ink */
  --charcoal-muted: #746a62;

  --brass:          #b4863a;  /* gold/brass accent */
  --brass-deep:     #8f6524;
  --teal-accent:    #2f6b62;  /* small pop, like a stage-light teal */

  --focus-ring: var(--brass);

  /* ---- typography: ONE font for the journal title/display,
         one for body/nav, no third decorative face ---- */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-nav: 'Inter', 'Segoe UI', Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --gutter: 2rem;
  --content-max: 1180px;
  --sidebar-w: 300px;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 16px rgba(42, 18, 12, 0.10);
  --shadow-lift: 0 12px 28px rgba(42, 18, 12, 0.18);

  --z-header: 100;
  --z-nav-dropdown: 999;
}


/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body, #container, .pkp_structure_page {
  min-height: 100vh;
  background-color: var(--canvas);
  /* "The River Severn at Shrewsbury" by Paul Sandby, via Birmingham
     Museums Trust on Unsplash (free to use, Unsplash License).
     A cream-tinted overlay sits on top so page text stays readable. */
  background-image:
    linear-gradient(180deg, rgba(250, 245, 236, 0.94) 0%, rgba(250, 245, 236, 0.88) 45%, rgba(250, 245, 236, 0.95) 100%),
    url("https://images.unsplash.com/photo-1578926375605-eaf7559b1458?auto=format&fit=crop&w=1920&q=80");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
}
@media (max-width: 780px) {
  body, #container, .pkp_structure_page { background-attachment: scroll; }
}


/* --------------------------------------------------------------------------
   3. HEADER / MASTHEAD — single font, curtain-red gradient, brass rule
   -------------------------------------------------------------------------- */
.pkp_structure_head, header.pkp_structure_head,
#headerNavigationContainer, .pkp_head_wrapper {
  position: relative;
  z-index: var(--z-header);
  width: 100%;
  padding: var(--space-4) 0 var(--space-3);
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-bottom: 4px solid var(--brass);
}

/* removed the curtain-fold texture overlay — it relied on the solid
   background color and would otherwise sit oddly over the painting */

.pkp_site_name_wrapper, .pkp_site_name {
  position: relative;
  font-family: var(--font-title);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--curtain-mid) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.pkp_site_name a { color: inherit !important; text-decoration: none; }
.pkp_site_name a:hover { color: var(--brass-deep) !important; }

.pkp_site_name_wrapper::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 0.65rem;
  background: var(--brass);
  border-radius: 2px;
}

.pkp_structure_head .pkp_page_title,
.pkp_structure_head .description,
.pkp_structure_head p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--charcoal-muted);
  margin-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   4. NAVIGATION — brass-outline pill buttons on the curtain header
   -------------------------------------------------------------------------- */
.pkp_navigation_primary, .pkp_navigation_primary_row {
  position: relative;
  z-index: var(--z-nav-dropdown);
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.pkp_navigation_primary .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem 0;
}
.pkp_navigation_primary .menu > li { position: relative; }

.pkp_navigation_primary .menu > li > a,
nav.menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 18, 32, 0.3);
  color: var(--curtain-deep);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pkp_navigation_primary .menu > li > a:hover,
.pkp_navigation_primary .menu > li > a:focus-visible {
  background: var(--brass);
  border-color: var(--brass);
  color: #2a1712;
}
.pkp_navigation_primary .menu > li.current > a,
.pkp_navigation_primary .menu > li > a[aria-current="page"] {
  background: rgba(180, 134, 58, 0.18);
  border-color: var(--brass);
  color: var(--curtain-deep);
}

.pkp_navigation_primary .menu > li > ul,
.pkp_navigation_primary .menu .sub_menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin-top: 8px;
  padding: 0.4rem;
  list-style: none;
  background: var(--canvas-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: var(--z-nav-dropdown);
}
.pkp_navigation_primary .menu > li:hover > ul,
.pkp_navigation_primary .menu > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pkp_navigation_primary .menu > li > ul li a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}
.pkp_navigation_primary .menu > li > ul li a:hover {
  background: rgba(180, 134, 58, 0.14);
  color: var(--curtain-deep);
}
@media (max-width: 780px) {
  .pkp_navigation_primary .menu > li > ul {
    position: static;
    opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,0.5);
    margin: 4px 0 8px 0;
  }
  .pkp_navigation_primary .menu > li > ul li a { color: var(--curtain-deep); }
  .pkp_navigation_primary .menu > li > ul li a:hover { color: var(--curtain-deep); }
}


/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.pkp_structure_page {
  display: flex !important;
  flex-wrap: wrap !important;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-2);
  align-items: flex-start;
}
.pkp_structure_page > *:not(.pkp_structure_main):not(.pkp_structure_sidebar) {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.pkp_structure_main {
  flex: 1 1 auto !important;
  width: calc(100% - var(--sidebar-w) - var(--gutter)) !important;
  max-width: calc(100% - var(--sidebar-w) - var(--gutter)) !important;
  min-width: 0;
  margin: var(--space-4) 0 !important;
  margin-right: var(--gutter) !important;
}
.pkp_structure_sidebar {
  flex: 0 0 var(--sidebar-w) !important;
  width: var(--sidebar-w) !important;
  max-width: var(--sidebar-w) !important;
  margin: var(--space-4) 0 !important;
  border-left: 2px solid rgba(180, 134, 58, 0.35);
  padding-left: var(--space-3);
}
@media (max-width: 900px) {
  .pkp_structure_main, .pkp_structure_sidebar {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    border-left: none;
    padding-left: 0;
  }
}


/* --------------------------------------------------------------------------
   6. MAIN CONTENT PANELS — "gallery card" feel
   -------------------------------------------------------------------------- */
.pkp_structure_content, .page, .journal_description, .obj_issue_toc {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  color: var(--charcoal);
  border-top: 3px solid var(--brass);
  border-bottom: 1px solid rgba(74, 18, 32, 0.15);
}
.page h1, .pkp_page_title, .page_index h1 {
  font-family: var(--font-title);
  color: var(--curtain-deep);
  font-weight: 700;
}
.page h2, .obj_issue_toc h2, .pkp_structure_content h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--curtain-deep);
  border-bottom: 2px solid rgba(180, 134, 58, 0.4);
  padding-bottom: 0.4rem;
  margin-top: 0;
}


/* --------------------------------------------------------------------------
   7. ARCHIVES — issue cards with cover art emphasis
   -------------------------------------------------------------------------- */
.obj_issue_summary,
.issues_list .issue,
.pkp_issue_summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--canvas-panel);
  border: 1px solid rgba(180, 134, 58, 0.25);
  border-left: 5px solid var(--curtain-mid);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.obj_issue_summary:hover,
.issues_list .issue:hover,
.pkp_issue_summary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-left-color: var(--brass);
}
.obj_issue_summary .issue_cover img,
.obj_issue_summary .cover img {
  width: 76px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(42, 18, 12, 0.25);
  flex-shrink: 0;
}
.obj_issue_summary .title,
.obj_issue_summary a.title,
.issues_list .issue .title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--curtain-deep);
  flex: 1 1 auto;
}
.obj_issue_summary .series,
.obj_issue_summary .description {
  font-size: 0.82rem;
  color: var(--charcoal-muted);
}
.obj_issue_summary > a,
.obj_issue_summary .title a,
.issues_list .issue > a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--curtain-mid);
  color: #fdf6ea;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.obj_issue_summary > a:hover,
.obj_issue_summary .title a:hover,
.issues_list .issue > a:hover {
  background: var(--brass-deep);
}


/* --------------------------------------------------------------------------
   8. SIDEBAR
   -------------------------------------------------------------------------- */
.pkp_structure_sidebar .pkp_block {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: var(--radius-md);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--curtain-mid);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(74, 18, 32, 0.15);
}
.pkp_structure_sidebar .pkp_block h2,
.pkp_structure_sidebar .pkp_block .title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--curtain-deep);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(180, 134, 58, 0.4);
}
.pkp_structure_sidebar .pkp_block ul { list-style: none; margin: 0; padding: 0; }
.pkp_structure_sidebar .pkp_block ul li { margin-bottom: 0.5rem; }
.pkp_structure_sidebar .pkp_block ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(180, 134, 58, 0.3);
  color: var(--curtain-mid);
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pkp_structure_sidebar .pkp_block ul li a:hover,
.pkp_structure_sidebar .pkp_block ul li a:focus-visible {
  background: var(--curtain-deep);
  border-color: var(--curtain-deep);
  color: #fdf6ea;
}

.pkp_structure_sidebar a.btn,
.pkp_structure_sidebar .cta a,
.pkp_structure_sidebar a[href*="submissions"] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  background: var(--brass);
  color: #2a1712 !important;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, transform 0.2s ease;
}
.pkp_structure_sidebar a.btn:hover,
.pkp_structure_sidebar .cta a:hover,
.pkp_structure_sidebar a[href*="submissions"]:hover {
  background: var(--brass-deep);
  color: #fdf6ea !important;
  transform: translateY(-2px);
}

.pkp_structure_sidebar .pkp_block ul.feeds,
.pkp_structure_sidebar .pkp_block .feeds {
  display: flex;
  gap: 0.5rem;
}
.pkp_structure_sidebar .pkp_block .feeds li { margin: 0; }
.pkp_structure_sidebar .pkp_block .feeds li a {
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}


/* --------------------------------------------------------------------------
   9. ARTICLE LISTINGS
   -------------------------------------------------------------------------- */
.obj_article_summary {
  background: var(--canvas-panel);
  border-left: 5px solid var(--teal-accent);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.obj_article_summary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-left-color: var(--brass);
}
.obj_article_summary .title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--curtain-deep);
}
.obj_article_summary .authors { font-size: 0.86rem; color: var(--charcoal-muted); font-style: italic; }
.obj_article_summary .pages { font-size: 0.8rem; color: var(--brass-deep); }
.obj_article_summary a.file,
.obj_galley_link,
.galleys_links a,
a.pdf {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--teal-accent);
  color: var(--teal-accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.obj_article_summary a.file:hover,
.obj_galley_link:hover,
.galleys_links a:hover,
a.pdf:hover {
  background: var(--teal-accent);
  color: #fff;
}


/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.pkp_structure_footer_wrapper, footer, #footer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: 3px solid var(--brass);
  padding: var(--space-3) var(--space-2);
  margin-top: var(--space-4);
}
.pkp_footer_content, footer .pkp_footer_content {
  max-width: var(--content-max);
  margin: 0 auto;
  color: var(--charcoal-muted);
  font-size: 0.85rem;
}
.pkp_footer_content a { color: var(--curtain-deep); font-weight: 600; }
.pkp_footer_content a:hover { color: var(--brass-deep); }


/* --------------------------------------------------------------------------
   11. TABLES, BREADCRUMBS, SEARCH
   -------------------------------------------------------------------------- */
.pkp_meta_data table { width: 100%; border-collapse: collapse; }
.pkp_meta_data table td, .pkp_meta_data table th {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(180, 134, 58, 0.25);
}
.breadcrumb, .cmp_breadcrumbs { font-size: 0.8rem; color: var(--charcoal-muted); }
.breadcrumb a, .cmp_breadcrumbs a { color: var(--curtain-mid); }

.pkp_search input[type="search"], .pkp_search input[type="text"] {
  border-radius: 999px;
  border: 1px solid rgba(180, 134, 58, 0.4);
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.9);
}


/* --------------------------------------------------------------------------
   12. ACCESSIBILITY & FOCUS
   -------------------------------------------------------------------------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.001ms !important; } }


/* --------------------------------------------------------------------------
   13. PRINT
   -------------------------------------------------------------------------- */
@media print {
  body, #container, .pkp_structure_page { background: #fff !important; }
  .pkp_structure_content, .page, .obj_article_summary, .obj_issue_summary,
  .pkp_structure_sidebar .pkp_block {
    background: #fff !important; box-shadow: none !important; border: none !important;
  }
  nav, .pkp_structure_head, footer { display: none !important; }
}


/* --------------------------------------------------------------------------
   14. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .pkp_site_name { font-size: 1.5rem; }
  .pkp_structure_content, .page, .journal_description, .obj_issue_toc {
    padding: var(--space-2) var(--space-3);
  }
  .pkp_structure_sidebar .pkp_block { padding: var(--space-2); }
}
