/* ═══════════════════════════════════════════════════════
   TGS Gaming — Zendesk Help Center Theme
   Brand: Blue #137DC5 · Yellow #FAE80F · Dark #0F5F96
   Font: Inter (Google Fonts)
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --blue:        #137DC5;
  --blue-d:      #0F5F96;
  --blue-b:      #2199EA;
  --blue-pale:   #E8F0FA;
  --yellow:      #FAE80F;
  --yellow-d:    #D2C204;
  --text:        #1A1A1A;
  --muted:       #666666;
  --link:        #137DC5;
  --bg:          #F5F7FA;
  --header-bg:   #137DC5;
  --white:       #FFFFFF;
  --border:      #E0E6ED;
  --shadow:      0 2px 12px rgba(19,125,197,0.10);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-d); }
img { max-width: 100%; }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
.header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tgs-header {
  background: #137DC5;
  border-bottom: 3px solid #FAE80F;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tgs-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.tgs-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.tgs-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Override Zendesk logo styles */
.header .logo,
.logo {
  display: flex;
  align-items: center;
}

.header .logo img,
.logo img,
.tgs-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Search */
.tgs-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.tgs-header .search,
.header .search,
.search {
  flex: 1;
  max-width: 360px;
}

.tgs-header .search-field,
.header .search-field,
.search-field {
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 9px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  border-radius: 0;
  transition: all .2s;
}

.tgs-header .search-field::placeholder,
.header .search-field::placeholder,
.search-field::placeholder { color: rgba(255,255,255,0.55); }

.tgs-header .search-field:focus,
.header .search-field:focus,
.search-field:focus {
  background: rgba(255,255,255,0.2);
  border-color: var(--yellow);
}

.search-button,
.tgs-header .search-button {
  background: var(--yellow);
  border: none;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--blue-d);
  font-weight: 700;
}

/* User nav */
.tgs-user-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tgs-nav-link,
.tgs-user-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.tgs-nav-link:hover,
.tgs-user-nav a:hover {
  color: var(--blue-d);
  background: var(--yellow);
  border-color: var(--yellow);
}

.tgs-btn-cta {
  background: var(--yellow) !important;
  color: var(--blue-d) !important;
  border-color: var(--yellow) !important;
  font-weight: 700 !important;
}

.tgs-btn-signin {
  background: transparent;
  color: #fff !important;
}

/* Breadcrumb bar */
.tgs-breadcrumb-bar {
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.tgs-breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 32px;
}

.tgs-breadcrumbs,
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.tgs-breadcrumbs a,
.breadcrumbs a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.tgs-breadcrumbs a:hover,
.breadcrumbs a:hover { color: var(--yellow); }

.tgs-sep { color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════════════
   HERO (HOME PAGE)
══════════════════════════════════════════════════════ */
.tgs-hero {
  background: #137DC5;
  padding: 64px 32px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tgs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.tgs-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #FAE80F;
}

.tgs-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.tgs-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.tgs-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  margin: 0 0 32px;
}

/* Hero search */
.tgs-hero .search,
.tgs-hero form[role="search"] {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 560px;
  margin: 0 auto;
}

.tgs-hero .search-field,
.tgs-hero input[type="search"] {
  flex: 1;
  padding: 15px 20px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: 2px solid transparent;
  background: #fff;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
}

.tgs-hero .search-field:focus,
.tgs-hero input[type="search"]:focus {
  border-color: var(--yellow);
}

.tgs-hero .search-button,
.tgs-hero button[type="submit"] {
  background: var(--yellow);
  border: none;
  padding: 15px 24px;
  cursor: pointer;
  color: var(--blue-d);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}

.tgs-hero .search-button:hover,
.tgs-hero button[type="submit"]:hover { background: var(--yellow-d); }

/* ══════════════════════════════════════════════════════
   MAIN CONTENT WRAPPER
══════════════════════════════════════════════════════ */
.tgs-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.tgs-narrow {
  max-width: 760px;
}

/* ══════════════════════════════════════════════════════
   SECTION LABEL (eyebrow)
══════════════════════════════════════════════════════ */
.tgs-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #137DC5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tgs-section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #FAE80F;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   CATEGORY CARDS
══════════════════════════════════════════════════════ */
.tgs-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.tgs-category-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-top: 3px solid #137DC5;
  padding: 28px 24px;
  text-decoration: none;
  display: block;
  transition: box-shadow .2s, border-top-color .2s, transform .2s;
  cursor: pointer;
}

.tgs-category-card:hover {
  box-shadow: var(--shadow);
  border-top-color: #FAE80F;
  transform: translateY(-2px);
}

