/*
Theme Name: wusweb Bootstrap
Theme URI: https://www.wolfgangsphotos.de
Author: Andreas Neumeier
Author URI: https://www.wolfgangsphotos.de
Description: A Bootstrap-based theme for Wolfgang's photo blog, featuring multilingual support and a responsive layout.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wolfgangsphotos
*/

/*
 * Bootstrap CSS is loaded via wp_enqueue_style() in functions.php.
 * The @import has been removed to avoid double-loading.
 */

/* Override Bootstrap 5 CSS variables for dark theme */
:root {
    --bs-body-bg:          #353535;
    --bs-body-color:       #ffffff;
    --bs-link-color:       #0088cc;
    --bs-link-hover-color: #005580;
    --bs-secondary-bg:     #353535;
    --bs-tertiary-bg:      #2a2a2a;
    --bs-font-sans-serif:  "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

/* Standardsettings */
html {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #353535 !important;
}
body {
    margin: 0;
    padding-top: 20px;
    font-size: 18px;
    line-height: 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #ffffff !important;
    background-color: #353535 !important;
}
u {
    text-decoration: none;
    border-bottom: 2px solid white;
}
a {
    color: #0088cc;
    text-decoration: none;
}
a:hover,
a:focus {
    color: #005580;
    text-decoration: none;
}

/* Überschriebenes */
.container {
    margin-right: auto;
    margin-left: auto;
    color: #FFFFFF;
    background-color: #353535;
    margin-bottom: 20px;
    margin-top:20px;
    font-size: 18px;
    font-weight: 200;
    line-height: 30px;
}
.container-nav {
    margin-top: 0;
    margin-bottom: 0;
    background-color: #1b1b1b;
    padding-left: 0;
    padding-right: 0;
}
.container-footer {
    margin-top: 0;
    margin-bottom: 0;
    background-color: #1b1b1b;
    padding-left: 0;
    padding-right: 0;
    font-size: 14px;
}
/* -----------------------------------------------
   Navbar – header & footer
----------------------------------------------- */
.navbar {
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    /* BS5.3 variables – set on the navbar element so all children inherit */
    --bs-navbar-color:                #ffffff;
    --bs-navbar-hover-color:          #cccccc;
    --bs-navbar-active-color:         #ffffff;
    --bs-navbar-disabled-color:       rgba(255, 255, 255, 0.4);
    --bs-navbar-brand-color:          #ffffff;
    --bs-navbar-brand-hover-color:    #cccccc;
    --bs-navbar-nav-link-padding-x:   15px; /* BS5.3 horizontal padding for navbar links */
    --bs-nav-link-padding-y:          10px;
}
.navbar.bg-dark {
    background-color: #1b1b1b !important;
    border-color: #1b1b1b;
}
.navbar-collapse {
    padding-left: 0;
    padding-right: 0;
}

/* Nav links – covers .nav-link (added by filter) AND plain <a> tags as fallback */
.navbar .navbar-nav .nav-link,
.navbar .navbar-nav li > a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #ffffff !important;
    padding: 10px 15px !important;
    text-decoration: none;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav li > a:hover,
.navbar .navbar-nav li > a:focus {
    color: #cccccc !important;
    text-decoration: none;
}
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.current-menu-item,
.navbar .navbar-nav li.current-menu-item > a,
.navbar .navbar-nav li.current_page_item > a {
    color: #ffffff !important;
}

/* Dropdown inside navbar */
.navbar .dropdown-menu {
    background-color: #1b1b1b;
    border-color: #333;
}
.navbar .dropdown-item {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #2a2a2a;
    color: #cccccc;
}
.navbar .dropdown-item.active {
    background-color: #333333;
    color: #ffffff;
}

/* Mobile toggler */
button.navbar-toggler {
    margin: 4px 15px;
}

/* Footer navbar – slightly smaller padding, always one line */
footer .navbar {
    --bs-navbar-nav-link-padding-x: 15px;
    --bs-nav-link-padding-y: 8px;
    font-size: 13px;
}
footer .container-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.article-preview {
    border-bottom: 2px solid #a6a6a6;
    margin-bottom: 40px;
}
.article-preview-body {
    min-height: 180px;
}
.article-preview-body-thumbnail {
    float: left;
    margin-right: 20px;
}
.article-preview-head {
    display:inline-block;
    width: 100%;

}
.article-preview-head-title {
    display:inline-block;
}
.article-preview-head-date {
    display:inline-block;
    float: right;
    position: relative; 
    bottom: -10px;
}
.article-preview-footer {
    width: 100%;

}

.copyright {
    color: #4d4d4d;
    padding: 10px 15px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10px;
    line-height: 20px;
}

form#searchform {
    margin: 0;
    padding: 5px 10px 5px 5px; /* small gap above/below inside navbar */
    display: flex;
    align-self: stretch;
    align-items: stretch;
}

/* li must also stretch so the form can fill full navbar height */
.nav-item-search {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

form#searchform input#s {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    height: auto; /* flexbox controls the height */
    min-width: 160px;
}

