/*
Theme Name: Ogyverse Portal Pro
Theme URI: https://ogy.cz/
Author: Pavel "Ogy"
Author URI: https://ogy.cz/
Description: Profesionální dark/neon osobní šablona pro ogy.cz s portálovými boxy, plnou integrací do WordPress administrace a možností vkládat video/GIF/HTML do každého boxu.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ogyverse-portal-pro
*/

/* ZÁKLADNÍ PROMĚNNÉ A RESET */

:root {
  --bg-main: #020617;
  --bg-card: #020818;
  --bg-card-soft: #050a1a;
  --accent-primary: #36f1cd;
  --accent-secondary: #60a5fa;
  --accent-purple: #a855ff;
  --accent-warm: #fb923c;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.3);
  --border-subtle: rgba(15, 23, 42, 0.9);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.85);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.25), transparent 60%),
    radial-gradient(circle at 12% 20%, rgba(168, 85, 247, 0.2), transparent 60%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 1), #020617 65%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* STRÁNKOVÝ OBAL */

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 16px 56px;
}

/* HLAVIČKA */

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-orbit {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  padding: 2px;
  background:
    conic-gradient(from 200deg, var(--accent-primary), var(--accent-secondary), var(--accent-purple), var(--accent-primary));
  box-shadow: 0 0 18px rgba(54, 241, 205, 0.5);
}

.logo-orbit-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 15%, rgba(148, 163, 184, 0.5), #020617 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.10em;
  color: var(--text-main);
}

.logo-text-main {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 14px;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  justify-content: flex-end;
}

.chip {
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
}

.chip.accent {
  border-color: rgba(54, 241, 205, 0.7);
  color: var(--accent-primary);
  background: radial-gradient(circle at 0 0, rgba(54, 241, 205, 0.12), rgba(15, 23, 42, 0.95));
}

/* HERO BLOK */

.hero-shell {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.1), transparent 60%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  padding: 26px 22px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -80px -160px auto auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(54, 241, 205, 0.25), transparent 60%),
    radial-gradient(circle at 70% 0%, rgba(96, 165, 250, 0.35), transparent 60%);
  opacity: 0.85;
  filter: blur(8px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.hero-left {
  max-width: 520px;
}

.hero-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-title {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-out;
  text-decoration: none;
}

.btn-primary {
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #020617;
  box-shadow: 0 14px 32px rgba(54, 241, 205, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 20px 40px rgba(54, 241, 205, 0.7);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.9);
  transform: translateY(-1px);
}

.hero-footnote {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-footnote-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-primary);
}

.hero-right {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.06), transparent 60%),
              linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.8);
}

.hero-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  padding: 2px;
  background:
    conic-gradient(from 210deg, var(--accent-primary), var(--accent-secondary), var(--accent-purple), var(--accent-primary));
}

.hero-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 25% 10%, rgba(148, 163, 184, 0.6), #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.hero-profile-main {
  font-size: 14px;
  font-weight: 600;
}

.hero-profile-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.hero-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.95);
}

.hero-highlight-box {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  padding: 9px 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.metric-card {
  border-radius: 14px;
  background: #020617;
  border: 1px solid var(--border-subtle);
  padding: 7px 8px 8px;
}

.metric-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-value {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 1px;
}

.metric-note {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.9);
}

.metric-card:nth-child(1) {
  border-color: rgba(34, 197, 94, 0.7);
}

.metric-card:nth-child(2) {
  border-color: rgba(96, 165, 250, 0.7);
}

.metric-card:nth-child(3) {
  border-color: rgba(248, 250, 252, 0.14);
}

/* SEKCE PORTÁLŮ */

.section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
}

.section-right-label {
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.9);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr;
  grid-auto-rows: minmax(120px, auto);
  gap: 14px;
}

.portal-card {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.08), transparent 60%),
    linear-gradient(150deg, var(--bg-card), var(--bg-card-soft));
  border: 1px solid rgba(15, 23, 42, 1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  padding: 14px 14px 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background 0.18s ease-out;
  text-decoration: none;
  color: inherit;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  border-color: rgba(148, 163, 184, 0.75);
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.12), transparent 60%),
    linear-gradient(150deg, #020617, var(--bg-card-soft));
}

