/*
Theme Name: Theo Portfolio Base
Theme URI: https://theo.balem.app/
Author: Theo Balabaud
Author URI: https://theo.balem.app/
Description: Theme WordPress minimal, rapide et sans sidebar, pense pour accompagner le plugin de portfolio Theo Balabaud.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theo-portfolio-base
*/

:root {
  --tp-bg: #050509;
  --tp-surface: #11111a;
  --tp-surface-soft: #171725;
  --tp-text: #f5f3ff;
  --tp-muted: #bdb8d4;
  --tp-border: rgba(255, 255, 255, 0.1);
  --tp-orange: #ff8200;
  --tp-pink: #9d0047;
  --tp-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2 {
  font-family: "Archivo Black", "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tp-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--tp-border);
  background: rgba(5, 5, 9, 0.88);
  backdrop-filter: blur(16px);
}

.admin-bar .tp-header {
  top: 32px;
}

.tp-header-inner,
.tp-footer-inner,
.tp-container {
  width: min(var(--tp-width), calc(100% - 40px));
  margin: 0 auto;
}

.tp-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tp-text);
  text-decoration: none;
  font-weight: 800;
}

.tp-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
}

.tp-brand-text {
  display: grid;
  line-height: 1.15;
}

.tp-brand-name {
  font-weight: 900;
}

.tp-brand-sub {
  color: var(--tp-muted);
  font-size: 0.8rem;
}

.tp-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(245, 243, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.tp-menu a:hover,
.tp-menu .current-menu-item > a {
  color: #000;
  background: var(--tp-orange);
}

.tp-main {
  flex: 1;
}

.tp-main .tp-container {
  padding: 72px 0;
}

.tp-entry,
.tp-card {
  padding: 34px;
  border: 1px solid var(--tp-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 23, 37, 0.95), rgba(10, 10, 18, 0.95));
}

.tp-entry-title,
.tp-archive-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.tp-entry-meta {
  margin-bottom: 18px;
  color: var(--tp-muted);
  font-size: 0.92rem;
}

.tp-entry-content > *:first-child {
  margin-top: 0;
}

.tp-entry-content > *:last-child {
  margin-bottom: 0;
}

.tp-entry-content p,
.tp-entry-content li {
  color: var(--tp-muted);
}

.tp-entry-content a {
  color: var(--tp-orange);
  text-underline-offset: 4px;
}

.tp-post-list {
  display: grid;
  gap: 22px;
}

.tp-post-card {
  display: grid;
  gap: 12px;
}

.tp-post-card h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.tp-post-card p {
  margin: 0;
  color: var(--tp-muted);
}

.tp-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--tp-orange);
  color: #000;
  text-decoration: none;
  font-weight: 900;
}

.tp-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.tp-footer {
  border-top: 1px solid var(--tp-border);
  background: #050509;
}

.tp-footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--tp-muted);
  font-size: 0.92rem;
}

.tp-footer a {
  color: var(--tp-text);
  text-decoration: none;
}

.tp-footer a:hover {
  color: var(--tp-orange);
}

.tp-empty,
.tp-404 {
  text-align: center;
}

.tp-404 .tp-entry-title {
  max-width: 12ch;
  margin-right: auto;
  margin-left: auto;
}

.tp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

body.wm-portfolio-template .tp-header,
body.wm-portfolio-template .tp-footer {
  display: none;
}

@media (max-width: 782px) {
  .admin-bar .tp-header {
    top: 46px;
  }

  .tp-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .tp-menu {
    justify-content: flex-start;
  }

  .tp-main .tp-container {
    padding: 46px 0;
  }

  .tp-entry,
  .tp-card {
    padding: 24px 20px;
  }

  .tp-footer-inner {
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
