/*
Theme Name: DT2026 Clubhouse
Theme URI: https://www.dreamtheater.co.il
Description: Dark clubhouse theme for the Israeli Dream Theater fan club — YtseJammers Israel.
Author: Idan Adar
Author URI: https://adar.me
Version: 2026.1.10
Text Domain: dt2026
*/

@font-face {
    font-family: Alef-Regular;
    src: url('assets/fonts/Alef-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Alef-Bold;
    src: url('assets/fonts/Alef-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #050506;
    --surface: #121214;
    --card: #1c1c22;
    --card-hover: #26262e;
    --gold: #c4a45a;
    --gold-dim: #8a7340;
    --text: #e8e4d8;
    --muted: #9a9488;
    --line: #2c2c34;
    --nav: #1a1a20;
    --ink: #0a0a0c;
    --strip: #16161c;
    --foot: #0a0a0c;
    --gutter: 1.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
    direction: rtl;
    font-family: Alef-Regular, Alef, Arial, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: var(--bg);
}

strong, b, h1, h2, h3, h4 {
    font-family: Alef-Bold, Alef-Regular, Arial, sans-serif;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #e0c888; text-decoration: underline; }
img { max-width: 100%; height: auto; }

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

#wrapper {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--surface);
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.8);
}

#header, #header h1, #header a {
    margin: 0; padding: 0; line-height: 0; font-size: 0; border: 0; background: none;
}
#header img {
    display: block; width: 100%; height: auto; margin: 0; padding: 0; border: 0; vertical-align: bottom;
}

#menubar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0 var(--gutter);
    min-height: 48px;
    background: linear-gradient(180deg, #2a2a32 0%, #16161c 100%);
    border-bottom: 1px solid var(--gold-dim);
}
#menu {
    display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
    font-family: Alef-Bold, Arial, sans-serif; font-size: 1.05rem;
}
#menu li { list-style: none; margin: 0; padding: 0; }
#menu a {
    display: block; color: var(--text); text-decoration: none; padding: 0.7rem 0.55rem; white-space: nowrap;
}
#menu a:hover,
#menu .current_page_item > a,
#menu .current_page_parent > a,
#menu .current_page_ancestor > a {
    color: var(--gold); text-decoration: none;
}

#searchform { display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.35rem 0; }
#searchform input[type="text"] {
    background: var(--ink); border: 1px solid var(--gold-dim); color: var(--text);
    font-family: inherit; font-size: 0.9rem; padding: 0.28rem 0.5rem; width: 140px; outline: none;
}
#searchform input[type="text"]:focus { border-color: var(--gold); }
#searchform input[type="submit"] {
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    font-family: inherit; font-size: 0.85rem; padding: 0.28rem 0.65rem; cursor: pointer;
}
#searchform input[type="submit"]:hover { background: var(--gold); color: var(--ink); }

#extras {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 0.6rem 1rem; margin: 0; padding: 0.55rem var(--gutter);
    background: var(--strip); border-bottom: 1px solid var(--line);
}
#banners-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 6px; }
#banners-list li { list-style: none; margin: 0; padding: 0; }
.menubanner { display: block; margin: 0; padding: 0; border: 1px solid var(--gold-dim); width: 127px; height: 22px; }
.tour-link { margin: 0; padding: 0; font-size: 0.9rem; }
.tour-link a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.tour-link a:hover { color: #e0c888; border-bottom-color: #e0c888; }

#content {
    padding: 1.15rem var(--gutter) 2.25rem;
    margin: 0;
    background: var(--surface);
    color: var(--text);
}
#content p a, .entry a, .postmetadata a, .results-list a, .navigation a { color: var(--gold); text-decoration: underline; }
#content p a:hover, .entry a:hover, .postmetadata a:hover, .results-list a:hover, .navigation a:hover { text-decoration: none; }

.more-news { padding: 1rem 0 0.5rem; }
.section-title, h2.pagetitle {
    font-size: 1.55rem; color: var(--gold); margin: 0.85rem 0 1rem;
    padding: 0 0 0.4rem; border-bottom: 1px solid var(--gold-dim); line-height: 1.3;
}
h2.pagetitle a { color: var(--gold); text-decoration: none; }
.post h2.pagetitle { margin: 0 0 0.55rem; padding: 0 0 0.35rem; }

