/**
 * Taury Lad - Layout, AdSense Monetization Zones, & Component Styling
 */

/* Main Desktop Wrapper */
.desktop-container {
  max-width: 1280px;
  margin: 16px auto 50px auto;
  padding: 0 14px;
  width: 100%;
  flex: 1;
}

/* Header & Channel Branding Bar */
.channel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #002266 0%, #0044bb 60%, #002266 100%);
  padding: 10px 16px;
  border-radius: 6px;
  border: 2px solid #3388ff;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

body.dark-theme .channel-header-bar,
body[data-palette="noir"] .channel-header-bar {
  background: linear-gradient(to right, #111216 0%, #22242d 60%, #111216 100%);
  border-color: #ff7700;
}

body[data-palette="olive"]:not(.dark-theme) .channel-header-bar {
  background: linear-gradient(to right, #2f3e20 0%, #4f6434 60%, #2f3e20 100%);
  border-color: #8da860;
}

body[data-palette="silver"]:not(.dark-theme) .channel-header-bar {
  background: linear-gradient(to right, #383b42 0%, #585d68 60%, #383b42 100%);
  border-color: #b0b4bc;
}

body[data-palette="royale"]:not(.dark-theme) .channel-header-bar {
  background: linear-gradient(to right, #0b2246 0%, #184690 60%, #0b2246 100%);
  border-color: #3b77dc;
}

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

.channel-avatar, .channel-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  background: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  object-fit: cover;
  flex-shrink: 0;
}

.channel-info h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.channel-tagline {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #cce0ff;
}

body.dark-theme .channel-tagline {
  color: #a0a6b8;
}

.channel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dark Mode Switch Button */
.theme-toggle-btn {
  background: linear-gradient(to bottom, #ffe885 0%, #ffaa00 100%);
  border: 1px solid #9c5b00;
  color: #222;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  box-shadow: inset 1px 1px 0 #fff, 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

body.dark-theme .theme-toggle-btn {
  background: linear-gradient(to bottom, #4a4d5a 0%, #20222a 100%);
  border-color: #ff7700;
  color: #ffaa33;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.5);
}

.theme-toggle-btn:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   Google AdSense Zones (IAB Compliant & Responsive)
   ========================================================================== */
.adsense-placeholder {
  background: var(--xp-ad-bg);
  border: 1px dashed var(--xp-ad-border);
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.03);
}

.adsense-placeholder .ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--xp-text-muted);
  margin-bottom: 6px;
  display: block;
}

.adsense-placeholder .ad-inner-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xp-text-secondary);
  font-size: 11px;
  width: 100%;
}

body.dark-theme .adsense-placeholder .ad-inner-box {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Ad Placements Sizes */
.ad-zone-header {
  min-height: 90px;
  margin-bottom: 14px;
}

.ad-zone-sidebar {
  min-height: 250px;
}

.ad-zone-infeed {
  min-height: 100px;
  grid-column: 1 / -1;
}

/* Main Grid Layout (Content + Sidebar) */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--xp-card-bg);
  border: 1px solid var(--xp-card-border);
  padding: 8px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Benchmark Cards Grid */
.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.bench-card {
  background: var(--xp-card-bg);
  border: 1px solid var(--xp-card-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bench-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bench-card-thumb {
  width: 100%;
  height: 160px;
  background: #000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.bench-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bench-card-thumb:hover img {
  transform: scale(1.04);
}

.bench-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(2px);
}

.bench-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bench-card-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--xp-text-primary);
  line-height: 1.3;
}

.bench-score-highlight {
  background: linear-gradient(90deg, rgba(0, 85, 234, 0.1) 0%, transparent 100%);
  border-left: 3px solid var(--xp-accent-blue);
  padding: 4px 8px;
  margin: 6px 0 10px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--xp-accent-blue);
}

body.dark-theme .bench-score-highlight {
  background: linear-gradient(90deg, rgba(255, 119, 0, 0.15) 0%, transparent 100%);
  border-left-color: var(--xp-accent-orange);
  color: var(--xp-accent-orange);
}