.portal-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.portal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.portal-title {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.portal-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  white-space: nowrap;
}

.portal-body {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.85);
  margin-top: 6px;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-primary);
}

.portal-arrow {
  font-size: 14px;
}

.portal-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: rgba(148, 163, 184, 0.9);
}

.portal-accent-green {
  border-color: rgba(34, 197, 94, 0.7);
}

.portal-accent-blue {
  border-color: rgba(59, 130, 246, 0.7);
}

.portal-accent-purple {
  border-color: rgba(168, 85, 247, 0.7);
}

.portal-accent-warm {
  border-color: rgba(251, 146, 60, 0.7);
}

.portal-card.large {
  grid-row: span 2;
}

.portal-bg-mark {
  position: absolute;
  right: -12px;
  bottom: -18px;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.95);
  pointer-events: none;
}

/* SLOTY PRO VIDEO / GIF / IKONY UVNITŘ BOXŮ */

.portal-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), #020617 70%);
  margin-bottom: 10px;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.portal-media.video {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* generický slot – může být prázdný nebo obsahovat <video>, <img>, <iframe> atd. */
.portal-media-slot video,
.portal-media-slot img,
.portal-media-slot iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portal-media-placeholder-label {
  position: absolute;
  inset: 8px auto auto 10px;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-muted);
}

.portal-media-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.85)),
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.3), transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.portal-media-icon-inner {
  width: 75%;
  height: 75%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  text-align: center;
  color: var(--text-muted);
}

/* uvnitř .portal-media-icon můžeš dát <img> nebo <video> malého gifu/animace */
.portal-media-icon img,
.portal-media-icon video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* rozšířený title row s ikonou */
.portal-title-row.with-icon {
  align-items: center;
}

/* OBECNÉ OBSAHOVÉ STYLY */

.site-main {
  max-width: 1160px;
  margin: 0 auto;
}

.page-default-wrapper {
  margin-top: 32px;
  padding: 22px 18px 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.06), transparent 60%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
}

.page-default-wrapper h1,
.page-default-wrapper h2,
.page-default-wrapper h3 {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-top: 0;
}

.page-default-wrapper p {
  margin-bottom: 0.9rem;
  color: var(--text-muted);
}

a {
  color: var(--accent-primary);
}

a:hover {
  color: var(--accent-secondary);
}

/* PATIČKA */
.site-footer {
  margin-top: 32px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

/* RESPONSIVITA */

@media (max-width: 960px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .chip-row {
    justify-content: flex-start;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
  }
}

@media (max-width: 768px) {
  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .portal-card.large {
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .page {
    padding-inline: 14px;
  }
  .hero-shell {
    padding: 20px 16px 18px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === OGY CHALLENGE 2025 – ÚPRAVA STRÁNKY, TABULKY A BAREV === */

body.page-ogy-challenge-2025 .site-main {
  max-width: 1160px !important;
}

body.page-ogy-challenge-2025 .page-default-wrapper {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.page-ogy-challenge-2025 .page-default-wrapper * {
  color: #000000 !important;
}

body.page-ogy-challenge-2025 .page-default-wrapper table,
body.page-ogy-challenge-2025 .page-default-wrapper table *,
body.page-ogy-challenge-2025 .page-default-wrapper table th,
body.page-ogy-challenge-2025 .page-default-wrapper table td {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  opacity: 1 !important;
}

/* Globální styl pro tabulky – aby byly čitelné všude */
table,
table th,
table td {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

table *,
table th *,
table td * {
  color: inherit;
  opacity: 1;
}

/* Video na homepage téměř přes celou šířku portálu, ale s malou mezerou */
body.home .portal-card .portal-media {
  width: calc(100% + 16px);
  margin-left: -8px;
  margin-right: -8px;
  margin-top: 0;
  margin-bottom: 10px;
  border-radius: 20px;
}
