/* SomGeek – prepínač tmavej a svetlej témy */

.sg-theme-toggle {
    position: relative;
    border: 1px solid var(--sg-border) !important;
    border-radius: 50%;
    background: var(--sg-panel) !important;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.sg-theme-toggle:hover,
.sg-theme-toggle:focus-visible {
    border-color: var(--sg-gold) !important;
    color: var(--sg-gold-bright) !important;
    transform: translateY(-1px);
}

.sg-theme-toggle__icon {
    display: block;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1;
}

html[data-sg-theme="light"] {
    color-scheme: light;
    --sg-bg: #f3f0e8;
    --sg-bg-soft: #ebe7dd;
    --sg-panel: #ffffff;
    --sg-panel-raised: #faf8f2;
    --sg-panel-soft: #eee9df;
    --sg-border: #cbc3b3;
    --sg-border-soft: #ddd6c9;
    --sg-gold: #c88b00;
    --sg-gold-bright: #a96e00;
    --sg-gold-dark: #785000;
    --sg-text: #17191c;
    --sg-muted: #626a73;
    --sg-muted-dark: #7b8289;
    --sg-shadow: 0 18px 44px rgba(49, 42, 29, 0.12);
}

html[data-sg-theme="light"] body,
html[data-sg-theme="light"] body.custom-background,
html[data-sg-theme="light"] .sg-site-body {
    background:
        radial-gradient(circle at 14% 0%, rgba(201, 139, 0, 0.08), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(42, 67, 90, 0.07), transparent 28rem),
        var(--sg-bg) !important;
    color: var(--sg-text) !important;
}

html[data-sg-theme="light"] .sg-main,
html[data-sg-theme="light"] body.single-post .sg-main {
    background: transparent !important;
}

html[data-sg-theme="light"] .sg-header {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom-color: var(--sg-border) !important;
    box-shadow: 0 10px 28px rgba(45, 39, 28, 0.1) !important;
}

html[data-sg-theme="light"] .sg-menu > li > a,
html[data-sg-theme="light"] .sg-nav ul > li > a,
html[data-sg-theme="light"] .sg-more-toggle,
html[data-sg-theme="light"] .sg-icon-button,
html[data-sg-theme="light"] .sg-nav-toggle {
    color: #191b1e !important;
}

html[data-sg-theme="light"] .sg-menu .sub-menu,
html[data-sg-theme="light"] .sg-nav .sub-menu,
html[data-sg-theme="light"] .sg-search-panel {
    background: #ffffff !important;
    border-color: var(--sg-border) !important;
    box-shadow: 0 18px 36px rgba(45, 39, 28, 0.14) !important;
}

html[data-sg-theme="light"] .sg-menu .sub-menu a,
html[data-sg-theme="light"] .sg-nav .sub-menu a {
    color: #24272b !important;
    border-color: var(--sg-border-soft) !important;
}

html[data-sg-theme="light"] input,
html[data-sg-theme="light"] textarea,
html[data-sg-theme="light"] select,
html[data-sg-theme="light"] .search-form input[type="search"] {
    background: #ffffff !important;
    border-color: var(--sg-border) !important;
    color: var(--sg-text) !important;
}

html[data-sg-theme="light"] input::placeholder,
html[data-sg-theme="light"] textarea::placeholder {
    color: #858b91 !important;
}

html[data-sg-theme="light"] .sg-breaking,
html[data-sg-theme="light"] .sg-platforms,
html[data-sg-theme="light"] .sg-story-card,
html[data-sg-theme="light"] .sg-video-card,
html[data-sg-theme="light"] .sg-category-column,
html[data-sg-theme="light"] .sg-sidebar-box,
html[data-sg-theme="light"] .sg-release-box,
html[data-sg-theme="light"] .sg-ranking,
html[data-sg-theme="light"] .sg-popular-list,
html[data-sg-theme="light"] .sg-community-box,
html[data-sg-theme="light"] .sg-partners,
html[data-sg-theme="light"] .sg-archive-card,
html[data-sg-theme="light"] .sg-archive-header,
html[data-sg-theme="light"] .sg-info-content,
html[data-sg-theme="light"] .sg-info-sidebar,
html[data-sg-theme="light"] .sg-info-card,
html[data-sg-theme="light"] .sg-team-card {
    background-color: var(--sg-panel) !important;
    border-color: var(--sg-border) !important;
    color: var(--sg-text) !important;
    box-shadow: var(--sg-shadow);
}

html[data-sg-theme="light"] .sg-breaking__items,
html[data-sg-theme="light"] .sg-breaking__items a,
html[data-sg-theme="light"] .sg-platforms a,
html[data-sg-theme="light"] .sg-section-heading h2,
html[data-sg-theme="light"] .sg-sidebar-box > h2,
html[data-sg-theme="light"] .sg-category-column > h2,
html[data-sg-theme="light"] .sg-story-card h3,
html[data-sg-theme="light"] .sg-story-card h3 a,
html[data-sg-theme="light"] .sg-video-card h3,
html[data-sg-theme="light"] .sg-video-card h3 a,
html[data-sg-theme="light"] .sg-mini-story h3,
html[data-sg-theme="light"] .sg-mini-story h3 a,
html[data-sg-theme="light"] .sg-ranking li,
html[data-sg-theme="light"] .sg-ranking li a,
html[data-sg-theme="light"] .sg-popular-list h3,
html[data-sg-theme="light"] .sg-popular-list h3 a,
html[data-sg-theme="light"] .sg-release-box li span,
html[data-sg-theme="light"] .sg-more-link,
html[data-sg-theme="light"] .sg-category-column__more {
    color: #25282c !important;
    opacity: 1 !important;
}

html[data-sg-theme="light"] .sg-meta,
html[data-sg-theme="light"] .sg-meta span,
html[data-sg-theme="light"] .sg-meta time,
html[data-sg-theme="light"] .sg-meta a,
html[data-sg-theme="light"] .sg-release-box time,
html[data-sg-theme="light"] .sg-popular-list time {
    color: #69717a !important;
}

html[data-sg-theme="light"] .sg-story-card__body,
html[data-sg-theme="light"] .sg-video-card,
html[data-sg-theme="light"] .sg-mini-story,
html[data-sg-theme="light"] .sg-category-column,
html[data-sg-theme="light"] .sg-sidebar-box,
html[data-sg-theme="light"] .sg-release-box li,
html[data-sg-theme="light"] .sg-ranking li,
html[data-sg-theme="light"] .sg-popular-list li {
    border-color: var(--sg-border-soft) !important;
}

/* Obrázkové titulné karty zostávajú tmavé, aby bol biely text čitateľný. */
html[data-sg-theme="light"] .sg-media-card,
html[data-sg-theme="light"] .sg-story-card__media,
html[data-sg-theme="light"] .sg-video-card__media,
html[data-sg-theme="light"] .sg-mini-story__media,
html[data-sg-theme="light"] .sg-archive-card--wide {
    color: #ffffff !important;
}

/* Články */
html[data-sg-theme="light"] .sg-article {
    background: #ffffff !important;
    border-color: var(--sg-border) !important;
    box-shadow: var(--sg-shadow) !important;
}

html[data-sg-theme="light"] .sg-article-header,
html[data-sg-theme="light"] .sg-article-hero,
html[data-sg-theme="light"] .sg-article-tags,
html[data-sg-theme="light"] .sg-post-navigation,
html[data-sg-theme="light"] .sg-related,
html[data-sg-theme="light"] .sg-comments {
    border-color: var(--sg-border) !important;
}

html[data-sg-theme="light"] .sg-article-title,
html[data-sg-theme="light"] .sg-article-content h2,
html[data-sg-theme="light"] .sg-article-content h3,
html[data-sg-theme="light"] .sg-article-content h4,
html[data-sg-theme="light"] .sg-article-content h5,
html[data-sg-theme="light"] .sg-article-content h6 {
    color: #17191c !important;
}

html[data-sg-theme="light"] .sg-article-lead,
html[data-sg-theme="light"] .sg-article-content,
html[data-sg-theme="light"] .sg-article-content p,
html[data-sg-theme="light"] .sg-article-content li,
html[data-sg-theme="light"] .sg-article-content dd,
html[data-sg-theme="light"] .sg-article-content dt {
    color: #2c3035 !important;
}

html[data-sg-theme="light"] .sg-article-content blockquote,
html[data-sg-theme="light"] .sg-author-box,
html[data-sg-theme="light"] .sg-article-content table,
html[data-sg-theme="light"] .sg-article-content th,
html[data-sg-theme="light"] .sg-article-content td,
html[data-sg-theme="light"] .sg-article-tags a {
    background: #f7f4ed !important;
    border-color: var(--sg-border) !important;
    color: #25282c !important;
}

html[data-sg-theme="light"] .sg-article-content th {
    background: #ece6d9 !important;
    color: var(--sg-gold-dark) !important;
}

html[data-sg-theme="light"] .sg-article-sidebar,
html[data-sg-theme="light"] .sg-article-sidebar .widget,
html[data-sg-theme="light"] .sg-article-sidebar section {
    background: #ffffff !important;
    border-color: var(--sg-border) !important;
    color: var(--sg-text) !important;
}

/* Archívy kategórií a značiek */
html[data-sg-theme="light"] .sg-archive-page,
html[data-sg-theme="light"] .sg-tag-archive {
    background: transparent !important;
}

html[data-sg-theme="light"] .sg-archive-card:not(.sg-archive-card--wide) h2,
html[data-sg-theme="light"] .sg-archive-card:not(.sg-archive-card--wide) h2 a,
html[data-sg-theme="light"] .sg-archive-card:not(.sg-archive-card--wide) p,
html[data-sg-theme="light"] .sg-archive-description {
    color: #25282c !important;
}

/* Informačné stránky */
html[data-sg-theme="light"] .sg-info-page,
html[data-sg-theme="light"] .sg-info-page__content {
    background: transparent !important;
}

html[data-sg-theme="light"] .sg-info-hero,
html[data-sg-theme="light"] .sg-release-calendar-page__hero {
    background:
        linear-gradient(110deg, rgba(200, 139, 0, 0.07), transparent 44%),
        linear-gradient(135deg, #ffffff, #eee9df 75%) !important;
    border-color: var(--sg-border) !important;
}

html[data-sg-theme="light"] .sg-info-hero h1,
html[data-sg-theme="light"] .sg-info-hero p,
html[data-sg-theme="light"] .sg-release-calendar-page__hero h1,
html[data-sg-theme="light"] .sg-release-calendar-page__hero p,
html[data-sg-theme="light"] .sg-release-calendar-page__heading h2,
html[data-sg-theme="light"] .sg-release-calendar-page__heading p {
    color: #202327 !important;
}

/* Kalendár hráča */
html[data-sg-theme="light"] .sg-release-calendar-page {
    background:
        radial-gradient(circle at 88% 3%, rgba(200, 139, 0, 0.08), transparent 30rem),
        #f3f0e8 !important;
}

html[data-sg-theme="light"] .sg-release-calendar-table-wrap,
html[data-sg-theme="light"] .sg-release-calendar-table,
html[data-sg-theme="light"] .sg-release-calendar-table tbody tr,
html[data-sg-theme="light"] .sg-release-calendar-table tbody tr:nth-child(even) {
    background: #ffffff !important;
}

html[data-sg-theme="light"] .sg-release-calendar-table tbody tr:nth-child(even) {
    background: #f7f3ea !important;
}

html[data-sg-theme="light"] .sg-release-calendar-table tbody tr:hover {
    background: #fff5d7 !important;
}

html[data-sg-theme="light"] .sg-release-calendar-table th {
    background: #e9e1d2 !important;
    color: #785000 !important;
}

html[data-sg-theme="light"] .sg-release-calendar-table td,
html[data-sg-theme="light"] .sg-release-calendar-table td:nth-child(2),
html[data-sg-theme="light"] .sg-release-calendar-table td:last-child,
html[data-sg-theme="light"] .sg-release-calendar-page__status {
    color: #25282c !important;
}

/* Pätička */
html[data-sg-theme="light"] .sg-footer,
html[data-sg-theme="light"] footer.site-footer,
html[data-sg-theme="light"] #colophon {
    background: #e9e4da !important;
    border-color: var(--sg-border) !important;
    color: #34383d !important;
}

html[data-sg-theme="light"] .sg-footer a,
html[data-sg-theme="light"] footer.site-footer a,
html[data-sg-theme="light"] #colophon a {
    color: #34383d !important;
}

html[data-sg-theme="light"] .sg-footer h2,
html[data-sg-theme="light"] .sg-footer h3,
html[data-sg-theme="light"] footer.site-footer h2,
html[data-sg-theme="light"] footer.site-footer h3 {
    color: #17191c !important;
}

@media (max-width: 980px) {
    html[data-sg-theme="light"] .sg-nav {
        background: #ffffff !important;
        border-color: var(--sg-border) !important;
    }
}
