/*
Theme Name: Laconic rain
Author: Your Name
Description: A simple dark WordPress theme.
Version: 1.0
Requires PHP: 7.4
Tested up to: 6.7
Text Domain: regsimpledark
*/

html {
    box-sizing: border-box
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
}

html {
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    background-color: #121212;
    color: #fff;
    font-family: Verdana, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow: visible;
}

a {
    color: #c19d26;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #ffa500;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #ffa500;
    text-decoration: underline;
}

body .site-header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

body .site-header nav li {
    margin-right: 20px;
}

body .site-header {
    background: #121212;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    width: 100%;
    position: relative;
    left: 0;
}

body .site-header .container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

body .site-header .branding-wrapper {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    justify-content: flex-start;
    width: auto;
    height: auto;
}

body .site-header .site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
}

#free-content-block {
    background-color: #121212;
    color: #fff;
    padding-right: 40px;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#free-content-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-cover {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#free-content-block figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#free-content-block figure a {
    width: 100%;
    height: 100%;
    display: block;
}

#free-content-block .widget {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#free-content-block .widget-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffa500;
}

body .site-header .site-title {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
}

body .site-header .site-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

body .site-header .site-title a:hover {
    color: #ffa500;
}

body .site-header .site-description {
    font-size: 0.9rem;
    color: #b3b6b4;
    margin-top: 5px;
}

body .site-header nav {
    display: flex;
    background-color: #121212;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
}

body .site-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body .site-header nav a:hover {
    background-color: #ffa500;
    color: #1e1e1e;
    border-radius: 5px;
}

#menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 5px 10px;
}

.menu-dropdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #222;
    position: absolute;
    top: 100%;
    left: 1%;
    width: 20%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-dropdown li {
    list-style: none;
    padding: 0;
}

.menu-dropdown li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #333;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu-dropdown .sub-menu {
    padding-left: 15px;
    display: none;
}

.menu-dropdown .sub-menu .sub-menu {
    padding-left: 30px;
}

.menu-dropdown li:hover > .sub-menu {
    display: block;
}

.menu-dropdown .sub-menu li a {
    padding-left: 20px;
}

.menu-dropdown .sub-menu .sub-menu li a {
    padding-left: 35px;
}

.menu-dropdown a:hover {
    color: #ffa500;
    background-color: #333;
}

.menu-text {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.3s ease;
}

#menu-toggle:hover .menu-text {
    color: #ffa500;
}

.burger-icon {
    width: 25px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.burger-icon::before {
    top: -8px;
    left: 0;
}

.burger-icon::after {
    top: 8px;
    left: 0;
}

#menu-toggle.open .burger-icon {
    background-color: transparent;
}

#menu-toggle.open .burger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

#menu-toggle.open .burger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 768px) {
    body .site-header .container {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    body .site-header nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .menu-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background-color: #222;
        z-index: 1001;
        display: none;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        box-sizing: border-box;
    }

    .menu-dropdown.open {
        display: flex;
    }

    .menu-dropdown a {
        display: block;
        text-align: left;
        padding: 10px 0;
        font-size: 1.2rem;
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

    .menu-dropdown .sub-menu {
        display: block;
        padding-left: 20px;
    }

    .menu-dropdown li.menu-item-has-children > a::after {
        content: " ▼";
        font-size: 12px;
        color: #fff;
        margin-left: 5px;
    }

    #menu-toggle {
        top: 10px;
        left: 10px;
        z-index: 1002;
        background-color: #222;
        color: #fff;
        padding: 10px;
        border-radius: 5px;
        border: none;
        cursor: pointer;
    }

    #menu-toggle.open {
        display: none;
    }

    #free-content-block {
        padding-right: 20px;
        height: 120px;
        flex-direction: column;
    }

    #free-content-block img {
        width: auto;
        height: 100%;
    }

    #free-content-block h1, #free-content-block p {
        font-size: 16px;
    }
}

body.archive .archive-header {
    background: #121212;
    padding: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    flex-direction: column;
    box-sizing: border-box;
}

body.archive .archive-header a {
    color: #fff;
    text-decoration: underline;
}

nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px 0;
}

footer {
    text-align: center;
    padding: 10px;
    background: #1e1e1e;
}

