/* ------------------------------------
 * Typecho Default Theme with 98.css
 *
 * @author  Typecho Team
 * @link  http: //typecho.org/
 * @update  2013-10-28
 * --------------------------------- */

/* ------------------
 * Global style
 * --------------- */
 body {
  background-color: #c0c0c0;
  background-size: cover;
  background-position: center; /* Centers the image within the container */
  background-repeat: no-repeat; /* Prevents the image from tiling */
  background-image: url("https://blog.greenbean.monster/wp2807995.jpg");
  /* url("data:image/svg+xml;charset=utf-8,%3Csvg width='2' height='2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 0H0v1h1v1h1V1H1V0z' fill='silver'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0H1v1H0v1h1V1h1V0z' fill='%23fff'/%3E%3C/svg%3E");*/
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  padding: 30px 20px;
}

/* Scale up 98.css elements for better readability */
.window {
  font-size: 16px;
  margin-bottom: 25px;
}

.window-body {
  padding: 8px;
  font-size: 16px;
  line-height: 1.7;
}

.title-bar {
  font-size: 14px;
  padding: 6px 4px 6px 6px;
}

.title-bar-text {
  font-size: 14px;
  font-weight: 700;
}

button, input[type="submit"], input[type="reset"] {
  font-size: 14px !important;
  min-height: 28px !important;
  padding: 0 16px !important;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], 
input[type="search"], input[type="tel"], textarea, select {
  font-size: 14px !important;
  padding: 6px 8px !important;
  height: auto !important;
  min-height: 28px !important;
}

textarea {
  min-height: 100px !important;
}

label {
  font-size: 14px !important;
}

.field-row {
  margin-bottom: 12px;
}

.field-row-stacked {
  margin-bottom: 12px;
}

ul.tree-view {
  font-size: 14px;
  padding: 10px;
}

ul.tree-view li {
  margin: 6px 0;
  line-height: 1.6;
}

a {
  color: #00f;
  text-decoration: none;
}
a:hover, a:active {
  color: #00f;
  text-decoration: underline;
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: 14px;
}
code { 
  padding: 3px 6px; 
  color: #B94A48; 
  font-size: 14px;
}
pre {
  padding: 12px;
  overflow: auto;
  max-height: 500px;
  font-size: 14px;
  line-height: 1.5;
}
pre code {
  display: block;
  padding: 0;
  color: #444;
  font-size: 14px;
}

blockquote {
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 4px solid #ddd;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

table {
  border: 1px solid #ddd;
  width: 100%;
  font-size: 14px;
}
table th,
table td {
  padding: 8px 12px;
  border: 1px solid #eee;
}
table th {
  background: #f3f3f3;
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
  line-height: 1.4;
  margin: 1.2em 0 0.8em 0;
}

h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

/* Comments section styling */
#comments h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 15px 0;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 6px 8px;
  border: 1px solid #E9E9E9;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
  min-height: 120px;
}


/* Special link style */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  border-bottom: 1px solid #EEE;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}

/* ------------------
 * Header - Now using 98.css windows
 * --------------- */

#logo {
  color: #fff;
  font-size: 1.4em;
  font-weight: 700;
}
#logo img {
    max-height: 28px;
    vertical-align: middle;
}

.description {
  margin: 0.8em 0 0;
  color: #eee;
  font-style: italic;
  font-size: 14px;
}

/* Search */
#search {
  width: 100%;
}
#search input {
  flex: 1;
  font-size: 14px !important;
  padding: 6px 8px !important;
  min-height: 28px !important;
}

/* Navigation tabs */
menu[role="tablist"] {
  font-size: 14px;
  margin: 0;
  padding: 0;
}

menu[role="tablist"] > li > a {
  padding: 8px 12px;
  font-size: 14px;
}

/* Fix tabs to be properly connected */
.window menu[role="tablist"] {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}


/* ------------------
 * Main - Now using 98.css windows
 * --------------- */

.post-content {
  line-height: 1.8;
  font-size: 16px;
}

.post-content p {
  margin: 1em 0;
}

.post-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.post-meta li {
  display: inline-block;
  margin-right: 15px;
}

.post .tags {
  clear: both;
  margin-top: 15px;
  font-size: 14px;
}

.post-near {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #222;
  font-size: 14px;
}

.post-near li {
  margin: 8px 0;
  line-height: 1.6;
}

/* Page nav */

