/*
Theme Name: Alcroen Match
Theme URI: https://alcroen.com
Author: Alcroen
Author URI: https://alcroen.com
Description: Custom theme styled to match alcroen.com with a sticky translucent top navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: alcroen-match
*/

:root {
  --navbar-height: 64px;
  --navbar-bg: rgba(255, 255, 255, 0.7);
  --navbar-border: #e5e7eb;
  --text-color: #111827;
  --muted-text: #4b5563;
  --accent: #111827;
  --surface: #ffffff;
  --primary-btn: #3a82c3;
  --primary-btn-hover: #559acf;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-color);
  background: #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--navbar-border);
  background: var(--navbar-bg);
  backdrop-filter: blur(14px) saturate(150%);
}

.site-header {
  max-width: none;
  margin: 0;
  height: var(--navbar-height);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-left: 10px;
  margin-left: 0;
  order: 1;
}

.brand a {
  display: inline-flex;
  align-items: center;
  height: var(--navbar-height);
}

.brand-logo {
  display: block;
  width: auto;
  height: var(--navbar-height);
}

.top-navigation {
  order: 3;
  margin-left: auto;
  margin-right: 0;
  padding-right: 10px;
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
  order: 2;
}

.top-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-navigation a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--muted-text);
  font-size: 1.03rem;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease;
}

.top-navigation a:hover,
.top-navigation a:focus-visible,
.top-navigation .current-menu-item > a {
  color: var(--accent);
  background: rgba(17, 24, 39, 0.08);
}

.top-navigation .menu-item-login a {
  background: var(--primary-btn);
  color: #fff;
  padding: 0 1rem;
  border-radius: 14px;
}

.top-navigation .menu-item-login a:hover,
.top-navigation .menu-item-login a:focus-visible {
  background: var(--primary-btn-hover);
  color: #fff;
}

.site-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.entry-card {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.entry-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.entry-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.read-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--primary-btn);
  background: var(--primary-btn);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.read-more-button:hover,
.read-more-button:focus-visible {
  border-color: var(--primary-btn-hover);
  background: var(--primary-btn-hover);
  color: #ffffff;
}

.site-footer {
  width: 100%;
  min-height: 64px;
  background: var(--primary-btn);
  color: #ffffff;
  padding: 0 12px;
}

.site-footer-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 0.95rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-link-center {
  justify-self: center;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  justify-self: start;
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  display: block;
}

.footer-copy {
  color: #ffffff;
  justify-self: end;
  text-align: right;
}

@media (max-width: 880px) {
  .brand-logo {
    height: var(--navbar-height);
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .top-navigation {
    position: absolute;
    top: calc(var(--navbar-height) + 1px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--navbar-border);
    display: none;
    padding: 0.5rem;
  }

  .top-navigation.open {
    display: block;
  }

  .top-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .top-navigation a {
    justify-content: flex-start;
    border-radius: 0.6rem;
  }

  .site-footer-inner {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .footer-link-center {
    justify-self: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    font-size: 0.88rem;
  }
}
