/*
Theme Name: MoreSimpleMyWiki
Theme URI: None
Description: MoreSimpleMyWiki is simple, lightweight and fast loading WordPress Theme.
Author: MoreSimpleMyWiki
Author URI: None
Tags: custom-background, custom-menu, full-width-template, theme-options, featured-images, post-formats, sticky-post, editor-style
Requires PHP: 7.4
Requires at least: 5.4
Tested up to: 6.0
version: 100
Text Domain: moresimplemywiki
*/

/****** Main CSS ******/

:root {
  --bg-main: #ffffff;
  --bg-sub: #f8fafc;
  --border-light: #e5e7eb;
  --text-main: #1f2937;
  --text-sub: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}


.post,
.entry,
article {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: none;
  border: 1px solid var(--border-light);
  transition: background .15s ease, border-color .15s ease;
}

.post:hover,
.entry:hover,
.cat-main-section:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}


.post-meta,
.entry-meta {
  font-size: .85em;
  color: var(--text-sub);
}


@media (min-width: 768px) {
  .post,
  .entry {
    padding: 26px 30px;
  }
}


.entry-content {
  max-width: 760px;
}


.post-title,
.entry-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 6px;
}

.post-title a,
.entry-title a {
  color: var(--text-main);
}

.post-title a:hover {
  color: var(--accent);
}



.entry-content,
.post-content {
  font-size: 16px;
  color: var(--text-main);
}


.entry-content p {
  margin: 1.2em 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin: 1.4em 0;
}

.entry-content li {
  margin: .6em 0;
}


.entry-content h2 {
  border-left: 3px solid var(--text-main);
  padding-left: 12px;
  font-size: 1.4em;
}



.entry-content h3 {
  margin: 2em 0 1em;
  font-size: 1.25em;
  font-weight: 600;
  color: var(--text-sub);
}


.entry-content code {
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: .95em;
}


pre {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 18px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: .95em;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  font-size: .95em;
  color: var(--text-sub);
  border: 1px solid currentColor;
}


table {
    border-collapse:  collapse;
}

tr:nth-child(odd) {
    background-color:  #ddd;
}

th,td {
    padding: 5px 10px;
}


.entry-content a {
  color: var(--accent);
  font-weight: 500;
}

.entry-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.entry-content a:visited {
  color: var(--accent);
}


.entry-content blockquote {
  background: var(--bg-sub);
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-sub);
}





#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 20px;
    text-decoration: none;
    opacity: 0.7;
    z-index: 1000;
}

#back-to-top:hover {
    opacity: 1;
}


#scroll-to-bottom {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 20px;
    text-decoration: none;
    opacity: 0.7;
    z-index: 1000;
}


.youtube {
position: relative;
width: 100%;
padding-top: 56.25%;
}
.youtube iframe{
position: absolute;
top: 0;
right: 0;
width: 100% !important;
height: 100% !important;
}

.search-query {
  width: 60%;
  font-size: 20px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}