.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.post-tile { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.1rem 1.15rem; margin: 0; }
.post-tile h3 { margin: 0 0 0.4rem; padding: 0; font-size: 1.15rem; line-height: 1.35; }
.post-tile h3 a { color: var(--text); text-decoration: none; }
.post-tile h3 a:hover { color: var(--gold); }
.post-tile .excerpt { color: var(--muted); font-size: 0.95rem; }
.post-tile .excerpt p { margin: 0 0 0.6rem; }
.read-more { font-size: 0.85rem; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); }
.read-more:hover { color: #e0c888; }
.no-posts { padding: 1rem 0; color: var(--muted); }

.post {
    margin: 0 0 1.25rem; padding: 1.25rem 1.45rem 1.35rem;
    text-align: justify; background: var(--card); border: 1px solid var(--line);
}
.post p { font-size: 1rem; }
.post ul { line-height: 2; }
.entry, .entry-index { text-align: justify; }
.entry p { margin-top: 0; }
.entry img, .post img, .entry-index img { max-width: 100%; height: auto; }

.small { font-family: Arial, Helvetica, sans-serif; font-size: 0.8em; line-height: 1.5; color: var(--muted); margin: 0 0 0.6rem; }
.postmetadata { margin: 1rem 0 0; padding: 0.6rem 0 0; font-size: 0.85em; color: var(--muted); border-top: 1px solid var(--line); }

.list {
    margin: 10px 0; padding: 0 30px 5px 50px; list-style-type: square; width: 330px;
    border: 1px solid var(--line); font-size: 85%; background-color: var(--card);
}
.community-list { margin: 10px 0; padding: 0 30px 5px 0; list-style-type: square; }
.list li, .community-list { line-height: 1.7; }
.results-list { margin: 10px 0 15px; padding: 0 1.5rem 15px 0; list-style-type: square; }

.navigation { display: block; text-align: center; padding: 1rem 0; margin: 1rem 0; clear: both; }
.navigation a, .navigation span {
    display: inline-block; padding: 0.2rem 0.55rem; border: 1px solid var(--line); color: var(--gold); text-decoration: none;
}
.navigation .current { border-color: var(--gold); color: var(--ink); background: var(--gold); }

.alignright { float: right; }
.alignleft { float: left; }
.aligncenter, div.aligncenter { display: block; margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: Alef-Bold, Arial, Verdana, sans-serif; margin: 0; padding: 0; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }
h3, h3 a { color: var(--text); text-decoration: none; }
h3 a:hover { color: var(--gold); }

#comments {
    margin: 0 0 1.5rem;
    padding: 0;
    background: none;
    border: 0;
}
#respond {
    margin: 0;
    padding: 1.15rem 1.4rem 1.3rem;
    background: var(--card);
    border: 1px solid var(--line);
}
#reply-title, .comment-reply-title, h3.comments {
    margin: 1.25rem 0 0.75rem;
    padding: 0;
    color: var(--gold);
}
.commentlist { margin: 0 0 1rem; padding: 5px; background-color: var(--surface); list-style: none; }
.commentlist li { padding: 8px; list-style: none; border-bottom: 1px solid var(--line); font-size: 90%; }
#commentform { margin: 0; overflow: hidden; }
#commentform p { margin: 0.55rem 0; }
#commentform input, #commentform textarea, select {
    background: var(--surface); border: 1px solid var(--gold-dim); color: var(--text); font-family: inherit;
}
#commentform input { width: 170px; max-width: 100%; padding: 4px; }
#commentform textarea { width: 100%; display: block; padding: 8px; margin: 0; }
#commentform .form-submit {
    margin: 0.7rem 0 0;
    text-align: start;
    overflow: hidden;
}
#commentform #submit {
    float: none;
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0.4rem 1.1rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
}

.wp-caption, .wp-caption-gallery {
    border: 1px solid var(--line); text-align: center; background-color: var(--card);
    margin-right: 15px; margin-left: 15px; padding-top: 4px; margin-bottom: 15px; max-width: 100%;
}
.wp-caption p.wp-caption-text { font-size: 11px; padding: 0 4px 6px; margin: 3px 0 0; color: var(--muted); }
.wp-caption.alignleft { width: 125px !important; float: right; margin: 0 0 1rem 1rem; }
.wp-caption.alignleft img { width: 125px; height: 142px; object-fit: cover; display: block; }


.book-covers {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 0.85rem;
    margin: 0 0 1.5rem;
    justify-content: flex-start;
    clear: both;
}
.book-covers .wp-caption,
.book-covers .wp-caption.alignnone,
.book-covers .wp-caption.alignright,
.book-covers .wp-caption.alignleft {
    float: none !important;
    width: 148px !important;
    margin: 0;
    background: var(--bg);
}
.book-covers .wp-caption img {
    width: 148px;
    height: 148px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #000;
}
.parent-pageid-942 .book-covers .wp-caption img {
    height: 198px;
    object-fit: cover;
}
.dt-bio-current p { margin: 0 0 1rem; }
.book-covers .wp-caption-text {
    font-size: 11px;
    line-height: 1.35;
    padding: 0.35rem 0.3rem 0.5rem;
    color: var(--muted);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    margin: 0 0 1.5rem;
    clear: both;
}
.staff-card {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 1rem 0.9rem 1.15rem;
    text-align: center;
}
.staff-card .wp-caption,
.staff-card .wp-caption.alignnone,
.staff-card .wp-caption.alignleft {
    float: none !important;
    width: auto !important;
    margin: 0 auto 0.7rem;
    border: 0;
    background: none;
}
.staff-card img {
    width: 160px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto;
}
.staff-card .wp-caption-text { display: none; }
.staff-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.45rem;
    padding: 0;
}
.staff-card p {
    text-align: right;
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
}

hr { border: 0; height: 1px; background: linear-gradient(to left, transparent, var(--gold-dim), transparent); }

#footer {
    background: var(--foot); color: var(--muted);
    margin: 0; padding: 1.1rem var(--gutter) 1.4rem; text-align: center;
}
.footer-mark { width: 72px; height: 18px; margin: 0 auto 0.75rem; border-top: 1px solid var(--gold-dim); position: relative; }
.footer-mark::after {
    content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px;
    margin-left: -4.5px; border: 1px solid var(--gold); transform: rotate(45deg); background: var(--foot);
}
.footer-text { color: var(--muted); font-size: 80%; line-height: 1.7; }
.footer-text a { color: var(--gold); text-decoration: underline; }
.footer-text a:hover { color: #e0c888; text-decoration: none; }

@media (max-width: 700px) {
    :root { --gutter: 1rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .staff-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    #menubar { flex-direction: column; align-items: stretch; padding: 0.35rem var(--gutter) 0.5rem; }
    #menu, #searchform { justify-content: center; }
    #searchform input[type="text"] { width: 55%; }
}
@media (max-width: 560px) {
    :root { --gutter: 0.85rem; }
    #extras { justify-content: center; text-align: center; }
    #banners-list { justify-content: center; }
}
