/*
Theme Name: Sky
Theme URI: https://example.com/sky
Description: Sky glassmorphism theme for Typecho.
Version: 1.0.0
Author: Sky
Author URI: https://example.com
License: MIT
License URI: https://opensource.org/licenses/MIT
*/

:root {
  --sky-bg-1: #d8e7ff;
  --sky-bg-2: #f2e7ff;
  --sky-bg-3: #d9f7f1;
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.58);
  --glass-line: rgba(255, 255, 255, 0.55);
  --text-main: #1f2a44;
  --text-sub: #5d6b85;
  --brand: #4f7cff;
  --shadow: 0 10px 30px rgba(24, 44, 83, 0.12);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.7;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1000px 700px at -10% -10%, var(--sky-bg-1), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, var(--sky-bg-2), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, var(--sky-bg-3), transparent 60%),
    #f3f7ff;
  background-attachment: fixed;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  opacity: 0.88;
}

.container {
  width: min(1120px, 92vw);
}

#header {
  margin-top: 16px !important;
  border: 1px solid var(--glass-line) !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 24px 14px !important;
}

#logo {
  font-size: 2rem !important;
  font-weight: 700;
  color: var(--text-main);
}

#logo img {
  max-height: 54px;
}

.description {
  margin-top: 6px;
  color: var(--text-sub);
  font-style: normal;
}

#search .text {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  color: var(--text-main);
}

#search button {
  border-radius: 8px;
}

#nav-menu {
  margin-top: 16px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#nav-menu .nav-item,
#nav-menu a {
  float: none !important;
  margin: 0 !important;
  border: 1px solid var(--glass-line) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  height: 34px;
  line-height: 34px;
  padding: 0 16px !important;
  color: var(--text-main);
}

#nav-menu .current,
#nav-menu .nav-item.current,
#nav-menu a:hover {
  background: rgba(79, 124, 255, 0.15) !important;
  border-color: rgba(79, 124, 255, 0.3) !important;
}

#body {
  margin-top: 14px;
}

#main .post,
#secondary .widget,
.feature-panel,
.home-stream,
.home-card,
.split-card,
#comments,
.comment-list li {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-line) !important;
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#main .post {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.post-title {
  margin-top: 0;
}

.post-meta {
  color: var(--text-sub);
}

.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  border-bottom: none !important;
}

#secondary .widget {
  padding: 16px;
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-list li {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(120, 145, 196, 0.22);
}

.widget-list li:last-child {
  border-bottom: none;
}

/* Home interactive hero */
.home-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.split-card {
  display: block;
  padding: 22px;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.split-life {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(236, 244, 255, 0.6)) !important;
}

.split-work {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(240, 236, 255, 0.6)) !important;
}

.split-card:hover,
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(24, 44, 83, 0.16);
}

.split-subtitle {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.split-card h1,
.split-card h2 {
  margin: 8px 0 12px;
  line-height: 1.3;
}

.split-action {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-line);
  color: var(--text-main);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.home-card {
  padding: 16px;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.home-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

.home-stream {
  padding: 16px 18px;
}

.home-feed-head {
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-feed-head .feed-kicker {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feed-head h3 {
  margin: 6px 0 0;
  font-size: 22px;
}

.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stream-head h3 {
  margin: 0;
}

.stream-head span {
  color: var(--text-sub);
  font-size: 13px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

.stream-list,
.feature-list,
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stream-list li,
.feature-list li,
.timeline-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(120, 145, 196, 0.22);
}

.stream-list li:last-child,
.feature-list li:last-child,
.timeline-list li:last-child {
  border-bottom: none;
}

.stream-list time,
.feature-list time {
  color: var(--text-sub);
  white-space: nowrap;
}

.timeline-list .dot {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.device-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 10px;
}

.device-table th,
.device-table td {
  padding: 10px;
  border: 1px solid rgba(120, 145, 196, 0.22);
  text-align: left;
}

.device-table th {
  background: rgba(255, 255, 255, 0.5);
}

.footprints-map {
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
}

.page-navigator a {
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.52);
  padding: 0 14px;
}

.page-navigator .current a,
.page-navigator a:hover {
  background: rgba(79, 124, 255, 0.15);
}

.home-pagination-wrap {
  margin-top: 14px;
}

.home-pagination-wrap .page-navigator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-pagination-wrap .page-navigator li {
  margin: 0;
}

.home-pagination-wrap .page-navigator a {
  min-height: 38px;
  line-height: 38px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(96, 129, 203, 0.35);
  font-weight: 600;
}

#footer {
  margin: 16px auto 20px;
  width: min(1120px, 92vw);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text-sub);
  padding: 20px;
}

@media (max-width: 980px) {
  .home-split {
    grid-template-columns: 1fr;
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #header {
    padding: 16px !important;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .stream-list li,
  .feature-list li,
  .timeline-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Custom section pages */
.section-hero {
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
  margin: 12px 0 16px;
}

.section-hero-kicker {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-hero-title {
  margin: 10px 0 6px;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-main);
}

.section-hero-desc {
  color: var(--text-sub);
  font-size: 14px;
}