form#searchform input#s::placeholder {
    color: #999999;
    opacity: 1;
}

form#searchform input#s:focus {
    background-color: #ffffff;
    color: #333333;
    border-color: #0088cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.25);
    outline: none;
}

/* Language flag icons */
img.lang-flag {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
    margin-bottom: 2px;
}

/* Responsives */
@media (max-width: 991px) {
    .navbar-nav {
        max-width: 98%;
    }
    .me-auto {
        padding-left: 10px;
    }
    .ms-auto {
        padding-left: 10px;
    }
    .navbar-collapsed-search {
        margin-left: 0;
    }
    .copyright {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: -10px;
    }
    li.copyright {
        margin-top: -15px;
    }
}

.comment {
    min-height: 80px;
    border-bottom: 2px solid #a6a6a6;
    margin-bottom: 10px;
}
.comment-body {
    min-height: 100px;
    margin-bottom: 10px;
}
.comment-body-thumbnail {
    float: left;
    margin-right: 20px;
}
.comment-head {
    display:inline-block;
    width: 100%;
    margin-bottom: 5px;
}
.comment-head-title {
    display:inline-block;
}
.comment-head-date {
    display:inline-block;
    float: right;
    position: relative; 
    bottom: -10px;
}
.comment-footer {
    width: 100%;
}

/* Cookie law plugin */
.pea_cook_wrapper.pea_cook_bottomcenter {
    font-size: 12px !important;
    width: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    bottom: 0 !important;
}

/* Comment Form */
p.comment-form-author,
p.comment-form-email {
    min-height: 60px;
    margin: 0 0 10px;
}

p.comment-form-comment {
    height: auto;
}

p.comment-form-comment textarea {
    width: 100%;
    min-height: 150px;
}

p.comment-form-author label,
p.comment-form-email label,
p.comment-form-comment label {
    margin: 0;
    width: 100%;
}

#respond input[type=text],
textarea {
    transition: all 0.30s ease-in-out;
    outline: none;
    padding: 3px 0 3px 3px;
    margin: 5px 1px 3px 0;
    border: 1px solid #DDDDDD;
}

#respond input[type=text]:focus,
textarea:focus {
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    margin: 5px 1px 3px 0;
    border: 1px solid rgba(81, 203, 238, 1);
}

img {
    width: auto;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

input {
    color: #353535;
}

textarea {
    color: #353535;
}

table {
    color: #FFF;
}

h1, h2, h3, h4, h5, h6 {
    margin: 10px 0;
    font-family: inherit;
    font-weight: bold;
    line-height: 20px;
    color: inherit;
    text-rendering: optimizelegibility;
}

h1, h2, h3 {
    line-height: 40px;
}

h1 { font-size: 38.5px; }
h2 { font-size: 31.5px; }
h3 { font-size: 24.5px; }
h4 { font-size: 17.5px; }
h5 { font-size: 14px; }
h6 { font-size: 11.9px; }

.wp-caption-text {
    line-height: 100%;
    font-style: italic;
    text-align: center;
    font-size: 70%;
    margin-bottom: 15px;
    margin-top: -5px;
}


/* ================================================
   Modern Blog Grid (index.php)
================================================ */

.blog-index {
    padding: 20px 0 40px;
}

/* 2-column grid on md+, 1 column on mobile */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---- Card ---- */
.blog-card {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* ---- Image ---- */
.blog-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.04);
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__image-placeholder svg {
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.18);
    stroke: rgba(255, 255, 255, 0.18);
}

/* Location / flag badge over image */
.blog-card__location {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 10px 5px 7px;
    border-radius: 20px;
    pointer-events: none;
    text-decoration: none;
}

.blog-card__location-flag {
    width: 20px;
    height: auto;
    border-radius: 3px;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.blog-card__location-label {
    line-height: 1;
}

/* ---- Body ---- */
.blog-card__body {
    padding: 20px 22px 12px;
    flex: 1;
}

.blog-card__date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.blog-card__title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.35;
    margin: 0 0 12px;
}

.blog-card__title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: #0088cc;
}

.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ---- Footer ---- */
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 10px;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.blog-card__avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card__meta-right {
    display: flex;
    align-items: center;
}

.blog-card__read-more {
    font-size: 13px;
    font-weight: bold;
    color: #0088cc;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.blog-card__read-more:hover {
    color: #00aaff;
}

/* ---- Pagination ---- */
.blog-pagination {
    margin-top: 10px;
}

.blog-pagination__inner {
    display: flex;
    justify-content: center;
}

/* paginate_links outputs a <ul> with type=list */
.blog-pagination__inner .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination__inner .page-numbers li a,
.blog-pagination__inner .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.blog-pagination__inner .page-numbers li a:hover {
    background-color: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.blog-pagination__inner .page-numbers li span.current {
    background-color: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
    font-weight: bold;
}

.blog-pagination__inner .page-numbers li span.dots {
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Search results header ---- */
.search-results-header {
    padding: 20px 0 10px;
}

.search-results-info {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.search-results-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* ---- Empty state ---- */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
}