.post-header {
    margin-bottom: 10px;
}

.post-title {
    font-size: 2rem;
    color: #fff;
}

.post-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ccc;
}

blockquote {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #bbb;
    border-left: 4px solid #ffa500;
    padding: 10px 20px;
    margin: 20px 0;
    quotes: "«" "»" "„" "”";
}

blockquote:before {
    content: open-quote;
    font-size: 2rem;
    color: #ffa500;
    margin-right: 10px;
    vertical-align: -0.4em;
}

blockquote:after {
    content: close-quote;
    font-size: 2rem;
    color: #ffa500;
    margin-left: 10px;
    vertical-align: -0.4em;
}

.post-footer {
    font-size: 0.9rem;
    color: #888;
}

article {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #121212;
}

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

.post-list .post-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.post-item .post-thumbnail img {
    width: 120px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.empty-thumbnail {
    width: 120px;
    height: auto;
}

.post-item .post-details {
    flex: 1;
}

.post-row {
    display: flex;
    gap: 20px;
}

.post-thumbnail img {
    width: 120px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.post-details {
    flex: 1;
}

.post-title {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.post-title a {
    color: #ffa500;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #ffa500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.sidebar .widget .wp-block-latest-posts__post-title {
    display: block;
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #ffa500;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #ffa500;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.sidebar .widget .wp-block-latest-posts__post-title:hover {
    background-color: #ffa500;
    color: #1e1e1e;
    border-color: #fff;
}

.sidebar .widget .wp-block-latest-posts__post-title:focus {
    outline: none;
    box-shadow: 0 0 5px 3px #ffa500;
    background-color: #ffa500;
    color: #121212;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #1e1e1e;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #ffa500;
    color: #fff;
}

.pagination .current {
    font-weight: bold;
    background-color: #3e3d3d;
}

#main-content {
    padding: 20px 0;
}

.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    width: 100%;
}

.primary-content {
    flex: 3;
    padding: 20px;
    border-radius: 8px;
}

.primary-content h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    flex: 1;
    background-color: #121212;
    padding: 20px;
    border-radius: 8px;
    color: #ccc;
}

.sidebar a {
    color: #ffa500;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

.sidebar .widget {
    margin-bottom: 20px;
}

.sidebar .widget-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffa500;
}

.main-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 20px;
}

.menu-search {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.menu-search form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    padding: 0 10px;
    box-sizing: border-box;
}

input[type="search"],
input[type="text"] {
    background-color: #2a2a2a;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="search"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 5px 2px #ffa500;
}

button,
input[type="submit"] {
    background-color: #fff;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: auto;
    box-sizing: border-box;
}

button:hover,
input[type="submit"]:hover {
    background-color: #ffa500;
    color: #fff;
}

button:focus,
input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 5px 2px #ffa500;
}

@media (max-width: 768px) {
    .menu-search {
        justify-content: center;
    }

    .menu-search form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-width: 100%;
    }

    input[type="search"] {
        width: 100%;
    }

    button,
    input[type="submit"] {
        width: 100%;
    }
}

.comment-form {
    margin-top: 20px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    background-color: #2a2a2a;
    color: #fff;
    border: 2px solid #ffa500;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
}

.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: #fff;
    box-shadow: 0 0 5px 2px #ffa500;
}

.comment-form .form-submit input[type="submit"] {
    background-color: #ffa500;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: #fff;
    color: #ffa500;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ffa500;
}

.comment-notes,
.comment-form .form-allowed-tags {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 15px;
}

.comment-form .error,
.comment-form .success {
    font-weight: bold;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid;
    border-radius: 5px;
}

.comment-form .error {
    background-color: #ffcccc;
    color: #a00;
    border-color: #a00;
}

.comment-form .success {
    background-color: #ccffcc;
    color: #0a0;
    border-color: #0a0;
}

.wp-block-latest-comments__comment-excerpt {
    font-style: italic;
    color: #666;
    margin-top: 5px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .sidebar {
        margin-top: 20px;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .primary-content {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .post-thumbnail img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .post-title {
        font-size: 1.5rem;
        margin: 0 0 10px;
        text-align: left;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.5;
    }

    .post-row {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    footer, nav, header {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }
}
