// Import Partial Files
@import '_variables';
@import '_header';
@import '_footer';

// Global Styles
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  scroll-behavior: smooth;
  color: #000;
}

.container {
  padding: 0;
}

// Link Styles
body, html {
  overflow-x: hidden;
}

a {
  color: #727272;
  text-decoration: none;

  &:visited {
    color: #007bff; /* Same as above, for visited links */
  }
}

// Primary Content Area
#primary {
  article {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 10px;
    margin: 0 0 1rem;

    .entry-content {
      p {
        font-size: 0.85rem;
        opacity: 0.8;
      }
    }

    .entry-meta {
      font-size: 0.85rem;
      opacity: 0.8;
    }
  }

  // Responsive Adjustments
  @media (max-width: 600px) {
    padding: 20px;
    margin-left: 0;
  }

  @media (max-width: 1024px) {
    display: block;
    margin: 0;
    padding: 0;
  }

  // Entry Title Link Styles
  .entry-title a {
    color: #121212;
    text-decoration: none;
    font-size: 26px;
  }
}

main.grid {
  .post-content {
    text-align: center;
    padding: 1rem;
  }
}

// Sidebar (Secondary Content Area)
#secondary {
  color: rgb(27, 27, 27);
  border-left: solid 1px #eee;

  ul {
    list-style: none;
    margin: 0;

    li {
      padding: 10px 0;

      a {
        color: #727272;
        text-decoration: none;
      }
    }
  }

  .widget {
    margin-bottom: 10px;
    padding: 20px;

    a {
      color: #727272;
      text-decoration: none;
    }
  }
}

// Image Styling
img {
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

// Social Menu Wrapper
.social-menu-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #929292;
  height: 2rem;
}

// Social Menu Styling
.menu-social-menu-container {
  #social-menu {
    ul {
      display: flex;
      list-style: none;
    }

    a {
      position: relative;
      color: transparent;
      display: inline-block;
      width: 32px;
      overflow: hidden;

      &:after {
        display: block;
        font-family: "Font Awesome 5 Brands";
        font-weight: 400;
        font-size: 15px;
        position: absolute;
        top: 0;
      }

      &[href*="twitter.com"]:after {
        content: "\f099";
        color: #00aced;
      }

      &[href*="github.com"]:after {
        content: "\f09b";
        color: black;
      }

      &[href*="linkedin.com"]:after {
        content: "\f0e1";
        color: #007bb6;
      }
    }
  }

  #social-menu a:after {
    color: #fff !important;
    padding: 3px 9px;
    border-radius: 50%;
  }
}

// Hide Search Form on Small Screens
@media (max-width: 992px) {
  .search-form {
    display: none;
  }
}

// Custom Hover Effect for Content Loop
.row.custom-loop {
  .col-md-4 {
    position: relative;

    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #2098d1;
      color: white;
      transform: scaleY(0);
      transform-origin: 50% 100%;
      transition: transform 0.5s ease-out;
    }

    &:hover {
      color: white;

      &:before {
        transform: scaleY(1);
        transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
      }
    }
  }
}
