/*
Theme Name: Gotham Nights
Description: Custom theme for Gotham Nights - Norway's oldest goth club
Version: 1.0
*/

/* =============================================
   RESET & BASE
   ============================================= */
html, body, form, fieldset { margin: 0; padding: 0; }

body {
    background: #F5F5F5 url(images/wrapper-bg.jpg) no-repeat top center fixed;
    color: #454545;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

a { color: #BB2222; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: #BB2222; }
a img { border: none; }

h1, h2, h3, h4, h5, h6 { line-height: normal; color: #353535; margin: 0.5em 0; padding: 0; }
h1 { font-size: 200%; }
h2 { font-size: 150%; }
h3 { font-size: 125%; }

p, pre, blockquote, ul, ol { margin: 0.7em 0; padding: 0; }

ul { list-style: none; }
ul li { background: url(images/bullet.gif) no-repeat 0 6px; padding-left: 14px; }
ol li { margin-left: 35px; }

img { max-width: 100%; height: auto; }
hr { border: none; border-top: 1px solid #D5D5D5; margin: 1em 0; }

/* =============================================
   WRAPPER & HEADER
   ============================================= */
#gn-wrapper {
    min-height: 100vh;
}

/* Compensate for WordPress admin bar pushing the page down */
.admin-bar body {
    background-position: center 32px;
}

#gn-header {
    height: 180px;
    position: relative;
}

#gn-bat-logo {
    position: absolute;
    left: calc(50% - 490px);
    top: 5px;
    display: block;
    opacity: 0.0;
    transition: opacity 0.2s;
}

#gn-bat-logo:hover {
    opacity: 0.3;
}

#gn-container {
    max-width: 870px;
    margin: -110px auto 0;
    padding: 0 10px;
    position: relative;
}

/* =============================================
   SIDEBAR LOGO
   ============================================= */
#gn-logo {
    text-align: center;
    padding: 8px 0;
    margin-bottom: 6px;
}

#gn-logo img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* =============================================
   NAVIGATION
   ============================================= */
#gn-mainnav {
    background: #000000;
    margin-left: 165px;
    margin-bottom: 10px;
}

#gn-mainnav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

#gn-mainnav ul li { background: none; padding: 0; }

#gn-mainnav ul li a {
    display: block;
    color: #FFFFFF;
    padding: 9px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#gn-mainnav ul li a:hover,
#gn-mainnav ul li.current-menu-item > a,
#gn-mainnav ul li.current-menu-ancestor > a {
    background: #333333;
    text-decoration: none;
    color: #FFFFFF;
}

/* Dropdown sub-menus */
#gn-mainnav ul li { position: relative; }

#gn-mainnav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222222;
    min-width: 180px;
    z-index: 1000;
    flex-direction: column;
    flex-wrap: nowrap;
}

#gn-mainnav ul li:hover > ul { display: flex; }

#gn-mainnav ul ul li a {
    padding: 7px 14px;
    white-space: nowrap;
    border-top: 1px solid #333333;
}

#gn-mainnav ul ul li a:hover { background: #333333; }

/* Left sidebar collapsible nav */
#gn-col1 .widget .sub-menu {
    display: none;
    margin: 0;
    padding: 0;
}

#gn-col1 .widget li.expanded > .sub-menu {
    display: block;
}

#gn-col1 .widget .sub-menu li {
    padding-left: 20px;
    background: none;
    border-bottom: 1px solid #EBEBEB;
    font-size: 11px;
}

#gn-col1 .widget .sub-menu li:last-child {
    border-bottom: none;
}

.menu-toggle {
    float: right;
    cursor: pointer;
    color: #858585;
    font-size: 13px;
    padding: 0 4px;
    line-height: inherit;
    user-select: none;
}

.menu-toggle:hover { color: #BB2222; }

/* Breadcrumb */
#gn-pathway {
    font-size: 92%;
    color: #858585;
    margin-bottom: 8px;
    padding: 3px 0;
    border-bottom: 1px solid #D5D5D5;
}
#gn-pathway a { color: #858585; }
#gn-pathway a:hover { color: #BB2222; }

/* =============================================
   THREE-COLUMN LAYOUT
   ============================================= */
#gn-mainbody {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Left sidebar */
#gn-col1 {
    width: 155px;
    flex-shrink: 0;
    font-size: 92%;
}

