/* ============================================================
   MFDNES.EU - Dark Theme Customization
   ============================================================ */

/* ----- DARK MODE: Core Variables ----- */

:root {
    --background-color: #0f1012 !important;
    --color-lighter-gray: rgba(255, 255, 255, 0.06);
    --color-light-gray: #1e2024;
    --color-mid-gray: #2a2d33;
    --color-dark-gray: #c8ccd0;
    --color-darker-gray: #e8eaed;
    --color-black: #fff;
    --color-primary-text: #e8eaed;
    --color-secondary-text: rgba(255, 255, 255, 0.55);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-dark-border: rgba(255, 255, 255, 0.3);
}

html, body {
    background-color: #0f1012;
    color: #e8eaed;
}

a {
    color: #e8eaed;
}

/* ----- NAVIGATION ----- */

.gh-navigation {
    background-color: #0f1012;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 64px;
}

.gh-navigation-inner {
    background-color: #0f1012;
}

.gh-navigation-logo {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
}

.gh-navigation-logo-svg {
    display: flex;
    align-items: center;
    line-height: 1;
}

.gh-navigation-logo-svg svg {
    display: block !important;
    height: 34px !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

.gh-navigation .nav a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.4rem;
}

.gh-navigation .nav a:hover {
    color: #fff;
    opacity: 1;
}

/* Mobile menu */
.gh-navigation.is-open {
    background-color: #0f1012;
}

/* ----- CONTAINED LAYOUT ----- */

.gh-inner {
    max-width: 1200px;
}

/* ----- POST ARTICLE ----- */

.gh-article-header {
    margin-top: 40px;
    margin-bottom: 24px;
}

.gh-article-tag {
    color: #e53e3e;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gh-article-title {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .gh-article-title {
        font-size: 3.4rem;
    }
}

.gh-article-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.75rem;
    border-left: 3px solid #e53e3e;
    padding-left: 16px;
    margin-top: 16px;
}

.gh-article-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0;
}

.gh-article-author-name {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    font-weight: 500;
}

.gh-article-meta-content {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
}

/* Feature image - after content, smaller */
.gh-article > .gh-article-image {
    margin: 40px auto 20px;
    max-width: 720px;
}

.gh-article > .gh-article-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.gh-article > .gh-article-image figcaption {
    margin-top: 8px;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ----- ARTICLE CONTENT ----- */

.gh-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.75rem;
    line-height: 1.72;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: #fff;
}

.gh-content a {
    color: #e53e3e;
    text-decoration: underline;
    text-decoration-color: rgba(229, 62, 62, 0.35);
    text-underline-offset: 2px;
}

.gh-content a:hover {
    text-decoration-color: #e53e3e;
    opacity: 1;
}

.gh-content blockquote {
    border-left-color: #e53e3e;
    color: rgba(255, 255, 255, 0.65);
}

.gh-content pre {
    background-color: #1a1c20;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gh-content code {
    background-color: rgba(255, 255, 255, 0.07);
    color: #e8eaed;
}

.gh-content hr {
    border-color: rgba(255, 255, 255, 0.08);
}

.gh-content figcaption {
    color: rgba(255, 255, 255, 0.4);
}

/* ----- CARDS (Post Feed) ----- */

.gh-card {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.gh-card-title {
    color: #e8eaed;
}

.gh-card-excerpt {
    color: rgba(255, 255, 255, 0.5);
}

.gh-card-meta {
    color: rgba(255, 255, 255, 0.38);
}

.gh-card-tag {
    color: #e53e3e;
}

.gh-card-link:hover .gh-card-title {
    color: #fff;
    opacity: 1;
}

/* ----- SIDEBAR: Breaking & Trending ----- */

.gh-sidebar {
    color: #e8eaed;
}

.gh-sidebar-title {
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 10px;
}

.breaking-label {
    color: #e53e3e;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.gh-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.gh-sidebar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gh-sidebar-item a {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: #e8eaed;
    text-decoration: none;
}

.gh-sidebar-item a:hover .gh-sidebar-item-title {
    color: #fff;
    opacity: 1;
}

.gh-sidebar-item-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
}

.gh-sidebar-item time {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.32);
    white-space: nowrap;
    margin-top: 2px;
}

.gh-sidebar-breaking {
    margin-bottom: 40px;
}

.gh-sidebar-breaking .gh-sidebar-item-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* Trending with thumbnails */
.gh-sidebar-trending .gh-sidebar-item a {
    align-items: center;
}

.gh-sidebar-item-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
}

.gh-sidebar-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    min-width: 0;
}

.gh-sidebar-item-tag {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.32);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ----- CONTAINER TITLE ----- */