.tgs-category-title {
  font-size: 16px;
  font-weight: 700;
  color: #137DC5;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color .2s;
}

.tgs-category-card:hover .tgs-category-title {
  color: var(--blue-d);
}

.tgs-category-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.tgs-category-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #137DC5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tgs-category-count::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: #FAE80F;
}

/* ══════════════════════════════════════════════════════
   PAGE HEADERS
══════════════════════════════════════════════════════ */
.tgs-page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #FAE80F;
}

.tgs-page-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.tgs-page-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   ARTICLE LIST (section page)
══════════════════════════════════════════════════════ */
.tgs-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tgs-article-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border: 0.5px solid var(--border);
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}

.tgs-article-item a:hover {
  border-left-color: #137DC5;
  color: #137DC5;
  box-shadow: var(--shadow);
}

.tgs-article-item a::after {
  content: '›';
  color: var(--border);
  font-size: 18px;
  transition: color .2s;
}

.tgs-article-item a:hover::after {
  color: #137DC5;
}

/* ══════════════════════════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════════════════════ */
.tgs-article-header {
  border-bottom: 2px solid #FAE80F;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.tgs-article-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.tgs-article-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tgs-article-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
}

.tgs-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #137DC5;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.tgs-article-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.tgs-article-body p { margin: 0 0 16px; }

.tgs-article-body ul,
.tgs-article-body ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.tgs-article-body li { margin-bottom: 6px; }

.tgs-article-body a {
  color: #137DC5;
  text-decoration: underline;
  text-decoration-color: #FAE80F;
  text-underline-offset: 3px;
}

.tgs-article-body code {
  background: var(--blue-pale);
  color: var(--blue-d);
  padding: 2px 6px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.tgs-article-body pre {
  background: #0F1B2D;
  color: #E0EDFF;
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  border-left: 3px solid #FAE80F;
  margin: 20px 0;
}

.tgs-article-body blockquote,
.tgs-article-body .note {
  border-left: 3px solid #137DC5;
  padding: 12px 18px;
  background: var(--blue-pale);
  margin: 20px 0;
  color: var(--blue-d);
  font-size: 14px;
}

.tgs-article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}

.tgs-article-body th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #137DC5;
  border-bottom: 2px solid #FAE80F;
}

.tgs-article-body td {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
}

.tgs-article-body tr:hover td {
  background: var(--blue-pale);
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.tgs-sidebar-box {
  background: #fff;
  border: 0.5px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
}

.tgs-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #137DC5;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FAE80F;
}

.tgs-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tgs-sidebar-list li {
  border-bottom: 0.5px solid var(--border);
}

.tgs-sidebar-list li:last-child { border-bottom: none; }

.tgs-sidebar-list li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s, padding-left .15s;
}

.tgs-sidebar-list li a:hover {
  color: #137DC5;
  padding-left: 6px;
}

.tgs-sidebar-list li a.active {
  color: #137DC5;
  font-weight: 600;
  border-left: 2px solid #FAE80F;
  padding-left: 8px;
}

/* ══════════════════════════════════════════════════════
   SEARCH RESULTS
══════════════════════════════════════════════════════ */
.tgs-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tgs-search-item {
  background: #fff;
  border: 0.5px solid var(--border);
  border-left: 3px solid transparent;
  padding: 20px 24px;
  transition: border-left-color .2s, box-shadow .2s;
}

.tgs-search-item:hover {
  border-left-color: #137DC5;
  box-shadow: var(--shadow);
}

.tgs-search-title {
  font-size: 16px;
  font-weight: 600;
  color: #137DC5;
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

.tgs-search-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.tgs-btn,
.button,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  background: #137DC5;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.tgs-btn:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--blue-d);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 14px;
  outline: none;
  width: 100%;
  transition: border-color .2s;
  border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #137DC5;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════ */
.tgs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.tgs-table thead tr {
  border-bottom: 2px solid #FAE80F;
}

.tgs-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #137DC5;
}

.tgs-table td {
  padding: 11px 12px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
}

.tgs-table tr:hover td { background: var(--blue-pale); }

