/* ======== Global Styles ======== */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: #eee;
  color: #4c4948;
  font-size: 14px;
  font-family: "PingFang SC", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 2;
  cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/texto.cur), auto;
}

a {
  background-color: transparent;
  cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/ayuda.cur), auto;
  text-decoration: none;
  border-bottom: none;
}

h1, h2, h3, h4, h5, h6 {
  position: relative;
  margin: 1rem 0 0.7rem;
  color: #344c67;
  font-weight: 700;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

strong {
  color: #4c4948;
}

li, span, p {
  cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/texto.cur), auto;
}

/* ======== Layout Structure ======== */
#body-wrap {
  position: relative;
  display: flex;
  flex: 1 auto;
  flex-direction: column;
  transition: all 0.5s;
}

main {
  display: block;
  flex: 1 auto;
}

/* ======== Navigation ======== */
#nav {
  position: relative;
  margin-top: -2rem;
  width: 100%;
  background-color: #49b1f5;
  background-attachment: local;
  background-position: center;
  background-size: cover;
}

#nav.not_index_bg {
  height: 20rem;
}

#page_site-info {
  position: absolute;
  top: 10rem;
  width: 100%;
}

#site-title {
  color: #eee;
  text-align: center;
  text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15);
  line-height: 1.5;
  font-weight: 700;
  font-size: 1.3rem;
  animation: titlescale 1s;
}

/* ======== Main Content Layout ======== */
#content-outer {
  flex: 1 auto;
}

.layout_page {
  display: flex;
  align-items: flex-start;
  margin: 0 auto;
  padding: 0 5px;
  max-width: 1400px;
}

/* ======== Article Page ======== */
#page {
  margin-top: 10px;
  width: 75%;
  padding: 20px 44px 44px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);
  transition: all 0.3s;
}

.article-container {
  word-break: break-word;
}

/* ======== Sidebar ======== */
#aside_content {
  width: 25%;
}

#aside_content .card-widget {
  overflow: hidden;
  margin: 10px 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);
  transition: all 0.3s;
}

#aside_content .card-content {
  padding: 1rem 1.2rem;
}

#aside_content .card-content .item-headline + div p {
  line-height: 1.5;
  margin: 0.3rem 0;
}

#aside_content .item-headline {
  font-size: 0.8rem;
}

#aside_content .item-headline span {
  margin-left: 0.5rem;
}

/* ======== Card Info (Avatar Section) ======== */
.card-info-avatar {
  text-align: center;
}

#aside_content .card-info img {
  display: inline-block;
  padding: 5px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  vertical-align: top;
  transition: all 0.3s;
  object-fit: cover;
}

img {
  max-width: 100%;
  transition: all 0.2s;
}

#aside_content .card-info .author-info__name {
  font-weight: 500;
  font-size: 1.1rem;
}

#aside_content .card-info .author-info__description {
  margin-top: -0.3rem;
}

#aside_content .card-info .card-info-social-icons {
  margin: 0.3rem 0 -0.3rem;
}

#aside_content .card-info .card-info-social-icons .social-icon {
  margin: 0 0.5rem;
  color: #4c4948;
  font-size: 1.5rem;
}

.is-center {
  text-align: center;
}

/* ======== Navigation Links ======== */
.card-nav-content {
  padding: 0.8rem 1.2rem !important;
}

.navigation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.nav-item {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  color: #4c4948;
  border-radius: 20px;
  background-color: #f5f5f5;
  font-size: 0.85rem;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background-color: #49b1f5;
  color: #fff;
  border-color: #49b1f5;
  box-shadow: 0 2px 4px rgba(73, 177, 245, 0.3);
}

/* ======== Horizontal Rule ======== */
hr {
  position: relative;
  margin: 2rem auto;
  width: calc(100% - 4px);
  border: none;
  border-top: 2px dashed #a4d8fa;
  background: none;
  height: 0;
  overflow: visible;
}

hr::before {
  position: absolute;
  top: -10px;
  left: 5%;
  z-index: 1;
  color: #49b1f5;
  content: '\f0c4';
  font: normal normal normal 14px/1 FontAwesome;
  font-size: 20px;
  transition: all 1s ease-in-out;
}

/* ======== Skills Bar ======== */
.skillbar {
  position: relative;
  display: block;
  max-width: 360px;
  margin: 15px 10px;
  background: #eee;
  height: 30px;
  border-radius: 35px;
  transition: 0.4s linear;
  transition-property: width, background-color;
}

.skillbar .skillbar-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  font-size: 0.9rem;
  color: #ffffff;
  border-radius: 35px;
}

.skillbar .skillbar-title span {
  display: block;
  background: rgba(0, 0, 0, 0.15);
  padding: 0 20px;
  height: 30px;
  line-height: 30px;
  border-radius: 35px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skillbar .skill-bar-percent {
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 12px;
  height: 30px;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.5);
}

/* ======== Sponsor Section ======== */
.sponsor {
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 4px solid #49b1f5;
}

.sponsor p {
  margin: 0.5rem 0;
}

/* ======== Tools Link ======== */
.tool a {
  color: #FF0066;
}

/* ======== Web Info ======== */
#aside_content .card-webinfo .webinfo {
  padding: 0.2rem 1rem;
}

#aside_content .card-webinfo .webinfo .webinfo-item {
  display: block;
  padding: 4px 0 0;
}

#aside_content .card-webinfo .webinfo .webinfo-item div:first-child {
  display: inline-block;
}

#aside_content .card-webinfo .webinfo .webinfo-item div:last-child {
  float: right;
}

/* ======== Footer ======== */
#footer {
  position: relative;
  margin-top: 1rem;
}

#footer-wrap {
  position: relative;
  padding: 1.2rem 1rem;
  text-align: center;
  color: #666;
  line-height: 1.5;
}

#footer-wrap .copyright {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

#footer-wrap a {
  color: #49b1f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

#footer-wrap a:hover {
  color: #ff7242;
}

/* ======== Animations ======== */
@keyframes main {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titlescale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes avatar_turn_around {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#footer, .layout_page, .layout_post {
  animation: main 1s ease-out;
}

/* ======== Scrollbar Styling ======== */
::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #FF0066 0%, #FF00CC 100%);
  width: 85%;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

/* ======== Media Queries ======== */
@media screen and (min-width: 768px) {
  #site-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .layout_page {
    padding: 0 5px !important;
  }

  #page {
    margin: 0;
    padding: 1.8rem 1.3rem;
  }

  body {
    font-size: 13px;
  }
}

@media screen and (max-width: 900px) {
  #page {
    width: 100% !important;
  }

  #aside_content {
    width: 100% !important;
  }

  .layout_page {
    flex-direction: column;
  }
}

@media screen and (min-width: 900px) {
  #aside_content .card-widget {
    margin-right: 15px;
  }
}
