/*
Theme Name: Picosytas Bridge
Theme URI: https://picosytas.com/
Author: Picosytas
Description: Tema puente para entradas de WordPress que avisan al visitante antes de enviarlo al video correspondiente en Picosytas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: picosytas-bridge
*/

:root {
  color-scheme: dark;
  --page: #050505;
  --panel: #111111;
  --panel-soft: #191919;
  --text: #ffffff;
  --muted: #b9b9b9;
  --red: #ff003c;
  --yellow: #ffd400;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 80px rgb(0 0 0 / 46%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 0, 60, 0.2), transparent 22rem),
    radial-gradient(circle at 18% 82%, rgba(255, 212, 0, 0.12), transparent 20rem),
    linear-gradient(180deg, #111111 0, var(--page) 40rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(16px);
}

.header-inner,
.site-main,
.site-footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
}

.logo::before {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 0, 60, 0.18), 0 0 30px rgba(255, 0, 60, 0.85);
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-main {
  padding: clamp(38px, 7vw, 88px) 0;
}

.bridge-shell {
  display: grid;
  gap: 28px;
}

.bridge-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(8, 8, 8, 0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.bridge-content {
  padding: clamp(24px, 5vw, 54px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  color: #120000;
  background: linear-gradient(135deg, var(--yellow), #ffb000);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bridge-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.bridge-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.notice-box {
  margin: 30px 0 0;
  padding: 18px;
  color: #f5f5f5;
  background: rgba(255, 212, 0, 0.08);
  border: 1px solid rgba(255, 212, 0, 0.26);
  border-radius: 16px;
}

.notice-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
}

.bridge-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.go-button,
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  font-weight: 950;
  text-decoration: none;
  border-radius: 999px;
}

.go-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), #b9002c);
  box-shadow: 0 16px 38px rgba(255, 0, 60, 0.28);
}

.home-button {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.external-help {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.external-help.active {
  display: block;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  display: grid;
  align-content: start;
  min-height: 190px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.post-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.16;
}

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

.empty-card {
  padding: 28px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.site-footer {
  padding: 26px 0 42px;
  color: #777777;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-inner,
  .site-main,
  .site-footer {
    width: min(100% - 24px, 1040px);
  }

  .header-inner {
    min-height: 68px;
  }

  .logo {
    font-size: 24px;
  }

  .bridge-card {
    border-radius: 18px;
  }

  .bridge-title {
    font-size: clamp(34px, 12vw, 48px);
  }

  .bridge-actions,
  .go-button,
  .home-button {
    width: 100%;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}
