/* src/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html {
    box-sizing: border-box;
}

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

:root {
    --navbar-height: 56px;
    --bg-color: #f4f4f4;
    --primary-link-color: black;
    --secondary-link-color: #333;
    --md: 768px;
    --sm: 640px;
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: #333;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--bg-color);
    padding: 0 16px;
    border-bottom: 2px solid #eee;
}

.navbar-content {
    width: 100%;
    height: 100%;
    padding: 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-name {
    color: var(--primary-link-color);
    font-weight: 600;
    text-decoration: none;
}

/* New CSS for the right-side links container */
.navbar-links ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.navbar-links a {
    color: var(--primary-link-color);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 5px;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

ul {
    list-style: none;
    padding-left: 0;
}

li a {
    color: var(--secondary-link-color);
    text-decoration: none;
    font-weight: 600;
}

li a:visited {
    color: var(--secondary-link-color);
    text-decoration: none;
}

li a:hover {
    color: var(--secondary-link-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

main {
    max-width: var(--md);
    margin: 20px auto;
    padding: 0 16px;
    border-radius: 8px;
}

.post-tags {
    user-select: none;
}

.post-tag {
    background-color: var(--bg-color);
    border-radius: 4px;
    padding: 0.2em 0.5em; /* Slightly more padding for a wider, fuller look */
    border: 2px solid #333;
    color: var(--primary-link-color);
    font-size: 0.75em;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    font-weight: 500;
}

.post-tag:hover {
    background-color: #333;
    color: white;
    transition: all 0.1s;
}

.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px black;
  cursor: zoom-out;
}