/*
Theme Name: Picositas Entradas
Theme URI: https://picositas.com/
Author: Codex
Description: Tema WordPress simple para mostrar entradas en portada y un boton de Telegram debajo del contenido.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: picositas
*/

:root {
  color-scheme: dark;
  --bg: #1b1b1b;
  --header: #111;
  --card: #2b2b2b;
  --card-dark: #191919;
  --line: #3b3b3b;
  --text: #f6f6f6;
  --muted: #d0d0d0;
  --blue: #2384c6;
  --blue-hover: #1b73ad;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img,
video,
iframe {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 18px 20px;
  background: var(--header);
  box-shadow: 0 2px 7px rgb(0 0 0 / 45%);
}

.brand {
  color: var(--text);
  font-size: 29px;
  font-weight: 700;
  text-decoration: none;
}

.content {
  width: 100%;
  padding: 34px 20px 24px;
}

.page-title {
  margin: 0 0 26px;
  font-size: 35px;
  line-height: 1.15;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  min-height: 253px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  flex-direction: column;
  box-shadow: 0 2px 6px rgb(0 0 0 / 22%);
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: #6170a6;
  outline: none;
  transform: translateY(-1px);
}

.post-thumb {
  display: grid;
  min-height: 200px;
  background:
    linear-gradient(rgb(0 0 0 / 44%), rgb(0 0 0 / 44%)),
    repeating-linear-gradient(135deg, #202020 0 8px, #1c1c1c 8px 16px);
  place-items: center;
}

.post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.62);
}

.fake-screen {
  display: grid;
  width: min(74%, 214px);
  aspect-ratio: 16 / 9;
  background: #282828;
  border-radius: 4px;
  place-items: center;
}

.play {
  position: relative;
  display: inline-grid;
  width: 70px;
  aspect-ratio: 1;
  border: 1px solid #c7d2ff;
  border-radius: 50%;
  place-items: center;
}

.play::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 28px solid #fff;
  content: "";
}

.post-card-title {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 15px;
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.single-wrap {
  width: min(100%, 980px);
  margin: 0 auto;
}

.single-title {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.15;
}

.entry-content {
  width: 100%;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

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

.entry-content video,
.entry-content iframe,
.entry-content .wp-video,
.entry-content .wp-block-video,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper {
  width: 100% !important;
  max-width: 100%;
}

.entry-content video,
.entry-content iframe {
  border-radius: 7px;
  background: #000;
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 28px 0 16px;
  padding: 0 28px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  background: var(--blue);
  border-radius: 8px;
}

.telegram-button:hover,
.telegram-button:focus-visible {
  background: var(--blue-hover);
  outline: none;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  padding: 20px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header {
    min-height: 60px;
    padding: 16px;
  }

  .brand {
    font-size: 25px;
  }

  .content {
    padding: 28px 12px 20px;
  }

  .page-title,
  .single-title {
    font-size: 31px;
  }

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

  .entry-content {
    font-size: 16px;
  }

  .telegram-button {
    width: 100%;
  }
}
