/*
Theme Name: TTUC Retro Grid
Theme URI: https://example.com/
Author: OpenAI Codex
Description: A retro 3-column WordPress theme inspired by late-2000s fan sites, with a banner header, horizontal image-friendly navigation, left sidebar links, central news posts, and right-column video thumbnails.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ttuc-retro-grid
*/

:root {
  --ttuc-bg: #040404;
  --ttuc-panel: #07076f;
  --ttuc-panel-dark: #02024e;
  --ttuc-border: #0088ff;
  --ttuc-text: #ffffff;
  --ttuc-link: #14a4ff;
  --ttuc-link-hover: #74d0ff;
  --ttuc-accent: #000000;
  --ttuc-max-width: 1040px;
  --ttuc-left: 220px;
  --ttuc-right: 220px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  background:
    linear-gradient(to bottom, #202020 0, #202020 28px, #dadada 28px, #dadada 74px, var(--ttuc-bg) 74px);
  color: var(--ttuc-text);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

a {
  color: var(--ttuc-link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ttuc-link-hover);
  text-decoration: underline;
}

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

.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;
}

.site-shell {
  width: min(calc(100% - 24px), var(--ttuc-max-width));
  margin: 18px auto 32px;
}

.site-banner {
  min-height: 115px;
  border: 2px solid var(--ttuc-border);
  background-color: #000;
  background-position: center;
  background-size: cover;
  position: relative;
}

.site-branding {
  min-height: 115px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75));
}

.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 0 #000;
}

.site-title a,
.site-title a:hover {
  color: #fff;
  text-decoration: none;
}

.site-description {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.top-nav-wrap {
  background: #0a0a6f;
  border-left: 2px solid var(--ttuc-border);
  border-right: 2px solid var(--ttuc-border);
  border-bottom: 2px solid var(--ttuc-border);
  padding: 6px 8px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.top-nav li {
  margin: 0;
}

.top-nav a {
  display: block;
  padding: 8px 11px;
  color: #0eb1ff;
  font-weight: 700;
  font-size: 0.96rem;
}

.top-nav a:hover,
.top-nav .current-menu-item > a,
.top-nav .current_page_item > a {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.top-nav .menu-item-image > a,
.top-nav a.has-image {
  min-width: 92px;
  min-height: 28px;
  text-indent: -9999px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.content-frame {
  display: grid;
  grid-template-columns: var(--ttuc-left) minmax(0, 1fr) var(--ttuc-right);
  gap: 0;
  background: var(--ttuc-panel);
  border-left: 2px solid var(--ttuc-border);
  border-right: 2px solid var(--ttuc-border);
  border-bottom: 2px solid var(--ttuc-border);
}

.sidebar-left,
.sidebar-right,
.content-main {
  padding: 14px 10px 20px;
  min-width: 0;
}

.sidebar-left {
  border-right: 2px solid var(--ttuc-border);
}

.sidebar-right {
  border-left: 2px solid var(--ttuc-border);
}

.widget_block,
.widget,
.retro-box,
.post-card {
  margin: 0 0 18px;
}

.retro-title,
.widget-title,
.post-card-title {
  margin: 0 0 8px;
  padding: 4px 8px;
  background: #000;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.sidebar-left ul,
.sidebar-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-left li,
.sidebar-right li {
  margin: 0 0 6px;
}

.sidebar-left a,
.sidebar-right a {
  color: #00aaff;
  font-weight: 700;
}

.sidebar-left .menu a {
  display: block;
  padding: 2px 0;
}

.retro-blurb {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.featured-story {
  margin: 12px 0 18px;
}

.featured-story img {
  border: 1px solid #78b9ff;
  background: #000;
}

.search-panel .search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-panel input[type="search"] {
  width: 100%;
  max-width: 230px;
  padding: 6px;
  border: 1px solid #9bbfff;
  background: #fff;
  color: #000;
}

.search-panel button,
.search-submit,
input[type="submit"] {
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  font-family: inherit;
  padding: 5px 15px;
  cursor: pointer;
}

.posts-loop {
  display: block;
}

.post-card {
  padding-bottom: 10px;
  border-bottom: 1px solid #9bbfff;
}

.post-card:last-child {
  border-bottom: 0;
}

.post-card-title a {
  color: #fff;
}

.post-card-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}

.post-card-body.no-thumb {
  grid-template-columns: 1fr;
}

.post-thumb img {
  width: 96px;
  height: auto;
  border: 1px solid #7fb5ff;
  background: #000;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-style: italic;
}

.post-meta a {
  font-style: normal;
}

.read-more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.video-card {
  text-align: center;
}

.video-card a {
  display: block;
}

.video-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #7bb6ff;
  background: #05054e;
}

.video-card-title {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-footer {
  width: min(calc(100% - 24px), var(--ttuc-max-width));
  margin: 0 auto 30px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
}

.site-footer a {
  color: #9fd3ff;
}

.archive-title,
.page-title {
  margin: 0 0 14px;
  padding: 4px 8px;
  background: #000;
  color: #fff;
  font-size: 1.1rem;
}

.single-content img,
.page-content img {
  border: 1px solid #7bb6ff;
}

.single-content,
.page-content {
  padding: 6px 0 14px;
}

.comments-area {
  margin-top: 22px;
}

.comments-title {
  margin: 0 0 12px;
  padding: 4px 8px;
  background: #000;
}

@media (max-width: 920px) {
  .content-frame {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 2px solid var(--ttuc-border);
  }
}

@media (max-width: 700px) {
  .site-shell,
  .site-footer {
    width: min(calc(100% - 10px), var(--ttuc-max-width));
  }

  .content-frame {
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right {
    border: 0;
    border-top: 2px solid var(--ttuc-border);
  }

  .sidebar-left {
    border-top: 0;
    border-right: 0;
  }

  .top-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

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