/* Centre content */
#gn-content {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
}

/* Right sidebar */
#gn-col2 {
    width: 231px;
    flex-shrink: 0;
    font-size: 92%;
}

/* =============================================
   WIDGETS / MODULE BOXES
   ============================================= */
.widget {
    background: #F5F5F5;
    margin-bottom: 10px;
    border: 1px solid #D5D5D5;
}

.widget-title {
    background: #BB2222;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: bold;
    padding: 7px 8px;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#gn-col1 .widget-title { background: #000000; }
#gn-col2 .widget-title { background: #000000; }

.widget ul { margin: 0; padding: 4px 0; }
.widget ul li {
    background: none;
    padding: 3px 8px;
    border-bottom: 1px solid #EBEBEB;
    font-size: 11px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #454545; }
.widget ul li a:hover { color: #BB2222; text-decoration: none; }

.widget p { padding: 6px 8px; margin: 0; font-size: 11px; }

/* Search widget */
.widget_search input[type="search"] {
    width: 100%;
    background: #F8F8F6;
    border: 1px solid #CCCCCC;
    color: #555;
    padding: 4px 6px;
    font-size: 11px;
    box-sizing: border-box;
}

/* =============================================
   CUSTOM RIGHT-COLUMN WIDGETS
   ============================================= */

/* Upcoming Events */
#gn-col2 .widget_gn_upcoming_events ul li .date {
    font-size: 10px;
    color: #858585;
}

/* Video embed */
.gn-video-embed { padding: 6px 8px; }
.gn-video-embed iframe,
.gn-video-embed video { width: 100%; height: auto; display: block; }
.gn-placeholder { padding: 6px 8px; font-size: 11px; color: #858585; }

/* Banner widget */
.gn-banner-link { display: block; }
.gn-banner-link img { width: 100%; height: auto; display: block; }

/* Contact / About tabs */
.gn-tabs { }

.gn-tab-nav {
    display: flex;
    border-bottom: 2px solid #000000;
}

.gn-tab-btn {
    flex: 1;
    background: #E3E3E3;
    border: none;
    border-right: 1px solid #CCCCCC;
    padding: 6px 0;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: #454545;
    font-family: inherit;
}

.gn-tab-btn:last-child { border-right: none; }

.gn-tab-btn.active {
    background: #000000;
    color: #FFFFFF;
}

.gn-tab-panel {
    padding: 6px 8px;
    font-size: 11px;
}

.gn-tab-panel p { margin: 0.4em 0; }

.gn-tab-panel .social-links { gap: 8px; }

/* =============================================
   ARTICLE GRID (front page / archive)
   ============================================= */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.post-grid .post:first-child {
    grid-column: 1 / -1;
}

.post {
    background: #FFFFFF url(images/content-bg.jpg) repeat;
    border: 1px solid #D5D5D5;
    overflow: hidden;
}

.post-thumbnail {
    display: block;
    overflow: hidden;
    max-height: 200px;
}

.post-grid .post:first-child .post-thumbnail { max-height: 280px; }

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.post-thumbnail:hover img { opacity: 0.9; }

.post-body { padding: 10px 12px; }

.entry-title {
    font-size: 115%;
    margin: 0 0 4px;
    color: #353535;
}
.entry-title a { color: #353535; }
.entry-title a:hover { color: #BB2222; text-decoration: none; }

.entry-meta {
    font-size: 11px;
    color: #858585;
    margin-bottom: 6px;
}
.entry-meta a { color: #858585; }

.entry-excerpt { font-size: 92%; margin: 0 0 6px; }

.read-more {
    font-size: 11px;
    color: #858585;
    display: inline-block;
    margin-top: 4px;
}
.read-more:hover { color: #BB2222; text-decoration: none; }

/* Archive list */
.archive-header {
    background: #FFFFFF url(images/content-bg.jpg) repeat;
    border: 1px solid #D5D5D5;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.archive-title {
    font-size: 140%;
    margin: 0;
    color: #353535;
}

.post-list { margin-bottom: 12px; }

.post-list-item {
    background: #FFFFFF url(images/content-bg.jpg) repeat;
    border: 1px solid #D5D5D5;
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.post-list-thumb {
    flex-shrink: 0;
    display: block;
}

.post-list-thumb img {
    width: 110px;
    height: auto;
    display: block;
}

/* Side-by-side secondary posts */
.post-list-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.post-list-row .post-list-secondary {
    flex: 1;
    flex-direction: column;
    margin-bottom: 0;
    min-width: 0;
    background: #FFFFFF url(images/content-bg.jpg) repeat;
}

.post-list-row .post-list-secondary .post-list-thumb {
    width: 100%;
}

.post-list-row .post-list-secondary .post-list-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Featured first post */
.post-list-featured {
    flex-direction: column;
    background: #FFFFFF url(images/content-bg.jpg) repeat;
}

.post-list-featured .post-list-thumb {
    width: 100%;
}

.post-list-featured .post-list-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.post-list-featured .entry-title {
    font-size: 150%;
}

.post-list-body {
    flex: 1;
    min-width: 0;
}

.post-list-body .entry-title { font-size: 115%; margin: 0 0 4px; }
.post-list-body .entry-meta  { margin-bottom: 6px; }
.post-list-body .entry-excerpt { margin-bottom: 6px; }

/* Single post */
article.single-post {
    background: #FFFFFF url(images/content-bg.jpg) repeat;
    border: 1px solid #D5D5D5;
    margin-bottom: 15px;
    overflow: hidden;
}

article.single-post .entry-thumbnail { padding: 14px 16px 0; }
article.single-post .entry-thumbnail img { width: 100%; height: auto; display: block; }
article.single-post .post-body { padding: 14px 16px; }
article.single-post .entry-title { font-size: 160%; margin-bottom: 6px; }
article.single-post .entry-meta { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #EBEBEB; }
article.single-post .entry-content { margin-bottom: 10px; }
article.single-post .entry-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #EBEBEB;
    font-size: 11px;
    color: #858585;
}

/* Pagination */
.pagination { margin: 10px 0; font-size: 92%; border-top: 1px solid #D5D5D5; padding-top: 8px; }
.pagination .page-numbers {
    background: #E3E3E3;
    border: 1px solid #CCCCCC;
    color: #454545;
    padding: 2px 7px;
    margin: 0 1px;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #BB2222;
    border-color: #BB2222;
    color: #FFFFFF;
    text-decoration: none;
}

/* Post navigation */
.post-navigation {
    margin: 12px 0;
    font-size: 92%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #D5D5D5;
    padding-top: 8px;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
    background: #FFFFFF url(images/content-bg.jpg) repeat;
    border: 1px solid #D5D5D5;
    padding: 15px 18px;
    margin-top: 12px;
}
.comments-title, .comment-reply-title { color: #353535; border-bottom: 1px solid #D5D5D5; padding-bottom: 6px; margin-bottom: 12px; }
.comment-body { border-bottom: 1px solid #EBEBEB; padding-bottom: 12px; margin-bottom: 12px; }
.comment-author .fn { font-weight: bold; }
.comment-meta { font-size: 11px; color: #858585; }

input[type="text"], input[type="email"], textarea {
    background: #F8F8F6;
    border: 1px solid #CCCCCC;
    color: #555;
    padding: 5px 7px;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    box-sizing: border-box;
}
input[type="submit"] {
    background: #BB2222;
    border: none;
    color: #FFF;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
input[type="submit"]:hover { background: #991818; }

/* =============================================
   BOTTOM STRIP
   ============================================= */
#gn-bottom {
    display: flex;
    gap: 20px;
    border-top: 2px solid #D5D5D5;
    margin-top: 15px;
    padding-top: 12px;
}

#gn-bottom .widget { border: none; background: none; }
#gn-bottom .widget-title { background: none; color: #353535; font-size: 12px; border-bottom: 1px solid #D5D5D5; padding: 0 0 4px; margin-bottom: 6px; letter-spacing: 0; }

.latest-articles-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.latest-article-item { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.latest-article-item img { width: 50px; height: 50px; object-fit: cover; flex-shrink: 0; }
.latest-article-item .title { font-size: 11px; }
.latest-article-item .title a { color: #454545; }
.latest-article-item .title a:hover { color: #BB2222; }
.latest-article-item .date { font-size: 10px; color: #858585; }

/* Social media */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.social-links a { color: #454545; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.social-links a:hover { color: #BB2222; text-decoration: none; }

/* =============================================
   FOOTER
   ============================================= */
#gn-footer {
    background: #000000;
    color: #999999;
    padding: 10px 0;
    font-size: 11px;
    text-align: center;
    margin-top: 15px;
    clear: both;
}

#gn-footer a { color: #999999; }
#gn-footer a:hover { color: #FFFFFF; text-decoration: none; }

#gn-footer-nav { margin-bottom: 6px; }
#gn-footer-nav a { margin: 0 8px; text-transform: uppercase; letter-spacing: 1px; }

/* =============================================
   PHOTO GALLERIES PAGE
   ============================================= */
.photo-galleries-page h1.entry-title { margin-bottom: 1em; }

.gallery-section { margin-bottom: 2em; }

.gallery-section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
    margin-bottom: 10px;
}

.gallery-count {
    font-size: 11px;
    font-weight: normal;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   PHOTO GALLERIES PAGE
   ============================================= */
.photo-galleries-page h1.entry-title { margin-bottom: 0.8em; }
.photo-galleries-page h1.entry-title .gallery-count {
    font-size: 12px; font-weight: normal; color: #888;
    text-transform: uppercase; letter-spacing: 1px; margin-left: 10px;
}

.gallery-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.gallery-card {
    display: block;
    text-decoration: none;
    background: #1a1a1a;
    color: #fff;
    border-radius: 3px;
    overflow: hidden;
}
.gallery-card:hover { opacity: 0.85; text-decoration: none; }

.gallery-card img,
.gallery-card-noimg {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #333;
}

.gallery-card-label {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gallery-card-title { font-size: 12px; font-weight: bold; line-height: 1.3; }
.gallery-card-count { font-size: 10px; color: #aaa; }

.gallery-back { margin-bottom: 0.5em; font-size: 12px; }

/* =============================================
   SINGLE EVENT PAGE
   ============================================= */
.events-single #gn-content,
.page-template-page-events-archive #gn-content,
.post-type-archive-tribe_events #gn-content {
    background: #FFFFFF url(images/content-bg.jpg) repeat;
    border: 1px solid #D5D5D5;
}

/* =============================================
   EVENTS ARCHIVE
   ============================================= */
.events-archive h1.entry-title { margin-bottom: 1em; }

.event-list { display: flex; flex-direction: column; gap: 0; }

.event-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}
.event-item:first-child { border-top: 1px solid #ddd; }

.event-date-block {
    min-width: 52px;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    padding: 6px 8px;
    border-radius: 3px;
    line-height: 1.2;
    align-self: flex-start;
}
.event-day   { display: block; font-size: 22px; font-weight: bold; }
.event-month { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

.event-details { flex: 1; }
.event-thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 3px; display: block; }
.event-details h2.event-title { font-size: 115%; margin: 0 0 4px; }
.event-details h2.event-title a { color: #1a1a1a; }
.event-details h2.event-title a:hover { color: #BB2222; }
.event-meta  { font-size: 11px; color: #777; margin-bottom: 5px; }
.event-excerpt p { margin: 0; font-size: 12px; color: #555; }

/* =============================================
   KEY CONCEPTS — RECENT EVENTS
   ============================================= */
.key-concepts-events {
    background: #FFFFFF url(images/content-bg.jpg) repeat;
    border: 1px solid #D5D5D5;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.key-concepts-events-title {
    font-size: 125%;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #D5D5D5;
}

.key-concepts-events-list {
    margin: 0;
    padding: 0;
}

.key-concepts-events-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #EBEBEB;
    background: none;
}

.key-concepts-events-list li:last-child { border-bottom: none; }

.key-concepts-events-list li a { color: #454545; font-size: 12px; }
.key-concepts-events-list li a:hover { color: #BB2222; text-decoration: none; }

.key-concepts-events-list .date {
    font-size: 11px;
    color: #858585;
    flex-shrink: 0;
    margin-left: 10px;
}

.key-concepts-events-more { margin: 8px 0 0; font-size: 11px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
    #gn-mainnav { margin-left: 0; }
    #gn-mainbody { flex-direction: column; }
    #gn-col1, #gn-col2 { width: 100%; }
    .post-grid { grid-template-columns: 1fr; }
    .post-grid .post:first-child { grid-column: auto; }
    #gn-bottom { flex-direction: column; }
}