.gh-container-title {
    color: #e8eaed;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ----- HEADER / HERO SECTION ----- */

.gh-header {
    background-color: #0f1012;
}

.gh-header-title {
    color: #fff;
}

.gh-header-description {
    color: rgba(255, 255, 255, 0.6);
}

/* ----- CTA: hide ----- */

.gh-cta {
    display: none !important;
}

/* ----- FEATURED SECTION ----- */

.gh-featured-title {
    color: rgba(255, 255, 255, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ----- FOOTER: Minimal single line ----- */

.gh-footer {
    margin-top: 60px;
    background-color: #0f1012;
    padding: 0;
}

.gh-footer-inner {
    padding: 0;
}

.gh-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    margin-bottom: 0;
}

.gh-footer-logo {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 700;
}

.gh-footer-logo img {
    max-height: 26px;
    opacity: 0.5;
}

.gh-footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.3rem;
}

.gh-footer-signup {
    display: none !important;
}

/* ----- BUTTONS ----- */

.gh-button {
    background-color: #e53e3e;
    color: #fff !important;
    border: none;
}

.gh-button:hover {
    background-color: #c53030;
}

/* ----- SEARCH ----- */

.gh-search {
    color: rgba(255, 255, 255, 0.6);
}

.gh-search:hover {
    color: #fff;
    opacity: 1;
}

/* ----- COMMENTS ----- */

.gh-comments {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    margin-top: 40px;
}

/* ----- READ MORE SECTION ----- */

.gh-container.is-grid {
    background-color: transparent;
}

/* ----- LIGHTBOX ----- */

.pswp__bg {
    background: #0a0b0d;
}

/* ----- SCROLLBAR ----- */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f1012;
}

::-webkit-scrollbar-thumb {
    background: #2a2d33;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d4047;
}

/* ----- SELECTION ----- */

::selection {
    background-color: rgba(229, 62, 62, 0.3);
    color: #fff;
}

/* ----- RESPONSIVE ----- */

@media (max-width: 767px) {
    .gh-article-title {
        font-size: 2.6rem;
    }

    .gh-article > .gh-article-image img {
        max-height: 260px;
    }

    .gh-navigation {
        height: 56px;
    }

    .gh-footer-bar {
        flex-direction: row;
        gap: 12px;
    }

    .gh-sidebar {
        margin-top: 48px;
    }
}

/* ----- ABOUT PAGE ----- */

.mfd-about-photo {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 0 1em 0 !important;
}

/* ===== Isso comments ===== */
.isso-comments-wrap {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Hide email, website fields and preview button */
#isso-thread .isso-input-wrapper:has([name="email"]) { display: none !important; }
#isso-thread .isso-input-wrapper:has([name="website"]) { display: none !important; }
#isso-thread [name="preview"] { display: none !important; }
#isso-thread [name="edit"] { display: none !important; }

/* Thread heading: "X komentářů" or "Žádné komentáře" */
#isso-thread h4.isso-thread-heading {
    color: rgba(255,255,255,0.55) !important;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Postbox (comment form) */
#isso-thread .isso-postbox {
    background: #16181c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}

/* Text area */
#isso-thread .isso-textarea,
#isso-thread .isso-preview {
    background: #1e2024 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e8eaed !important;
    box-shadow: none !important;
    border-radius: 4px !important;
}

/* Name input */
#isso-thread .isso-input-wrapper input {
    background: #1e2024 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e8eaed !important;
    box-shadow: none !important;
    border-radius: 4px !important;
}

/* Input labels */
#isso-thread .isso-input-wrapper label {
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.2rem;
}

/* Submit button */
#isso-thread .isso-post-action > input[type="submit"] {
    background: #3a5a78 !important;
    color: #e8eaed !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.45rem 1.2rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    font-size: 1.3rem;
}
#isso-thread .isso-post-action > input[type="submit"]:hover {
    background: #4a6f8f !important;
}

/* Comment body */
#isso-thread .isso-comment {
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    padding: 1rem 0;
}
#isso-thread .isso-text {
    color: rgba(255,255,255,0.82) !important;
}
#isso-thread .isso-text p { color: rgba(255,255,255,0.82); }

/* Comment author & meta */
#isso-thread .isso-author {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
}
#isso-thread .isso-comment-header a {
    color: rgba(255,255,255,0.85) !important;
}
#isso-thread .isso-spacer,
#isso-thread .isso-permalink,
#isso-thread .isso-note,
#isso-thread .isso-parent {
    color: rgba(255,255,255,0.3) !important;
}
#isso-thread .isso-comment-footer {
    color: rgba(255,255,255,0.3) !important;
}
#isso-thread .isso-comment-footer a {
    color: rgba(255,255,255,0.38) !important;
}
#isso-thread .isso-comment-footer a:hover {
    color: rgba(255,255,255,0.6) !important;
    text-shadow: none !important;
}

/* Avatar border */
#isso-thread .isso-avatar svg {
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
}

/* Placeholder text */
#isso-thread .isso-textarea::placeholder,
#isso-thread .isso-input-wrapper input::placeholder {
    color: rgba(255,255,255,0.25);
}

/* Focus ring */
#isso-thread .isso-textarea:focus,
#isso-thread .isso-input-wrapper input:focus {
    outline: 2px solid rgba(74, 111, 143, 0.6) !important;
    border-color: #4a6f8f !important;
}