.page-navigator {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-navigator li {
  display: inline-block;
}
.page-navigator a {
  display: inline-block;
  padding: 0 14px;
  height: 28px;
  line-height: 28px;
  min-width: 85px;
  font-size: 14px;
}

.page-navigator .current a {
  color: #222;
}

/* ------------------
 * Comment list - Now using 98.css windows
 * --------------- */
#comments {
  padding-top: 0;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 12px;
  margin-top: 12px;
  background: #fff;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  font-size: 14px;
  line-height: 1.7;
}
.comment-list li.comment-level-odd {
  background: #fff;
}
.comment-list li.comment-level-even {
  background: #f0f0f0;
}
.comment-list li.comment-by-author {
  background: #fff9e8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: 13px;
  margin-top: 8px;
}
.comment-meta a {
  color: #00f;
  font-size: 13px;
}
.comment-author {
  display: block;
  margin-bottom: 6px;
  color: #222;
  font-size: 14px;
}
.comment-author .avatar {
  float: left;
  margin-right: 12px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
  font-size: 15px;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
}
.respond .cancel-comment-reply {
  text-align: right;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 13px;
}
#comment-form label {
  display: block;
  margin-bottom: 0.6em;
  font-weight: bold;
  font-size: 14px;
}
#comment-form .required:after {
  content: " *";
  color: #c00;
}

/* ------------------
 * secondary - Now using 98.css windows
 * --------------- */
#secondary {
  padding-top: 0;
  word-wrap: break-word;
  padding-left: 0;
  width: 28% !important;
  max-width: none !important;
}

#main {
  padding-right: 0;
  width: 72% !important;
  max-width: none !important;
}

/* Clear floats to prevent gap issues */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Row clearing is handled by grid.css, but ensure no gaps */
.row {
  overflow: hidden;
  min-height: 1px;
}

/* Mobile: stack sidebar below content */
@media (max-width: 767px) {
  #secondary {
    margin-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100% !important;
  }
  
  #main {
    padding-left: 10px;
    padding-right: 10px;
    width: 100% !important;
  }
  
  /* Fix window overflow on mobile */
  #main .window,
  #secondary .window {
    box-sizing: border-box;
    max-width: 100%;
  }
}

/* Tablet and up: side by side layout */
@media (min-width: 768px) {
  #secondary {
    padding-left: 10px;
  }
  
  #main {
    padding-right: 10px;
  }
  
  /* Override grid widths for custom layout */
  #main.col-tb-8 {
    width: 72% !important;
  }
  
  /* Full width on post pages */
  #main.col-tb-12 {
    width: 100% !important;
  }
  
  #secondary.col-tb-3 {
    width: 28% !important;
  }
}
.widget {
  margin-bottom: 20px;
}
.widget-title {
  font-size: 14px;
  font-weight: bold;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 8px 0;
  line-height: 1.7;
  font-size: 14px;
}

.widget-list li ul {
  margin-left: 20px;
}


/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 2em 0;
  line-height: 1.5;
  text-align: center;
  color: #222;
  margin-top: 20px;
}


/* -----------------
 * Error page - Now using 98.css windows
 * -------------- */
.error-page {
  margin-top: 20px;
  margin-bottom: 20px;
}


/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.8;
  word-wrap: break-word;
  font-size: 16px;
}
.post-content h2, .comment-content h2 {
  font-size: 1.75em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}
.post-content h3, .comment-content h3 {
  font-size: 1.5em;
  margin-top: 1.3em;
  margin-bottom: 0.7em;
}
.post-content h4, .comment-content h4 {
  font-size: 1.25em;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* hidden img parent link border  */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}


/* -----------------
 * Misc
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}


/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 767px) {
  body {
    font-size: 14px;
    padding: 12px 8px;
  }
  
  .window-body {
    padding: 10px;
  }
  
  menu[role="tablist"] {
    flex-wrap: wrap;
  }
  
  menu[role="tablist"] > li {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px 10px;
    font-size: 15px;
  }
  
  .window {
    margin-bottom: 20px !important;
  }
  
  .window-body {
    padding: 6px;
    font-size: 15px;
  }
  
  .title-bar {
    font-size: 13px;
  }
  
  .title-bar-text {
    font-size: 13px;
  }
  
  button, input[type="submit"], input[type="reset"] {
    font-size: 13px !important;
    min-height: 26px !important;
    padding: 0 12px !important;
  }
  
  input[type="text"], input[type="email"], input[type="url"], input[type="password"], 
  input[type="search"], input[type="tel"], textarea, select {
    font-size: 13px !important;
    padding: 5px 6px !important;
    min-height: 26px !important;
  }
  
  .post-content {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 1200px;
  }
  
  /* Override grid widths for custom layout */
  #main.col-8 {
    width: 72% !important;
  }
  
  /* Full width on post pages */
  #main.col-12 {
    width: 100% !important;
  }
  
  #secondary.col-3 {
    width: 28% !important;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  body {
    padding: 40px 30px;
  }
  
  .window {
    margin-bottom: 30px;
  }
  
  .window-body {
    padding: 10px;
  }
}


/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden; }

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
  visibility: hidden; }
