html {
  font-family: 'Open Sans', 'helvetica', sans-serif;
  background: white;
  font-size: 16px;
  box-sizing: border-box;
}

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

/* Titles */
/*h1 { text-transform: uppercase }*/
h1, h2 {
	font-weight: normal;
  margin-top: 10px;
  margin-bottom: 10px;
}

#avatar-head {
  background-image: url("/images/blue-bg-square-192x192.jpg");
  width: 192px;
  height: 192px;
  margin: 0px auto;
  border: 0px;
  padding: 0px;
}

.title
{
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  text-transform: none;
  color: #1DAEDF;
  line-height: 1;
  font-weight: 600;
}

.latest
{-
  padding: 10px 10px;
  border-bottom: 1px solid #eee;
}

.post_detail
{
  font-size: 2em;
  line-height: 1em;
}

.entry-content
{
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: justify;
  color: #333;
}

article section .about
{
  font-size: 18px;
  color: #444;
  text-align: justify;
}

article section .blog-post
{
  font-size: 16px;
}

/* Body */
body {
  margin: 0;
}

body > article, footer {
  line-height: 1.6em;
  display: block;
  margin-left: 330px;
  margin-top: 40px;
  margin-right: 40px;
  padding: 20px 30px 10px;
}

body > footer {
  font-size: 0.875em;
  color: #778899;
  text-align: center;
  margin-left: 330px;
  margin-right: 40px;
  margin-top: 0;
}

article ol
{
  padding-left: 0;
}

/* Articles */
p.post_entry {
}
article > header {
  list-style-type: none;
  padding: 0px 10px;
  box-shadow: 0 0 0 2px #1DAEDF;
  -moz-border-radius: 5px 0;
  -webkit-border-radius: 5px 0;
  border-radius: 5px 5px;
}
.article_left > h1 {
  font-size: 20px;
}
.article_right {
  background-color: white;
}
.post_list {
  list-style-type: none;
  padding: 10px 10px;
  -moz-border-radius: 5px 0;
  -webkit-border-radius: 5px 0;
  border-radius: 5px 5px;
}


/* Links */;
a  { color:#1DAEDF; text-decoration:none; }
a:visited { color:#1DAEDF; text-decoration:none; }
a:link { color:#1DAEDF; text-decoration:none; }
a:active { color:#1DAEDF; text-decoration:none; }
a:hover { text-decoration: underline; }

/* Code */
.highlight pre {
  font-size: 14px;
  overflow: auto;
  padding: 8px;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #2980b9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.mobile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 100%;
}

.mobile-logo {
  display: flex;
  align-items: center;
}

#avatar-mobile {
  width: 40px;
  height: 40px;
  background-image: url("/images/blue-bg-square-192x192.jpg");
  background-size: cover;
  border-radius: 50%;
  border: 2px solid #1DAEDF;
}

/* Hamburger Menu */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar */
aside {
  font-size: 14px;
  width: 280px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px;
  background-color: #2980b9;
  color: white;
  box-shadow: 0 0 3px black;
  text-align: center;
  padding-top: 3%;
  background-size: cover;
  overflow-y: auto;
}

aside > ul {
  list-style-type: none;
  padding: 0px 10px;
  margin-top: 0px;
}
aside > h2 {
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 5px;
}

#avatar {
  width: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 10px 20px 0;
  box-shadow: 0px 0px 5px 3px #1DAEDF;
  -webkit-transition: 200ms;
     -moz-transition: 200ms;
      -ms-transition: 200ms;
       -o-transition: 200ms;
          transition: 200ms;
}

#avatar:hover {
  box-shadow: 0px 0px 5px 3px white;
}

.social
{
  display: inline-block;
/*  margin-top: 40px;*/
  margin: 10px auto 0px;
}

.nav
{
  display: block;
  margin-left: -30px;
  margin-right: -30px;
  border: 1px solid #328cc7;
  margin-top: 10px;
}

.nav > ul > li
{
  font-size: 15px;
}

.nav a
{
    color: #fff;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.nav a:hover
{
    background-color: #328cc7;
}

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

.nav__link
{
  display: block;
  padding: 0.77273rem 0;
  border-bottom: 1px solid #328cc7;
}


/*--------Responsive------------*/

/* Tablet and smaller screens */
@media (max-width: 1024px) {
  body > article {
    margin-left: 300px;
    margin-right: 20px;
    padding: 20px;
  }
  
  body > footer {
    margin-left: 300px;
    margin-right: 20px;
    padding: 20px;
  }
}

/* Mobile landscape and smaller */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding-top: 60px;
  }

  .mobile-header {
    display: block;
  }

  aside {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 280px;
    min-height: calc(100vh - 60px);
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  aside.nav-open {
    left: 0;
  }

  body.nav-open::after {
    content: '';
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav {
    margin-left: 0;
    margin-right: 0;
  }

  body > article {
    margin: 0;
    padding: 20px;
  }

  body > footer {
    margin: 0;
    padding: 20px;
  }

  #avatar {
    height: 60px;
    width: 60px;
    margin: 10px auto;
  }

  #avatar-head {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background-size: cover;
  }

  .title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .entry-content {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  article section .about {
    font-size: 16px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  html {
    font-size: 18px;
  }

  aside {
    padding: 15px;
    width: 260px;
  }

  body > article {
    padding: 15px;
  }

  body > footer {
    padding: 15px;
  }

  .title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .post_detail {
    font-size: 1.5em;
    line-height: 1.2em;
  }

  .entry-content {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
  }

  article section .about {
    font-size: 16px;
    text-align: left;
  }

  article section .blog-post {
    font-size: 16px;
  }

  .highlight pre {
    font-size: 14px;
    padding: 10px;
    overflow-x: auto;
  }

  .nav__link {
    padding: 1rem 0;
    font-size: 16px;
  }

  #avatar-head {
    width: 80px;
    height: 80px;
  }

  .mobile-header-content {
    padding: 0 15px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
  a {
    min-height: 44px;
    display: inline-block;
    padding: 8px 0;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social a {
    margin: 0 10px;
    padding: 10px;
  }
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Better focus states for accessibility */
a:focus, .nav__link:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
  }
  
  aside {
    display: block !important;
  }
}

/* Ensure content doesn't get too wide on very large screens */
@media (min-width: 1400px) {
  body > article {
    max-width: 900px;
  }
}