.specs-list {
  font-size: 11px;
  color: var(--xp-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-item b {
  color: var(--xp-text-primary);
  min-width: 36px;
}

/* Guides List Layout */
.guides-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-row {
  background: var(--xp-card-bg);
  border: 1px solid var(--xp-card-border);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.guide-row:hover {
  border-color: var(--xp-accent-blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform: translateX(2px);
}

body.dark-theme .guide-row:hover {
  border-color: var(--xp-accent-orange);
}

.guide-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.guide-details {
  flex: 1;
}

.guide-category-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  background: var(--xp-panel-border);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 4px;
  font-weight: bold;
}

body.dark-theme .guide-category-tag {
  background: #3c404e;
  color: #ffaa33;
}

.guide-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--xp-text-primary);
}

.guide-summary {
  margin: 0;
  font-size: 11px;
  color: var(--xp-text-secondary);
  line-height: 1.4;
}

/* Quick Tools Toolkit */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.tool-item {
  background: var(--xp-card-bg);
  border: 1px solid var(--xp-card-border);
  padding: 10px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--xp-text-primary);
  transition: background-color 0.15s ease;
}

.tool-item:hover {
  background: var(--xp-panel-bg);
  border-color: var(--xp-accent-blue);
}

.tool-item img {
  width: 24px;
  height: 24px;
}

.tool-info b {
  display: block;
  font-size: 11px;
}

.tool-info span {
  font-size: 10px;
  color: var(--xp-text-muted);
}

/* Lightbox Modal */
#lightbox-modal {
  z-index: 2200;
}

.lightbox-img-container {
  text-align: center;
  background: #000;
  padding: 8px;
  border-radius: 3px;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Markdown Reader Styling */
.guide-reader-content {
  font-size: 12px;
  line-height: 1.6;
  color: var(--xp-text-primary);
}

.guide-reader-content .guide-inline-figure {
  margin: 14px 0;
  padding: 8px;
  background: var(--xp-panel-bg);
  border: 1px solid var(--xp-card-border);
  border-radius: 4px;
  text-align: center;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.guide-reader-content .guide-inline-img {
  max-width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid var(--xp-card-border);
  background: #000;
  cursor: zoom-in;
  display: block;
  margin: 0 auto;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.guide-reader-content .guide-inline-img:hover {
  border-color: var(--xp-accent-blue);
}

.guide-reader-content .guide-inline-caption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--xp-text-secondary);
  font-style: italic;
}

.guide-reader-content h3 {
  font-size: 15px;
  margin-top: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--xp-card-border);
  padding-bottom: 4px;
  color: var(--xp-accent-blue);
}

body.dark-theme .guide-reader-content h3 {
  color: var(--xp-accent-orange);
}

.guide-reader-content h4 {
  font-size: 13px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.guide-reader-content code {
  background: var(--xp-code-bg);
  border: 1px solid var(--xp-card-border);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
}

.guide-reader-content pre {
  background: var(--xp-code-bg);
  border: 1px solid var(--xp-card-border);
  padding: 10px;
  border-radius: 3px;
  overflow-x: auto;
  font-family: 'Consolas', monospace;
  font-size: 11px;
}

.guide-reader-content ul, .guide-reader-content ol {
  padding-left: 20px;
  margin: 8px 0;
}

.guide-reader-content li {
  margin-bottom: 4px;
}

/* Footer Credits & Legal */
.site-footer {
  margin-top: 24px;
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--xp-text-muted);
  border-top: 1px solid var(--xp-card-border);
}

.site-footer a {
  color: var(--xp-accent-blue);
  text-decoration: underline;
  cursor: pointer;
}

body.dark-theme .site-footer a {
  color: var(--xp-accent-orange);
}

/* ==========================================================================
   ABOUT TAURYLAD SECTION & SOCIALS (Two-column Split Layout)
   ========================================================================== */

.about-split-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 820px) {
  .about-split-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Media & Creator Card */
.about-media-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-photo-card {
  background: var(--xp-card-bg);
  border: 1px solid var(--xp-card-border);
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.05);
}

.about-photo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.about-photo-frame {
  width: 170px;
  height: 170px;
  border-radius: 6px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  background: #000;
  display: block;
}

body.dark-theme .about-photo-frame {
  border-color: #3b3e4a;
}

