/*
Theme Name: Dazzlin
Theme URI:  https://dazzlin-dk.com
Author:      Dazzlin-DK
Author URI:  https://dazzlin-dk.com
Description: Black and gold classic theme for Dazzlin-DK.
Version:     1.2
Text Domain: dazzlin
*/

 /* Color tokens - match the live Fairy Child theme on dazzlin-dk.com */
 :root {
     --bg: #000000;
     --panel: #000000;
     --gold: #ffcc00; /* primary gold text (Fairy Child body colour) */
     --gold-accent: #eacf00; /* Fairy primary colour: links, borders, accents */
     --tagline: #eeee22; /* Fairy header description colour */
     --muted: #c9a800;
     --border: rgba(234, 207, 0, 0.35);

     /* Font variables (overridden by inline CSS from PHP with the Customizer choices) */
     --base-font-family: "Mulish", "Muli", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     --heading-font-family: "Merriweather", Georgia, serif;
 }

 h1, h2, h3, h4, h5, h6 {
     font-family: var(--heading-font-family);
 }

 html,body {
     margin: 0;
     padding: 0;
     font-family: var(--base-font-family);
     color: var(--gold);
     background: var(--bg);
 }

 .wrap {
     max-width: 1100px;
     margin: 0 auto;
     padding: 1rem;
 }

 .site-header {
     background: var(--panel);
 }

 /* Header top: logo / header image, with a thin gold rule underneath (as on the live site) */
 .site-header-top {
     border-bottom: 1px solid var(--gold-accent);
 }

 /* Header bottom: menu bar with a thicker gold rule underneath */
 .site-header-bottom {
     border-bottom: 3px solid var(--gold-accent);
 }

 /* Branding: centre logo and description */
 .site-branding {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.5rem;
     text-align: center;
 }

 .site-branding:empty {
     display: none;
 }

 .custom-logo {
     display: block;
     max-width: 100%;
     height: auto;
 }

 .site-title {
     margin: 0;
     font-size: 1.25rem;
     color: var(--gold);
 }

 .site-title a {
     color: inherit;
     text-decoration: none;
 }

 .site-description {
     margin: 0;
     color: var(--tagline);
     font-size: 0.95rem;
 }

 /* Header image: shown at full brightness, like the live logo */
 .header-image img {
     display: block;
     width: 100%;
     height: auto;
     object-fit: cover;
 }

 /* Layout: content + sidebar using explicit grid areas */
 .content-layout {
     display: grid;
     grid-template-columns: 1fr 320px;
     grid-template-areas: "content sidebar";
     gap: 1.5rem;
     align-items: start;
 }

 /* assign areas to children */
 .content-layout > .content-area {
     grid-area: content;
     min-width: 0;
 }

 .content-layout > .sidebar {
     grid-area: sidebar;
     background: transparent;
 }

 /* Widgets sit straight on the black background, as on the live site */
 .sidebar .widget {
     background: var(--bg);
     padding: 0 0 0.75rem;
     margin-bottom: 2rem;
 }

 .widget-title,
 .sidebar .widget h2 {
     margin: 0 0 0.75rem;
     color: var(--gold);
     font-size: 1.5rem;
     font-weight: 700;
 }

 .sidebar .widget ul {
     list-style: none;
     margin: 0;
     padding: 0;
 }

 .sidebar .widget li {
     margin-bottom: 0.5rem;
 }

 .sidebar .widget a {
     color: var(--gold);
     text-decoration: none;
 }

 .sidebar .widget a:hover,
 .sidebar .widget a:focus {
     color: var(--gold-accent);
     text-decoration: underline;
 }

 /* Sticky sidebar on wide screens (Fairy's sticky sidebar option is on live) */
 @media (min-width: 992px) {
     .content-layout > .sidebar {
         position: sticky;
         top: 1rem;
     }
 }

 /* Primary navigation: centred bar under the logo */
 .main-navigation {
     width: 100%;
     background: var(--bg);
 }

 .main-navigation .main-menu {
     list-style: none;
     margin: 0 auto;
     max-width: 1100px;
     padding: 0.5rem 1rem;
     display: flex;
     gap: 1rem;
     align-items: center;
     justify-content: center;
     flex-wrap: wrap;
 }

 .main-navigation .main-menu li {
     margin: 0;
 }

 .main-navigation .main-menu li a {
     color: var(--gold);
     text-decoration: none;
     padding: 0.5rem 0.6rem;
     display: inline-block;
     border-radius: 4px;
     transition: background 120ms ease, color 120ms ease;
 }

 .main-navigation .main-menu li a:hover,
 .main-navigation .main-menu li a:focus {
     background: rgba(234, 207, 0,0.08);
     color: var(--gold-accent);
     outline: none;
 }

 /* Site Menu (secondary) */
 .site-navigation {
     margin-top: 0.25rem;
     width: 100%;
     background: transparent;
     border-top: 1px solid rgba(234, 207, 0,0.03);
     padding-top: 0.25rem;
 }

 .site-navigation .site-menu {
     list-style: none;
     margin: 0 auto;
     max-width: 1100px;
     padding: 0 1rem 0.25rem;
     display: flex;
     gap: 0.75rem;
     align-items: center;
     justify-content: center;
     flex-wrap: wrap;
     font-size: 0.95rem;
 }

 .site-navigation .site-menu li a {
     color: var(--muted);
     text-decoration: none;
     padding: 0.35rem 0.5rem;
     display: inline-block;
     border-radius: 4px;
     transition: background 120ms ease, color 120ms ease;
 }

 .site-navigation .site-menu li a:hover,
 .site-navigation .site-menu li a:focus {
     background: rgba(234, 207, 0,0.04);
     color: var(--gold);
     outline: none;
 }

 /* Responsive: stack menus and sidebar to stacked layout on small screens */
 @media (max-width: 600px) {
     .content-layout {
         grid-template-columns: 1fr;
         grid-template-areas:
            "content"
            "sidebar";
     }

     /* ensure sidebar appears after content on narrow screens */
     .content-layout > .sidebar {
         order: 2;
     }
 }

 @media (max-width: 600px) {
     .main-navigation .main-menu,
     .site-navigation .site-menu {
         flex-direction: column;
         gap: 0.25rem;
         padding: 0.5rem 1rem;
     }
 }

 .home-welcome {
     background: #050505;
     padding: 2rem 0;
     border-bottom: 1px solid rgba(234, 207, 0, 0.06);
 }

 .welcome-title {
     margin: 0 0 0.25rem;
     font-size: 1.75rem;
     color: var(--gold);
 }

 .home-posts {
     padding: 2rem 0;
 }

 .posts {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1rem;
 }

 .post-item {
     background: #070707;
     border: 1px solid rgba(234, 207, 0, 0.06);
     padding: 1rem;
     display: flex;
     gap: 1rem;
     align-items: flex-start;
 }

 .post-thumb img {
     max-width: 120px;
     height: auto;
     display: block;
     border: 1px solid rgba(255, 255, 255, 0.03);
 }

 .post-title {
     margin: 0 0 0.5rem;
     font-size: 1.1rem;
     color: var(--gold);
 }

 .post-excerpt {
     color: var(--muted);
     margin-bottom: 0.5rem;
 }

 .read-more {
     color: var(--gold-accent);
     text-decoration: none;
 }

 a {
     color: var(--gold-accent);
     text-decoration: underline;
 }

 .site-footer {
     background: var(--panel);
     border-top: 1px solid var(--border);
     padding: 2.5rem 0;
     margin-top: 2rem;
 }

 .site-info {
     margin: 0;
     color: var(--gold);
     text-align: center;
 }

 /* Accessibility: visually hide text meant for screen readers (used by core nav markup) */
 .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 !important;
     width: 1px;
     word-wrap: normal !important;
 }

 /* Single posts and pages */
 .entry-header {
     margin: 2rem 0 1rem;
     padding-bottom: 0.75rem;
     border-bottom: 1px solid var(--border);
 }

 .entry-title {
     margin: 0 0 0.5rem;
     font-size: 2rem;
     line-height: 1.2;
     color: var(--gold);
 }

 .entry-meta {
     color: var(--muted);
     font-size: 0.9rem;
 }

 .single .post-thumb {
     margin-bottom: 1.5rem;
 }

 .single .post-thumb img {
     max-width: 100%;
     height: auto;
     border: 1px solid var(--border);
 }

 .entry-content {
     line-height: 1.7;
 }

 .entry-content img {
     max-width: 100%;
     height: auto;
 }

 .entry-footer {
     margin-top: 1.5rem;
     color: var(--muted);
     font-size: 0.9rem;
 }

 .page-links,
 .post-tags {
     margin: 1rem 0;
     color: var(--muted);
 }

 /* Archive, search and 404 headers */
 .page-header {
     margin: 2rem 0 1rem;
     padding-bottom: 0.75rem;
     border-bottom: 1px solid var(--border);
 }

 .page-title {
     margin: 0;
     font-size: 1.75rem;
     color: var(--gold);
 }

 .archive-description {
     margin-top: 0.5rem;
     color: var(--muted);
 }

 .content-area .post-item {
     margin-bottom: 1rem;
 }

 /* Search form */
 .search-form {
     display: flex;
     gap: 0.5rem;
     margin: 1rem 0;
 }

 .search-form label {
     flex: 1;
 }

 .search-form .search-field {
     box-sizing: border-box;
     width: 100%;
     padding: 0.6rem 0.75rem;
     font: inherit;
     color: var(--gold);
     background: var(--bg);
     border: 1px solid rgba(234, 207, 0, 0.25);
     border-radius: 4px;
 }

 .search-form .search-field:focus {
     outline: none;
     border-color: var(--gold);
     box-shadow: 0 0 0 2px rgba(234, 207, 0, 0.2);
 }

 .search-form .search-submit {
     padding: 0.6rem 1rem;
     font: inherit;
     font-weight: 700;
     color: var(--bg);
     background: var(--gold);
     border: 1px solid var(--gold);
     border-radius: 4px;
     cursor: pointer;
 }

 .search-form .search-submit:hover,
 .search-form .search-submit:focus {
     background: var(--gold-accent);
     border-color: var(--gold-accent);
 }

 /* Search block widget (sidebar), gold button with black text as on live */
 .wp-block-search .wp-block-search__label {
     display: block;
     margin-bottom: 0.5rem;
     font-family: var(--heading-font-family);
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--gold);
 }

 .wp-block-search .wp-block-search__inside-wrapper {
     display: flex;
     gap: 0.5rem;
 }

 .wp-block-search .wp-block-search__input {
     flex: 1;
     min-width: 0;
     box-sizing: border-box;
     padding: 0.6rem 0.75rem;
     font: inherit;
     color: var(--gold);
     background: var(--bg);
     border: 1px solid rgba(234, 207, 0, 0.25);
     border-radius: 4px;
 }

 .wp-block-search .wp-block-search__input:focus {
     outline: none;
     border-color: var(--gold);
     box-shadow: 0 0 0 2px rgba(234, 207, 0, 0.2);
 }

 .wp-block-search .wp-block-search__button {
     margin: 0;
     padding: 0.6rem 1rem;
     font: inherit;
     color: #000;
     background: var(--gold);
     border: 1px solid var(--gold);
     border-radius: 4px;
     cursor: pointer;
 }

 .wp-block-search .wp-block-search__button:hover,
 .wp-block-search .wp-block-search__button:focus {
     color: var(--gold);
     background: var(--bg);
 }

 /* Previous / next post links */
 .post-navigation {
     margin: 2rem 0;
     padding: 1rem 0;
     border-top: 1px solid var(--border);
     border-bottom: 1px solid var(--border);
 }

 .post-navigation .nav-links,
 .comment-navigation .nav-links {
     display: flex;
     justify-content: space-between;
     gap: 1rem;
 }

 .post-navigation .nav-next,
 .comment-navigation .nav-next {
     margin-left: auto;
     text-align: right;
 }

 .post-navigation a,
 .comment-navigation a {
     color: var(--gold);
     text-decoration: none;
 }

 .post-navigation a:hover,
 .post-navigation a:focus,
 .comment-navigation a:hover,
 .comment-navigation a:focus {
     color: var(--gold-accent);
 }

 /* Numbered pagination */
 .pagination {
     margin: 2rem 0 0;
 }

 .pagination .nav-links {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .page-numbers {
     display: inline-block;
     min-width: 2.25rem;
     padding: 0.4rem 0.75rem;
     text-align: center;
     color: var(--gold);
     text-decoration: none;
     background: var(--panel);
     border: 1px solid var(--border);
     border-radius: 4px;
     transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
 }

 a.page-numbers:hover,
 a.page-numbers:focus {
     background: rgba(234, 207, 0, 0.08);
     border-color: var(--gold);
     color: var(--gold-accent);
 }

 .page-numbers.current {
     background: var(--gold);
     border-color: var(--gold);
     color: var(--bg);
     font-weight: 700;
 }

 .page-numbers.dots {
     background: transparent;
     border-color: transparent;
 }

 /* Comments */
 .comments-area {
     margin: 2rem 0;
 }

 .comments-title,
 .comment-reply-title {
     margin: 0 0 1rem;
     font-size: 1.35rem;
     color: var(--gold);
 }

 .comment-list,
 .comment-list .children {
     list-style: none;
     margin: 0;
     padding: 0;
 }

 .comment-list .children {
     margin-left: 1.5rem;
     padding-left: 1rem;
     border-left: 1px solid var(--border);
 }

 .comment-body {
     background: #070707;
     border: 1px solid rgba(234, 207, 0, 0.06);
     padding: 1rem;
     margin-bottom: 1rem;
     border-radius: 4px;
 }

 .bypostauthor > .comment-body {
     border-color: rgba(234, 207, 0, 0.3);
 }

 .comment-author {
     display: flex;
     align-items: center;
     gap: 0.75rem;
 }

 .comment-author .avatar {
     border-radius: 50%;
     border: 1px solid var(--border);
 }

 .comment-author .fn,
 .comment-author .fn a {
     font-style: normal;
     font-weight: 700;
     color: var(--gold);
     text-decoration: none;
 }

 .comment-author .says {
     display: none;
 }

 .comment-meta {
     margin: 0.25rem 0 0.75rem;
     font-size: 0.85rem;
 }

 .comment-meta a {
     color: var(--muted);
     text-decoration: none;
 }

 .comment-awaiting-moderation {
     color: var(--muted);
     font-style: italic;
 }

 .comment-body p {
     line-height: 1.6;
 }

 .comment-body .reply a {
     font-size: 0.85rem;
     color: var(--gold-accent);
     text-decoration: none;
 }

 .no-comments {
     color: var(--muted);
 }

 /* Comment form */
 .comment-respond {
     margin-top: 1.5rem;
     padding: 1rem;
     background: var(--panel);
     border: 1px solid var(--border);
     border-radius: 4px;
 }

 .comment-list .comment-respond {
     margin-bottom: 1rem;
 }

 .comment-reply-title small {
     margin-left: 0.5rem;
     font-size: 0.85rem;
 }

 .comment-notes,
 .logged-in-as,
 .comment-form-cookies-consent label {
     color: var(--muted);
     font-size: 0.9rem;
 }

 .comment-form label {
     display: block;
     margin-bottom: 0.25rem;
 }

 .comment-form-cookies-consent label {
     display: inline;
 }

 .comment-form input[type="text"],
 .comment-form input[type="email"],
 .comment-form input[type="url"],
 .comment-form textarea {
     box-sizing: border-box;
     width: 100%;
     padding: 0.6rem 0.75rem;
     font: inherit;
     color: var(--gold);
     background: var(--bg);
     border: 1px solid rgba(234, 207, 0, 0.25);
     border-radius: 4px;
 }

 .comment-form input[type="text"]:focus,
 .comment-form input[type="email"]:focus,
 .comment-form input[type="url"]:focus,
 .comment-form textarea:focus {
     outline: none;
     border-color: var(--gold);
     box-shadow: 0 0 0 2px rgba(234, 207, 0, 0.2);
 }

 .comment-form .required {
     color: var(--gold-accent);
 }

 .comment-form .submit {
     padding: 0.6rem 1.25rem;
     font: inherit;
     font-weight: 700;
     color: var(--bg);
     background: var(--gold);
     border: 1px solid var(--gold);
     border-radius: 4px;
     cursor: pointer;
     transition: background 120ms ease;
 }

 .comment-form .submit:hover,
 .comment-form .submit:focus {
     background: var(--gold-accent);
     border-color: var(--gold-accent);
 }

 @media (max-width: 600px) {
     .entry-title {
         font-size: 1.6rem;
     }

     .post-navigation .nav-links,
     .comment-navigation .nav-links {
         flex-direction: column;
     }

     .post-navigation .nav-next,
     .comment-navigation .nav-next {
         text-align: left;
     }

     .comment-list .children {
         margin-left: 0.5rem;
     }
 }