/* ======================================================================
   Base Imports (reset first, then components)
   ====================================================================== */
@import "./reset.css";

/* ======================================================================
   Design Tokens (CSS Custom Properties)
   ====================================================================== */
:root {
  /* Primary */
  --primary-font-family: "Poppins";
  --maxw: 1100px;
  --radius: 14px;
  --color-primary: #ff7a00;
  --color-primary-hover: #cc6200;
  --color-primary-light: #ffe6cc;
  --color-primary-title: #0fa4af;

  /* Neutral */
  --color-text: #111111;
  --color-text-secondary: #444444;
  --color-border: #b3b3b3;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;

  /* Semantic */
  --color-success: #2e7d32;
  --color-warning: #f9a825;
  --color-error: #c62828;
  --color-info: #1976d2;

  /* Accents */
  --color-purple: #7b1fa2;
  --color-teal: #009688;
}

/* ======================================================================
   Global Resets & Base Typography
   ====================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html body {
  font-family: var(--primary-font-family), system-ui, -apple-system, Segoe UI,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-white);
}

h1,
h2,
h3 {
  font-weight: 600;
}
strong {
  font-weight: 600;
}
p {
  font-weight: 400;
}
li {
  list-style: none;
}

/* Tag pages title */
.tag-page-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary-title);
  text-align: center;
  margin: 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}
/* ======================================================================
   Layout Containers
   ====================================================================== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 0;
}

/* ======================================================================
   Header & Navigation
   ====================================================================== */
.header {
  margin-bottom: 5px;
  background-color: var(--color-primary);
  padding: 10px 20px;
}

.header-flex {
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | nav | socials */
  align-items: center;
  gap: 1rem;
  padding: 10px 0;
}

