/*
Theme Name: House of Strodinn
Theme URI: https://houseofstrodinn.example
Author: House of Strodinn
Author URI: https://houseofstrodinn.example
Description: An immersive mansion-themed WordPress theme for the House of Strodinn. Explore themed rooms through the grand Main Hall. Dark wood, antique atmosphere, and atmospheric navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: house-of-strodinn
Tags: custom-background, custom-menu, featured-images, full-width-template, theme-options
*/

/* ==========================================================================
   CSS Variables – Mansion Palette
   ========================================================================== */
:root {
  --wood-dark: #1a120b;
  --wood-mid: #2c1e14;
  --wood-light: #3d2b1f;
  --brass: #c9a227;
  --brass-dim: #a67c00;
  --red-carpet: #6b1c1c;
  --red-carpet-dark: #4a1212;
  --cream: #e8dcc8;
  --parchment: #f5e6c8;
  --shadow: rgba(0, 0, 0, 0.75);
  --glow: rgba(201, 162, 39, 0.35);
  --text-primary: #e8dcc8;
  --text-muted: #b8a88a;
  --border-ornate: 1px solid rgba(201, 162, 39, 0.4);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Georgia", "Times New Roman", serif;
  background-color: var(--wood-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top, rgba(60, 40, 25, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #0f0a07 0%, #1a120b 40%, #0d0906 100%);
}

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

a {
  color: var(--brass);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:hover,
a:focus {
  color: var(--parchment);
  text-shadow: 0 0 8px var(--glow);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Georgia", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ==========================================================================
   Header / Site Branding
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, rgba(15, 10, 7, 0.95) 0%, rgba(26, 18, 11, 0.85) 100%);
  border-bottom: var(--border-ornate);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-title a {
  color: var(--cream);
}

.site-title a:hover {
  color: var(--brass);
}

.site-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: none;
}

@media (min-width: 768px) {
  .site-description {
    display: block;
  }
}

/* Return to Mansion button */
.return-to-mansion {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-mid) 100%);
  border: 1px solid var(--brass-dim);
  border-radius: 3px;
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.return-to-mansion:hover {
  background: linear-gradient(180deg, #4a3528 0%, var(--wood-light) 100%);
  border-color: var(--brass);
  color: var(--parchment);
  box-shadow: 0 0 16px var(--glow), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.return-to-mansion .icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   Main Hall (Front Page)
   ========================================================================== */
.main-hall {
  text-align: center;
  padding-top: 2rem;
}

.main-hall-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.main-hall-intro h1 {
  margin-bottom: 0.75rem;
}

.main-hall-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Main Hall – simplified for Draw Attention
   ========================================================================== */
.hall-map-wrapper {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.hall-content {
  /* Let Draw Attention control its own sizing */
  line-height: 0;
}

.hall-content img,
.hall-image-only img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--brass-dim);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 12px 40px rgba(0, 0, 0, 0.7);
}

.hall-image-only {
  border: 2px solid var(--brass-dim);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 12px 40px rgba(0, 0, 0, 0.7);
}

.hall-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #2c1e14 0%, #1a120b 50%, #0d0906 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--brass-dim);
  border-radius: 4px;
}

.hall-placeholder small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: none;
}

/* Secondary heading above the door cards */
.doors-heading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}


/* Hall Image Container (fallback / placeholder) */
.hall-image-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 3rem;
  border: 2px solid var(--brass-dim);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 12px 40px rgba(0, 0, 0, 0.7),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  background: #0a0705;
}

.hall-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hall-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #2c1e14 0%, #1a120b 50%, #0d0906 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2rem;
  text-align: center;
}

.hall-placeholder small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: none;
}



/* Secondary heading above the door cards */
.doors-heading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

@media (min-width: 701px) {
  .doors-heading {
    margin-top: 0.5rem;
  }
}

/* Room Doors Grid */
.room-doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  list-style: none;
}

.room-door {
  position: relative;
}

.room-door a {
  display: block;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(165deg, var(--wood-light) 0%, var(--wood-mid) 55%, var(--wood-dark) 100%);
  border: 1px solid var(--brass-dim);
  border-radius: 4px;
  color: var(--cream);
  text-align: center;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.room-door a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(201, 162, 39, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.room-door a:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.6),
    0 0 20px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--parchment);
}

.room-door a:hover::before {
  opacity: 1;
}

.room-door .door-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.room-door .door-label {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.room-door .door-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: none;
  font-style: italic;
}

/* Special treatment for Back Woods */
.room-door.back-woods a {
  background: linear-gradient(165deg, #1e2a1a 0%, #152016 55%, #0d140e 100%);
  border-color: #4a6b3a;
}

.room-door.back-woods a:hover {
  border-color: #7a9b5a;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(90, 140, 70, 0.35);
}

/* ==========================================================================
   Room Pages
   ========================================================================== */
.room-page {
  padding-top: 2rem;
}

.room-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border-ornate);
}

.room-header .room-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}

.room-header h1 {
  margin-bottom: 0.5rem;
}

.room-header .room-theme {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}

.room-content {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(44, 30, 20, 0.6) 0%, rgba(26, 18, 11, 0.4) 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 4px;
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.room-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(0deg, #0a0705 0%, rgba(15, 10, 7, 0.95) 100%);
  border-top: var(--border-ornate);
  padding: 1.75rem 0;
  text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.site-info a {
  color: var(--brass-dim);
}

.site-info a:hover {
  color: var(--brass);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */
@media (max-width: 600px) {
  .room-doors {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }

  .room-door a {
    padding: 1.15rem 0.9rem;
  }

  .room-door .door-icon {
    font-size: 1.6rem;
  }

  .room-door .door-label {
    font-size: 0.8rem;
  }

  .room-content {
    padding: 1.5rem 1.25rem;
  }
}
