/*
 Theme Name: zNova
 Theme URI: http://bluestar03.xyz/
 Author: zBuLe
 Author URI: http://bluestar03.xyz/
 Description: A custom WordPress theme for zBuLe's website.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: znova
*/
/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

/*GENERAL*/

body {
    color: aliceblue;
    background: #001;
}

a:link, a:visited {
  color: CornflowerBlue;
  text-decoration: none;
}

a:hover, a:active {
  text-decoration: underline;
}

/* Header Container */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: midnightblue; /* Ensure the header color is solid */
}


.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    max-width: 900px;
}

/* Site Branding */
.site-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-width: 80px;
    height: auto;
}

.site-info {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5em;
    color: CornflowerBlue;
}

.site-tagline {
    font-size: 1em;
    color: aliceblue;
    opacity: 0.8;
}

/* Site Navigation */
.site-nav {
    background: none;
}

.primary-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-menu li {
    display: inline;
}

.primary-menu a {
    color: aliceblue;
    text-decoration: none;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

.primary-menu a:hover {
    background-color: CornflowerBlue;
    border-radius: 4px;
}

/* Center Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Post Meta */
.post-meta {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 10px;
}

/* Read More Link */
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: CornflowerBlue;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    color: aliceblue;
    text-decoration: none;
}

.pagination .page-numbers:hover {
    text-decoration: underline;
}

.pagination .current {
    font-weight: bold;
}

/* Footer Styling */
.site-footer {
  background-color: midnightblue;
  color: aliceblue;
  text-align: center;
  padding: 20px 10px;
  margin-top: 20px;
}

.site-footer a {
  color: CornflowerBlue;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}


/* Front Page Styling */
.home-main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section {
  text-align: center;
  padding: 50px 20px;
  background-color: midnightblue;
  color: aliceblue;
}

.hero-section h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.hero-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: CornflowerBlue;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: DarkSlateBlue;
}

.featured-section, .recent-posts-section {
  padding: 40px 20px;
}

.featured-content, .recent-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.featured-section h2, .recent-posts-section h2 {
  text-align: center;
  margin-bottom: 20px;
}




/* Responsive Styling */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .primary-menu {
        flex-direction: column;
        gap: 10px;
    }

    main {
        padding: 10px;
    }
}