/* ══════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════ */
.tgs-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tgs-status-open,
.tgs-status-new { background: var(--blue-pale); color: var(--blue-d); }
.tgs-status-solved { background: #e8f8f0; color: #0F6E56; }
.tgs-status-pending { background: #fdf9d0; color: #854F0B; }
.tgs-status-closed { background: #f0f0f0; color: #666; }

/* ══════════════════════════════════════════════════════
   TICKET / REQUEST PAGE
══════════════════════════════════════════════════════ */
.tgs-comment {
  background: #fff;
  border: 0.5px solid var(--border);
  border-left: 3px solid #FAE80F;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.tgs-comment-agent {
  border-left-color: #137DC5;
  background: var(--blue-pale);
}

.tgs-comment-author {
  font-size: 13px;
  font-weight: 700;
  color: #137DC5;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tgs-badge-team {
  font-size: 10px;
  background: #137DC5;
  color: #fff;
  padding: 2px 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tgs-comment-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}

.tgs-comment-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════
   POSTS (community)
══════════════════════════════════════════════════════ */
.tgs-post-item {
  background: #fff;
  border: 0.5px solid var(--border);
  border-left: 3px solid transparent;
  padding: 16px 20px;
  margin-bottom: 6px;
  transition: border-left-color .2s, box-shadow .2s;
}

.tgs-post-item:hover {
  border-left-color: #137DC5;
  box-shadow: var(--shadow);
}

.tgs-post-title {
  font-size: 15px;
  font-weight: 600;
  color: #137DC5;
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

.tgs-post-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════ */
.tgs-empty-state {
  background: #fff;
  border: 0.5px solid var(--border);
  border-left: 3px solid #FAE80F;
  padding: 40px 32px;
  text-align: center;
}

.tgs-empty-state p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ══════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 32px 0;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #137DC5;
  border: 1px solid var(--border);
  background: #fff;
  transition: all .2s;
  min-width: 38px;
  text-align: center;
  text-decoration: none;
}

.pagination a:hover { background: #137DC5; color: #fff; border-color: #137DC5; }
.pagination .current-page { background: #137DC5; color: #fff; border-color: #137DC5; }

/* ══════════════════════════════════════════════════════
   ERROR PAGE
══════════════════════════════════════════════════════ */
.tgs-error-code {
  font-family: 'Inter', sans-serif;
  font-size: 96px;
  font-weight: 900;
  color: #137DC5;
  line-height: 1;
  margin-bottom: 12px;
}

.tgs-error-bar {
  width: 48px;
  height: 3px;
  background: #FAE80F;
  margin: 0 auto 20px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.tgs-footer,
.footer {
  background: #0A0A0A;
  border-top: 3px solid #FAE80F;
  padding: 40px 32px;
  margin-top: 64px;
}

.tgs-footer-inner,
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.tgs-footer-brand { display: flex; align-items: center; gap: 12px; }

.tgs-footer-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.tgs-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tgs-footer-links a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .2s;
}

.tgs-footer-links a:hover { color: #FAE80F; }

.tgs-footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════════
   ZENDESK OVERRIDE — built-in elements
══════════════════════════════════════════════════════ */

/* Zendesk's own category/section containers */
.blocks-item-title { font-weight: 700; color: #137DC5; }
.blocks-item-description { color: var(--muted); font-size: 13px; }

.blocks-item {
  background: #fff;
  border: 0.5px solid var(--border);
  border-top: 3px solid #137DC5;
  padding: 24px;
  transition: box-shadow .2s, border-top-color .2s;
}

.blocks-item:hover {
  box-shadow: var(--shadow);
  border-top-color: #FAE80F;
}

/* Zendesk article content */
.article-body h1,
.article-body h2 { color: #137DC5; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
}

.article-body th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #137DC5;
  border-bottom: 2px solid #FAE80F;
}

.article-body td {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
}

/* Vote */
.article-vote { margin-top: 40px; text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.vote-up, .vote-down {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  margin: 0 4px;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.vote-up:hover { border-color: #137DC5; color: #137DC5; }
.vote-down:hover { border-color: #D85A30; color: #D85A30; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tgs-header-inner { padding: 0 16px; height: 58px; }
  .tgs-hero { padding: 40px 16px 48px; }
  .tgs-main { padding: 24px 16px 48px; }
  .tgs-category-grid { grid-template-columns: 1fr; }
  .tgs-hero .search { max-width: 100%; }
  .tgs-footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .tgs-footer-links { justify-content: center; }
}

/* ══════════════════════════════════════════════════════
   FIX — Search form layout (inline button)
══════════════════════════════════════════════════════ */

/* Hero search — força inline */
.tgs-hero .search-container,
.tgs-hero form,
.tgs-hero .form-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  max-width: 560px;
  margin: 0 auto;
}

.tgs-hero input[type="search"],
.tgs-hero .search-field {
  flex: 1 !important;
  width: auto !important;
  padding: 15px 20px !important;
  font-size: 15px !important;
  border: 2px solid transparent !important;
  background: #fff !important;
  color: var(--text) !important;
  outline: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.tgs-hero input[type="search"]:focus,
.tgs-hero .search-field:focus {
  border-color: #FAE80F !important;
}

.tgs-hero button[type="submit"],
.tgs-hero input[type="submit"],
.tgs-hero .search-button {
  flex-shrink: 0 !important;
  background: #FAE80F !important;
  color: #0F5F96 !important;
  border: none !important;
  padding: 15px 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .2s !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: block !important;
  width: auto !important;
}

.tgs-hero button[type="submit"]:hover,
.tgs-hero .search-button:hover {
  background: #D2C204 !important;
}

/* Header search — também inline e compacto */
.tgs-header-right .search-container,
.tgs-header-right form,
.header .search-container,
.header form[role="search"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}

.tgs-header-right input[type="search"],
.tgs-header-right .search-field,
.header input[type="search"],
.header .search-field {
  flex: 1 !important;
  width: 260px !important;
  padding: 8px 14px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.tgs-header-right button[type="submit"],
.tgs-header-right .search-button,
.header button[type="submit"],
.header .search-button {
  padding: 8px 14px !important;
  background: #FAE80F !important;
  color: #0F5F96 !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  width: auto !important;
}

/* Remove qualquer margin/padding que quebre o inline */
.tgs-hero .form-field,
.tgs-hero .form-input { margin: 0 !important; padding: 0 !important; }

/* ══════════════════════════════════════════════════════
   TICKET PAGE — LAYOUT COMPLETO
══════════════════════════════════════════════════════ */

/* Cabeçalho */
.tgs-ticket-header {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 32px 32px 0;
}

.tgs-ticket-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tgs-ticket-title-row .tgs-page-title { margin: 0; }

/* Status badge */
.tgs-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tgs-status-new,
.tgs-status-open    { background: #dbeeff; color: #0F5F96; }
.tgs-status-pending { background: #fff7d0; color: #7a4d00; }
.tgs-status-solved  { background: #d4f5e3; color: #0b6640; }
.tgs-status-closed  { background: #f0f0f0; color: #555; }

/* Layout duas colunas */
.tgs-ticket-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* Thread de mensagens */
.tgs-comment-thread { margin-bottom: 32px; }

.tgs-msg {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.tgs-msg-avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tgs-msg-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.tgs-msg-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #137DC5;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

.tgs-msg-bubble {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid #FAE80F;
  padding: 16px 20px;
  border-radius: 0 8px 8px 8px;
}

.tgs-msg--agent .tgs-msg-bubble {
  border-left-color: #137DC5;
  background: #f0f7ff;
}

.tgs-msg-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tgs-msg-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.tgs-msg--agent .tgs-msg-name { color: #137DC5; }

.tgs-msg-time {
  font-size: 11px;
  color: var(--muted);
}

.tgs-msg-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.tgs-msg-body p { margin: 0 0 8px; }
.tgs-msg-body p:last-child { margin: 0; }

/* Anexos nas mensagens */
.tgs-msg-attachments {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tgs-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #137DC5;
  background: var(--blue-pale);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}

.tgs-attachment-link:hover { background: #cfe0f5; }
.tgs-attachment-size { color: var(--muted); }

/* Caixa de resposta */
.tgs-reply-box {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid #137DC5;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.tgs-reply-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #137DC5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
}

.tgs-reply-form { padding: 20px; }

.tgs-reply-attachments {
  margin: 12px 0;
  padding: 12px;
  border: 1px dashed var(--border);
  background: var(--bg);
  border-radius: 4px;
}

.tgs-reply-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tgs-reply-actions .tgs-btn--ghost {
  background: transparent;
  border: 1.5px solid #137DC5;
  color: #137DC5;
}

.tgs-reply-actions .tgs-btn--ghost:hover {
  background: var(--blue-pale);
}

.tgs-reply-actions label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Sidebar de detalhes */
.tgs-ticket-sidebar { position: sticky; top: 90px; }

.tgs-ticket-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid #137DC5;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.tgs-info-card-header {
  background: #137DC5;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 20px;
}

.tgs-info-list {
  padding: 16px 20px;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
}

.tgs-info-list dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tgs-info-list dd {
  font-size: 13px;
  color: var(--text);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .tgs-ticket-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }
  .tgs-ticket-sidebar { position: static; }
  .tgs-ticket-header { padding: 24px 16px 0; }
  .tgs-msg-avatar img { width: 36px; height: 36px; }
}
