﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
#header { background: #ff8229; }

.td-root {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: #1a1a1a;
  padding-top: 76px;
}
.td-breadcrumb {
  padding: 14px 40px;
  font-size: 12px;
  color: #5f6368;
  background: #fff;
  border-bottom: 1px solid #E8E5DF;
  display: flex;
  align-items: center;
  gap: 6px;
}
.td-breadcrumb a { color: #F4832A; text-decoration: none; }
.td-page-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.td-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  min-height: calc(100vh - 76px);
  align-items: start;
}

.td-preview {
  background: #fff;
  border-right: 1px solid #E8E5DF;
  position: sticky;
  top: 76px;
}

.td-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #F0EDE8;
  background: #FAFAF8;
}

.td-preview-tabs { display: flex; gap: 4px; background: #F0EDE8; border-radius: 6px; padding: 4px; }
.td-preview-tab {
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: #888;
  transition: all 0.15s;
}
.td-preview-tab.active { background: #fff; color: #1D1D1B; }

.td-device-btns { display: flex; gap: 8px; }
.td-device-btn {
  width: 28px; height: 28px;
  border: 1px solid #E8E5DF;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #4b5563;
  transition: all 0.15s;
}
.td-device-btn.active { border-color: #F4832A; color: #9a3412; background: #FFF5EE; }

.td-preview-canvas {
  height: auto;
  overflow: hidden;
  position: relative;
  background: #F0EDE8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.td-preview-image-wrap {
  width: 100%;
  min-height: 420px;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ece8e1;
}

.td-preview-image-wrap img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.td-preview-fallback {
  color: #8a8a8a;
  font-size: 14px;
}

.td-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid #F0EDE8;
  overflow-x: auto;
}
.td-image-description {
  background: #fff;
  border-top: 1px solid #F0EDE8;
  padding: 18px 20px 22px;
}
.td-image-description p {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

.td-thumb {
  width: 64px; height: 44px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#1a1a2e,#e94560);
}

.td-thumb.active { border-color: #F4832A; }
.td-thumb:hover { border-color: #F4832A; }
.td-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.td-sidebar { background: #fff; padding: 28px 24px; border-left: 1px solid #E8E5DF; }

.td-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.td-theme-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #1D1D1B;
  line-height: 1.16;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.td-theme-cat { font-size: 13px; color: #999; margin-bottom: 16px; }

.td-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F0EDE8;
}

.td-stars { color: #F4832A; font-size: 14px; }
.td-rating-num { font-weight: 600; font-size: 14px; }
.td-rating-count { font-size: 12px; color: #aaa; }
.td-installs { font-size: 12px; color: #bbb; margin-left: auto; }

.td-features-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 12px;
}

.td-feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.td-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #444; }
.td-feature-icon {
  width: 20px; height: 20px;
  background: #FFF5EE;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.td-cta-box { background: #1D1D1B; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.td-cta-free-tag { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.td-free-label { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0; color: #fff; }
.td-free-note { font-size: 11px; color: rgba(255,255,255,0.4); text-align: right; }

.td-cta-primary {
  width: 100%;
  background: #F4832A;
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  letter-spacing: 0;
  transition: all 0.15s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.td-cta-primary:hover { background: #e07520; color: #fff; }

.td-cta-secondary {
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: block;
  text-align: center;
}
.td-cta-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.td-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #F0EDE8;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 20px;
}

.td-meta-item { background: #FAFAF8; padding: 12px 14px; }
.td-meta-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.td-meta-val { font-size: 13px; font-weight: 600; color: #444; }

.td-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.td-tag-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid #E8E5DF;
  color: #4b5563;
  background: #FAFAF8;
}

.td-about-box {
  border-top: 1px solid #E8E5DF;
  background: #fff;
  padding: 26px 24px;
}
.td-about-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1D1D1B;
}
.td-about-box .user-content {
  color: #555;
  line-height: 1.65;
  font-size: 14px;
}

.td-bottom-cta {
  background: #F4832A;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.td-bottom-cta h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0; color: #fff; line-height: 1.2; }
.td-bottom-cta p { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }

.td-bottom-btn {
  background: #1D1D1B;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 992px) {
  .td-root { padding-top: 64px; }
  .td-main { grid-template-columns: 1fr; }
  .td-preview { position: static; top: auto; border-right: 0; border-bottom: 1px solid #E8E5DF; }
}
@media (max-width: 768px) {
  .td-breadcrumb { padding: 12px 16px; }
  .td-sidebar { padding: 20px 16px; }
  .td-bottom-cta { padding: 24px 16px; }
  .td-preview-image-wrap { min-height: 280px; max-height: 62vh; }
  .td-preview-image-wrap img { max-height: 62vh; }
  .td-about-box { padding: 20px 16px; }
}