/* Center the nav items */
.header-nav .navigation {
  display: flex;
  justify-content: center;
  gap: 0.85em;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flex-nav {
  display: flex;
  gap: 0.85em;
  justify-content: center;
  align-items: baseline;
}

.navbar a {
  text-decoration: none;
}

/* Logo + Slogan */
.site-slogan {
  font-size: 1rem;
  font-weight: 700;
}
.logo {
  margin: 0 0 0 0.45em;
}
.logo a {
  color: rgb(28, 24, 22);
}
.logo,
.navigation {
  list-style: none;
  font-family: "Italiana", system-ui, -apple-system;
  font-size: 1.3rem;
}

.logo a,
.navigation a {
  text-decoration: none;
  letter-spacing: 0.2rem;
}

/* Navigation hover/visited */
.navigation a,
.navigation a:visited {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}
.navigation a:hover {
  background: #0fa4af;
  color: white;
}

/* ======================================================================
   Unified Social Icons (Header + Footer)
   ====================================================================== */

/* Containers */
.header-social,
.footer-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.header-social {
  padding-right: 14px;
} /* small right breathing room */

/* Links */
.header-social a,
.footer-social a {
  color: #fff; /* default white on colored bars */
  font-size: 1.4rem;
  line-height: 0; /* remove inline extra space */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0 0.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.header-social a:hover,
.footer-social a:hover {
  transform: translateY(-2px);
}

/* Brand hover colors (apply to both header & footer) */
.header-social a[aria-label="Twitter"]:hover,
.footer-social a[aria-label="Twitter"]:hover {
  color: #1da1f2;
}
.header-social a[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:hover {
  color: #e1306c;
}
.header-social a[aria-label="LinkedIn"]:hover,
.footer-social a[aria-label="LinkedIn"]:hover {
  color: #0077b5;
}

/* ======================================================================
   Footer
   ====================================================================== */
.flex-footer {
  display: flex;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  gap: 0.85em;
  justify-content: center;
  align-items: baseline;
}

.footer {
  background-color: var(--color-primary);
  color: white;
  padding: 20px 0;
  margin-top: 10px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left: flags */
.footer-flags {
  display: flex;
  gap: 0.5rem;
}

/* Center: site name/year */
.footer-center {
  text-align: center;
  font-size: 1rem;
}

/* Right: socials — already unified by .footer-social */

/* ======================================================================
   Sections & Utilities
   ====================================================================== */
.box-notification {
  display: block;
  border: 1px solid firebrick;
  background-color: var(--color-bg);
  padding: 10px 0;
  text-align: center;
  margin-bottom: 5px;
}
.box-notification h2 {
  font-size: 1.3rem;
  color: var(--color-info);
}
.box-notification p {
  font-size: 1.1rem;
  padding: 10px 50px 5px;
}

/* Bio split */
.box-bio {
  display: flex;
  padding: 5px;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem; /* adjust as needed */
}

/* Columns */
.leftclm {
  width: 60%;
  padding: 10px;
}
.rightclm {
  background-color: var(--color-primary-title);
  color: #fff;
  border: 1px solid var(--color-primary-hover);
  padding: 10px;
  width: 40%;
}
.rightclm h2,
.leftclm h2 {
  padding: 20px 10px;
  text-align: center;
}
.leftclm h1 {
  color: var(--color-primary-title);
  padding: 20px 10px;
  text-align: center;
}

/* === Aside: Interesting Links (compact menu style) === */
/* === Aside: Interesting Links === */
.rightclm .interesting-links {
  margin-top: 1.5rem; /* space above the block */
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3); /* subtle divider */
}

.rightclm .interesting-links h2 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: #fff; /* keep headings visible on teal background */
}

.rightclm .interesting-links a {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #ffe6cc; /* warm contrast against teal */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.rightclm .interesting-links a:hover {
  color: #fff; /* brighten on hover */
  text-decoration: underline;
}
.rightclm .interesting-links a::after {
  content: "↗"; /* external link icon */
  margin-left: 6px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ======================================================================
   Hero (legacy two-column section)
   ====================================================================== */
.flex-hero {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 10px;
}
.hero-box-left,
.hero-box-right {
  flex: 1;
  background: #fdfdfd;
  padding: 20px;
  border: 1px solid #ddd;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.hero-box-right h2,
.hero-box-left h2 {
  color: var(--color-primary-title);
  font-size: 1.2rem;
  text-align: center;
  padding-bottom: 20px;
}
.hero-box-p {
  padding-top: 20px;
  font-size: 1rem;
}
.hero-link {
  padding-top: 10px;
  text-align: right;
  font-weight: 600;
  font-size: 1.1rem;
}
.hero-link a,
.hero-link a:visited {
  text-decoration: none;
  color: var(--color-primary);
}
.hero-link a:hover {
  text-decoration: none;
  opacity: 0.6;
}

/* ======================================================================
   Tags & Badges
   ====================================================================== */
.btn-tag {
  display: inline-block;
  font-style: italic;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.tag-featured {
  background: #ff7a00;
  color: #fff;
}
.tag-cocci {
  background: #db7db8;
  color: #fff;
}
.tag-renovation {
  background: #c62828;
  color: #fff;
}
.tag-aussielife {
  background: #287816;
  color: #fff;
}

/* Featured label (generic) */
.featured {
  color: firebrick;
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
}

/* Author accents */
.author-vanni {
  color: #1976d2;
  font-weight: 600;
}
.author-angie {
  color: rebeccapurple;
  font-weight: 600;
}

/* ======================================================================
   Latest Posts (centered, card-style)
   ====================================================================== */
.latest-posts {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  text-align: center;
}
.latest-posts-heading {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--color-primary-title);
}

.box-latest-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
.box-latest-container ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.box-latest-container li {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.box-latest-container li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card titles (list) */
.box-latest-container .post-title-snippet {
  color: var(--color-primary-title);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
}

/* Smaller variant of hero title for cards */
.post-title-card {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
  color: var(--color-primary-title);
}
.post-title-card:hover {
  color: var(--color-primary-hover);
}

/* Meta + tags spacing in posts */
.post {
  padding: 10px;
}
.post-list li {
  display: flex;
  flex-direction: column;
}
.post__content {
  padding-top: 10px;
}
.post__meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  padding-bottom: 5px;
}
.post__tags {
  padding-bottom: 10px;
}
.post-title li {
  padding-bottom: 10px;
}
.post-title {
  color: var(--color-primary-title);
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 20px;
  text-decoration: none;
}
.post-title a,
.post-title a:visited {
  text-decoration: none;
  color: var(--color-primary);
}
.post-title a:hover {
  color: var(--color-primary-hover);
}
.post-date {
  color: #b3b3b3;
}
.post-author {
  color: #1976d2;
}
.post-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
}
.post__nav a {
  text-decoration: none;
  color: var(--color-primary);
}
.post__nav a:hover {
  text-decoration: none;
  color: var(--color-primary-hover);
}
.left-padding {
  padding-left: 10px;
}

/* ======================================================================
   Thumbnails & Responsive Images
   ====================================================================== */
.img {
  width: 100%;
  padding: 0;
}

/* Homepage/featured thumbnail */
.post-thumb {
  display: block;
  padding-top: 10px;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}

/* Smaller list thumbnail */
.post-thumb-list {
  display: block;
  padding-top: 10px;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}

/* Shortcode <img> inside <picture> */
.post-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================================================================
   Gallery (co-located images in posts)
   ====================================================================== */
.gallery {
  display: flex;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
}
.gallery__item {
  margin: 0;
}
.gallery__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  padding: 10px 0;
}
.gallery__item picture {
  display: block;
}

/* Post hero image wrapper */
.post-hero {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================================================================
   Fancy dual hero (spotlight)
   ====================================================================== */
.hero-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem; /* adjust as needed */
  gap: 18px;
  padding: 14px;
  background: radial-gradient(
      1200px 500px at 10% -10%,
      rgba(15, 164, 175, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1200px 500px at 90% -10%,
      rgba(255, 122, 0, 0.1),
      transparent 60%
    );
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Card */
.hero-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

/* Media panel */
.hero-card__media {
  position: relative;
  background: #f9fafb;
  min-height: 180px;
}
.hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.hero-card__body {
  padding: 14px 14px 12px 0;
  display: grid;
  align-content: start;
  gap: 8px;
}
.hero-card__title {
  margin: 6px 0 2px;
  font-size: 1.25rem;
  color: var(--color-primary-title);
  text-align: left;
}
.hero-card__meta {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.hero-card__excerpt {
  margin-top: 6px;
}
.hero-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Smaller CTA button inside hero cards */
.hero-card__cta .btn {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background-color: #1976d2;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}
.hero-card__cta .btn:hover {
  background-color: #125ca1;
}

/* Badges */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.badge--featured {
  background: #ff7a00;
}
.badge--aussie {
  background: #0fa4af;
}

/* Generic badge style (non-absolute) */
.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-primary-light);
  color: firebrick;
}
.badge.aussielife {
  background-color: #1976d2;
  color: #fff;
}
.badge.featured {
  background-color: #ff7a00;
  color: #fff;
}
.badge--featured-red {
  background: #c62828;
  color: #fff;
}
.badge.renovation {
  background-color: #c62828;
  color: #fff;
}

/* ===== Tag pages list (title — date · author) ===== */

/* ============================
   All Tags page: simple list
   ============================ */
/* All Tags page: simple list */
/* All Tags page styled as chips */

/* Tag page list: keep each post on its own line */
.tag-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0 0 0 1rem; /* add left padding */
  display: block; /* ensure not flex/inline */
}

.tag-list .tag-item {
  display: block; /* each entry is a block row */
  margin: 0 0 0.75rem 0;
}

.tag-list .tag-item__title {
  display: inline; /* title and meta on one line (desktop) */
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.tag-list .tag-item__title a {
  color: var(--color-primary-title);
  text-decoration: none;
}

.tag-list .tag-item__title a:hover {
  color: var(--color-primary-hover);
}

.tag-list .tag-item__meta {
  display: inline; /* sits next to title */
  margin-left: 0.45rem; /* small gap before date/author */
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-title);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-chip:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.tag-count {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Spacing between tag chips */
/* All Tags chip list */
.all-tags-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem; /* spacing between chips */
  padding: 0;
  margin: 1rem 0;
}

.all-tags-list li {
  list-style: none;
}

.all-tags-list a.tag-chip {
  display: block;
  padding: 0.4rem 0.8rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-primary-title);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.all-tags-list a.tag-chip:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}

.tag-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap; /* allows wrapping when narrow */
}

.tag-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.tag-item__title a {
  color: var(--color-primary);
  text-decoration: none;
}
.tag-item__title a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

.tag-item__meta {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  white-space: nowrap; /* keep "— 05 Sep 2025 · Author: X" together on wide screens */
}

/* Mobile: put meta under the title */
@media (max-width: 640px) {
  .tag-item {
    align-items: flex-start;
  }
  .tag-item__meta {
    width: 100%;
    margin-left: 0; /* new line under title */
    white-space: normal; /* allow wrapping on very narrow screens */
    font-size: 0.9rem;
    margin-top: 2px;
  }

  .tag-list .tag-item__title {
    display: block;
  }
  .tag-list .tag-item__meta {
    display: block;
    margin: 0.2rem 0 0 0; /* reset left gap, add a little top space */
  }
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 900px) {
  .hero-spotlight {
    grid-template-columns: 1fr;
  }
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-card__body {
    padding: 12px 12px 16px;
  }
}

@media (max-width: 768px) {
  .gallery {
    flex-direction: column;
  }
  .flex-hero {
    flex-direction: column;
  }
  .box-bio {
    flex-direction: column;
  }

  .rightclm,
  .leftclm {
    flex: none;
    width: 100%;
  }
  .hero-box-left,
  .hero-box-right {
    flex: none;
    width: 100%;
  }

  .header {
    padding: 0 10px;
  }

  .flex-nav {
    flex-direction: column;
    text-align: center;
    padding-bottom: 5px;
    width: 100%;
  }
  .flex-nav a {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .flex-nav li:last-of-type a {
    border-bottom: none;
  }

  .snippet {
    flex-direction: column;
  }

  .header-flex {
    grid-template-columns: 1fr auto; /* logo+nav then socials */
    grid-row-gap: 8px;
  }
  .header-nav {
    grid-column: 1 / -1;
  } /* nav full width row under logo */
  .header-nav .navigation {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.6rem;
  }
  .footer-center {
    order: 3;
  } /* optional: copyright last on mobile */
}
