/* PreesF theme overrides for Telepage — load after assets/css/style.css */
:root {
  --bg: #050505 !important;
  --bg-card: #0a0e14 !important;
  --text: #f4f7fb !important;
  --text-muted: #c2ccd8 !important;
  --accent: #00eaff !important;
  --accent-2: #0077ff !important;
  --border: rgba(255, 255, 255, 0.1) !important;
  --radius: 1rem !important;
}

body,
html {
  background: #050505 !important;
  color: #f4f7fb !important;
  font-family: Inter, system-ui, sans-serif !important;
}

a {
  color: #00eaff !important;
}

header,
.site-header,
.navbar {
  background: rgba(5, 5, 5, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.card,
.content-card,
.item-card {
  background: #0a0e14 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 1rem !important;
}

.btn,
button,
.tag {
  border-radius: 0.75rem !important;
}

.btn-primary,
.button-primary {
  background: linear-gradient(135deg, #00eaff, #0077ff) !important;
  color: #041018 !important;
  border: none !important;
}

.search input,
input[type="search"],
input[type="text"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f7fb !important;
}


/* PreesF cleanup v3 — no type filter images / powered-by already removed in HTML */
.card-media {
  display: none !important;
}

.content-card {
  overflow: hidden;
}

.card-content {
  padding: 1.15rem 1.25rem !important;
}

.card-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.card-type-inline {
  margin-right: 0.35rem;
}

.card-title {
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  margin: 0.45rem 0 !important;
}

.card-description {
  color: #c2ccd8 !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

.brand-name {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.section-title {
  color: #9aa7b8 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* News detail modal v4 */
.news-modal[hidden] { display: none !important; }
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}
.news-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #0a0e14;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.news-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: rgba(255,255,255,0.06);
  color: #c2ccd8;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  cursor: pointer;
  font-size: 1rem;
}
.news-modal-close:hover { color: #fff; background: rgba(0,234,255,0.15); }
.news-modal-meta {
  color: #9aa7b8;
  font-size: 0.8rem;
  margin: 0 2rem 0.65rem 0;
}
.news-modal-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  padding-right: 1.5rem;
}
.news-modal-body {
  white-space: pre-wrap;
  color: #e8eef6;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}
.news-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}
.news-modal-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #00eaff, #0077ff);
  color: #041018 !important;
  font-weight: 700;
  text-decoration: none !important;
}
.news-modal-done {
  padding: 0.7rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #f4f7fb;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.card-permalink {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

/* Pagination + sidebar cleanup v5 */
.page-btn {
  color: #e8eef6 !important;
}
.page-btn:hover,
.page-btn.active {
  background: var(--accent-color, #00eaff) !important;
  border-color: var(--accent-color, #00eaff) !important;
  color: #041018 !important;
  box-shadow: 0 4px 14px rgba(0, 234, 255, 0.35) !important;
}
#tag-section[hidden],
#tag-section[aria-hidden="true"] {
  display: none !important;
}

/* Sidebar redesign v6 */
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px !important;
  background: linear-gradient(180deg, #070b12 0%, #050505 55%) !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
}
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: calc(100vh - 50px);
}
.header {
  margin-bottom: 0 !important;
  gap: 16px !important;
}
.brand {
  gap: 14px !important;
}
.brand-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,234,255,0.22);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-name {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f4f7fb !important;
}
.brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7f8ea3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-shell:focus-within {
  background: rgba(0,234,255,0.06);
  border-color: rgba(0,234,255,0.55);
  box-shadow: 0 0 0 4px rgba(0,234,255,0.12);
}
.search-shell .search-icon {
  position: static;
  transform: none;
  display: grid;
  place-items: center;
  width: 44px;
  flex-shrink: 0;
  color: #7f8ea3;
}
.search-shell:focus-within .search-icon { color: #00eaff; }
.search-shell .search-input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 14px 8px 14px 0 !important;
  font-size: 0.95rem !important;
  color: #f4f7fb !important;
  border-radius: 0 !important;
}
.search-shell .search-input::placeholder {
  color: #8090a4;
}
.search-clear {
  margin-right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #c2ccd8;
  cursor: pointer;
  font-size: 12px;
}
.search-clear:hover { color: #fff; background: rgba(0,234,255,0.16); }
.search-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #6d7c90;
  padding-left: 4px;
}

.sidebar-panel {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.sidebar-kicker {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8090a4;
}
.sidebar-blurb {
  margin: 0 0 14px;
  color: #c2ccd8;
  font-size: 0.9rem;
  line-height: 1.5;
}
.sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,234,255,0.06);
  border: 1px solid rgba(0,234,255,0.12);
}
.stat-pill strong {
  color: #00eaff;
  font-size: 0.95rem;
  font-weight: 800;
}
.stat-pill span {
  color: #8b9aaf;
  font-size: 0.7rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background .15s, border-color .15s, transform .15s;
}
.sidebar-link:hover {
  background: rgba(0,234,255,0.07);
  border-color: rgba(0,234,255,0.28);
  transform: translateY(-1px);
}
.sidebar-link-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.sidebar-link-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sidebar-link-txt strong {
  color: #f4f7fb;
  font-size: 0.92rem;
  font-weight: 700;
}
.sidebar-link-txt small {
  color: #8090a4;
  font-size: 0.72rem;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.sidebar-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00eaff, #0077ff);
  color: #041018 !important;
  font-weight: 800;
  text-decoration: none !important;
  font-size: 0.9rem;
}
.sidebar-foot p {
  margin: 0;
  color: #66768c;
  font-size: 0.72rem;
  text-align: center;
}

.card-source {
  color: #8b9aaf !important;
  font-size: 0.78rem !important;
  font-weight: 600;
}
.card-type-inline { display: none !important; }
