/*
Theme Name: Glass Tech Blog
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A modern glassmorphic theme for a personal Microsoft-focused blog.
Version: 1.16
License: GNU General Public License v2 or later
Text Domain: glass-tech-blog
*/

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Base */
body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
  background: #f3f3f3;
  color: #1b1b1b;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

/* Background: no blur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('assets/img/abstract-tech-bg.jpg') center/cover no-repeat;
  filter: none;
  z-index: -2;
}

/* Light overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  z-index: -1;
}

/* Typography */
p { margin: 0 0 1em; color: #3a3a3a; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.65em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #111;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
a { color: #0f88ec; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1em 1.3em; }
li { margin-bottom: 0.35em; }

/* Container */
.wrapper {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 22px;
}

/* Glass panel */
.glass-hero {
  margin: 32px auto 42px;
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

/* Header */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.logo {
  color: #0f88ec;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}
.logo img,
.custom-logo-link img {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

/* Navigation + submenus (desktop defaults) */
.nav-menu {
  position: relative;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 4px 2px;
  display: inline-block;
}
.nav-menu a:hover { color: #0f88ec; }

/* Submenu (desktop hover) */
.nav-menu ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.nav-menu ul li:hover > ul { display: block; }
.nav-menu ul li ul li { margin: 0; padding: 0; }
.nav-menu ul li ul a {
  padding: 8px 12px;
  width: 100%;
  color: #333;
}
.nav-menu ul li ul a:hover {
  background: rgba(15,136,236,0.08);
  color: #0f88ec;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.nav-toggle:focus { outline: 2px solid #0f88ec; }

/* Hero */
.hero-content { display: block; margin-top: 24px; }
.hero-text h1 {
  font-size: 44px;
  line-height: 1.2;
  color: #1f1f1f;
  margin-bottom: 14px;
}
.hero-text .highlight { color: #0f88ec; font-weight: 700; }
.hero-text p {
  color: #4a4a4a;
  margin-bottom: 16px;
  max-width: 780px;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #36a5f6, #0f88ec);
  color: #fff;
  padding: 12px 22px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(15,136,236,0.3);
  transition: transform 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); }

/* Sections */
.section { padding: 24px 0 12px; }
.section-title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0f88ec;
}

/* Post list */
.post-list { display: grid; gap: 12px; }
.post-item {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: blur(10px);
}
.post-item h2 { margin-bottom: 8px; font-size: 22px; }
.post-item h2 a { text-decoration: none; color: #1b1b1b; }
.post-item h2 a:hover { color: #0f88ec; }
.post-meta { color: #666; font-size: 13px; margin-bottom: 8px; }
.post-item p { margin-bottom: 8px; color: #444; }

/* Page content wrapper (aligned to posts) */
.page-body .post-item { padding: 18px 20px; }
.page-body .post-item h1 { font-size: 40px; margin-bottom: 0.5em; }
.page-body .post-item p,
.page-body .post-item li,
.page-body .post-item a { font-size: 16px; }

/* Content + Sidebar (homepage only) */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}
.right-sidebar {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.sidebar-widget { margin-bottom: 12px; }
.sidebar-title { font-size: 16px; margin-bottom: 8px; color: #0f88ec; }

/* Comments */
.comment-area { margin-top: 22px; }
.comment-list { list-style: none; margin-bottom: 18px; }
.comment-list li {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}
.comment-author { font-weight: 600; color: #1b1b1b; }
.comment-meta { font-size: 12px; color: #777; margin-top: 4px; }
.comment-content { margin-top: 8px; color: #444; }
.comment-reply-link {
  display: inline-block;
  margin-top: 8px;
  color: #0f88ec;
  font-weight: 600;
  text-decoration: none;
}
.comment-reply-link:hover { text-decoration: underline; }

.comment-form {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
}
.comment-form p { margin-bottom: 10px; }
.comment-form label {
  display: block;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input[type="submit"],
.form-submit input[type="submit"] {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.comment-form .form-submit { margin-top: 8px; }
.comment-form .form-submit input[type="submit"] {
  background: linear-gradient(135deg, #36a5f6, #0f88ec);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15,136,236,0.3);
  transition: transform 0.15s ease;
}
.comment-form .form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
}
.comment-form .comment-notes,
.comment-form .logged-in-as { color: #666; font-size: 13px; }

/* Footer */
footer {
  padding: 22px;
  text-align: center;
  color: #555;
}
.footer-menu {
  margin-bottom: 10px;
}
.footer-menu ul {
  list-style: none;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}
.footer-menu a {
  color: #444;
  font-weight: 500;
  text-decoration: none;
}
.footer-menu a:hover { color: #0f88ec; }

/* Responsive: edge-to-edge on mobile, stacked menu */
@media screen and (max-width: 900px) {
  body { font-size: 15px; }

  .wrapper {
    max-width: 100%;
    padding: 0 10px;
    margin-bottom: 20px;
  }
  .glass-hero {
    margin: 0 0 20px;
    padding: 14px;
    border-radius: 0; /* edge-to-edge look */
    border-left: none;
    border-right: none;
  }
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .logo img,
  .custom-logo-link img {
    max-height: 42px;
  }
  .nav-toggle { display: inline-block; }
  .nav-menu ul {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    display: none;
  }
  .nav-menu.is-open ul { display: flex; }
  .nav-menu ul li ul {
    position: static;
    display: none;
    box-shadow: none;
    padding: 4px 0 0 12px;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }
  .nav-menu ul li.submenu-open > ul { display: block; }
  .nav-menu ul li ul a { padding: 4px 0; }

  .hero-text h1 { font-size: 32px; margin-bottom: 10px; }
  .hero-text p { max-width: 100%; margin-bottom: 12px; }

  .content-with-sidebar { grid-template-columns: 1fr; }

  .post-item { padding: 14px 14px; }
  .post-item h2 { font-size: 20px; }
  .post-meta { font-size: 12px; }
  .page-body .post-item { padding: 14px 14px; }
  .page-body .post-item h1 { font-size: 30px; }
  .page-body .post-item p,
  .page-body .post-item li,
  .page-body .post-item a { font-size: 15px; }
}