.about-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(to bottom, var(--xp-btn-bg-from), var(--xp-btn-bg-to));
  border: 1px solid var(--xp-btn-border);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  color: var(--xp-text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.about-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--xp-text-secondary);
  margin-top: 8px;
}

.status-dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
  display: inline-block;
}

.about-meta-list {
  background: var(--xp-panel-bg);
  border: 1px solid var(--xp-panel-border);
  border-radius: 4px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.about-meta-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--xp-card-border);
  padding: 4px 0;
}

.about-meta-item:last-child {
  border-bottom: none;
}

.about-meta-label {
  font-weight: bold;
  color: var(--xp-text-secondary);
}

.about-meta-val {
  color: var(--xp-text-primary);
}

/* Right Column: Bio Content & Social Media Links */
.about-text-col {
  background: var(--xp-panel-bg);
  border: 1px solid var(--xp-panel-border);
  border-radius: 4px;
  padding: 16px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.about-header-group {
  border-bottom: 1px solid var(--xp-card-border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.about-main-title {
  margin: 0 0 4px 0;
  font-size: 18px;
  color: var(--xp-accent-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-tagline-text {
  font-size: 12px;
  color: var(--xp-text-secondary);
  font-weight: 500;
}

.about-bio-body {
  font-size: 12px;
  line-height: 1.65;
  color: var(--xp-text-primary);
  white-space: pre-line;
  margin-bottom: 20px;
}

/* Social Media Channels Grid */
.about-socials-container {
  background: var(--xp-card-bg);
  border: 1px solid var(--xp-card-border);
  border-radius: 4px;
  padding: 14px;
  margin-top: 16px;
}

.about-socials-title {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--xp-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.xp-social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to bottom, var(--xp-btn-bg-from), var(--xp-btn-bg-to));
  border: 1px solid var(--xp-btn-border);
  border-radius: 3px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--xp-text-primary);
  transition: all 0.15s ease;
  box-shadow: 1px 1px 0 #fff inset, 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.xp-social-card:hover {
  border-color: var(--xp-btn-hover-border);
  transform: translateY(-1px);
  box-shadow: 1px 1px 0 #fff inset, 0 3px 6px rgba(0, 0, 0, 0.15);
}

.xp-social-card:active {
  transform: translateY(1px);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.xp-social-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xp-social-icon img, .xp-social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.xp-social-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xp-social-platform {
  font-weight: bold;
  font-size: 11px;
  color: var(--xp-text-primary);
}

.xp-social-handle {
  font-size: 10px;
  color: var(--xp-text-secondary);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* 36-Palette Admin Grid & Category Filter Bar */
.palette-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  background: var(--xp-card-bg);
  border: 1px solid var(--xp-card-border);
  padding: 8px;
  border-radius: 3px;
}

.palette-filter-btn {
  background: var(--xp-btn-bg-from);
  border: 1px solid var(--xp-card-border);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: var(--xp-text-primary);
  font-family: inherit;
}

.palette-filter-btn.active, .palette-filter-btn:hover {
  background: var(--xp-accent-blue);
  color: #ffffff;
  border-color: var(--xp-accent-blue);
  font-weight: bold;
}

.theme-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px;
  background: var(--xp-panel-bg);
  border: 1px solid var(--xp-panel-border);
  border-radius: 4px;
}

.theme-palette-card {
  border: 2px solid var(--xp-card-border);
  background: var(--xp-card-bg);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.theme-palette-card:hover {
  border-color: var(--xp-accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.theme-palette-card.active {
  border-color: #0055ea;
  box-shadow: 0 0 0 1px #0055ea, 0 3px 8px rgba(0, 85, 234, 0.3);
  background: #f0f7ff;
}

body.dark-theme .theme-palette-card.active {
  background: #1b263b;
  border-color: #3d84ff;
  box-shadow: 0 0 0 1px #3d84ff, 0 3px 8px rgba(61, 132, 255, 0.4);
}

.palette-swatch {
  height: 48px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.palette-swatch-title {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 8px;
  font-weight: bold;
}

.palette-swatch-body {
  flex: 1;
}

.palette-swatch-bar {
  height: 8px;
}

.palette-category-badge {
  font-size: 9px;
  color: var(--xp-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

