/* /features/town-square/town-square.css */

.ts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px; /* Rigid adherence to the 12px mobile padding law */
  background-color: #070a12; /* Solid premium matte black background canvas */
  color: #d1d5db;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* Content Panel Navigation Header */
.ts-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 12px;
}

.ts-back-link {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}

.ts-back-link:hover {
  color: #ffffff;
}

.ts-quad-indicator {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd; /* Ice Blue Quadrant Identifier Token */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* High-Density Post Creation Action Box */
.ts-create-post-card {
  background-color: #111827; /* Rich dark panel tile accent layer base */
  border-top: 2px solid #00ffcc; /* Signature brand neon-teal top horizon edge */
  border-left: 1px solid #1e293b;
  border-right: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.ts-card-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  text-align: left;
}

.ts-input-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ts-text-input {
  height: 40px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

.ts-textarea-input {
  height: 80px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  resize: none;
}

.ts-text-input:focus, .ts-textarea-input:focus {
  outline: none;
  border-color: #00ffcc;
}

/* Dynamic Stream Timeline Stack */
.ts-timeline-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Standard Discussion Row Components */
.ts-row-card {
  background-color: #111827;
  border-left: 3px solid #1e293b;
  border-top: 1px solid #1e293b;
  border-right: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.ts-row-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-row-author {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.ts-row-timestamp {
  font-size: 11px;
  color: #6b7280;
}

/* CRITICAL PROGRESSIVE LINE CLAMPING LAW */
.ts-row-body-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #d1d5db;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Rigid 3-line progressive text clamping parameter */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Premium Amber Glowing Native Billboard Card Container */
.ts-ad-billboard-card {
  background-color: #111827;
  border: 1px solid #f59e0b; /* Premium Amber Focus Outline Token */
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15); /* Translucent outer ambient aura radiance */
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  box-sizing: border-box;
}

.ts-ad-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-ad-badge {
  font-size: 9px;
  font-weight: 800;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.ts-ad-owner {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.ts-ad-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.ts-ad-body-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #9ca3af;
}

.ts-ad-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.ts-ad-meta {
  font-size: 11px;
  color: #6b7280;
}

/* Touch-Optimized Primary Action Triggers */
.ts-primary-btn, .ts-ad-action-btn {
  height: 44px; /* Strict minimum touch boundary compliance */
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease;
  border: none;
}

.ts-primary-btn {
  background-color: #3b82f6; /* Inviting blue interaction block anchor */
  color: #ffffff;
  width: 100%;
}

.ts-primary-btn:hover {
  background-color: #2563eb;
}

.ts-ad-action-btn {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #f59e0b;
  padding: 0 12px;
  height: 32px; /* High density button rows parameter */
  font-size: 11px;
}

.ts-ad-action-btn:hover {
  background-color: rgba(245, 158, 11, 0.05);
  border-color: #f59e0b;
}

/* Desktop Viewport Alignment Constraints */
@media (min-width: 1024px) {
  .ts-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 12px;
  }
}
