/* PicDriver TikTok Profile Picture & Avatar Studio Styles */

:root {
  --tk-cyan: #00f2fe;
  --tk-magenta: #fe0979;
  --tk-red: #ff0844;
  --tk-bg: #090b10;
  --tk-card: #121622;
  --tk-border: rgba(255, 255, 255, 0.08);
  --tk-gold: #f59e0b;

  --surface-color: #121622;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

/* ═══════════════ GLOBAL SUITE HEADER & NAVIGATION ═══════════════ */
.site-header {
  background-color: #05070a;
  border-bottom: 1px solid var(--tk-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  width: 100%;
}

.header-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f8fafc;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--tk-cyan), #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-name span {
  color: var(--tk-cyan);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--tk-cyan);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Tool Hero Section */
.tool-hero-section {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 242, 254, 0.12);
  color: var(--tk-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tk-cyan);
  box-shadow: 0 0 10px var(--tk-cyan);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(0, 242, 254, 0.35);
  background: rgba(18, 22, 34, 0.65);
  border-radius: 16px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--tk-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.2);
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.12);
  color: var(--tk-cyan);
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.dropzone-text {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.dropzone-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tiktok-stage-section {
  max-width: 1440px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

/* Studio Grid Layout */
.tiktok-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.tiktok-stage-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Stage Viewport Card */
.tiktok-viewport-card {
  background: var(--tk-card);
  border: 1px solid var(--tk-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.tiktok-viewport-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--tk-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tiktok-status-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-badge.accent {
  background: rgba(0, 242, 254, 0.12);
  color: var(--tk-cyan);
  border-color: rgba(0, 242, 254, 0.3);
}

.hud-badge.magenta {
  background: rgba(254, 9, 121, 0.12);
  color: var(--tk-magenta);
  border-color: rgba(254, 9, 121, 0.3);
}

.hud-badge.gold {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.tiktok-actions-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Canvas Viewport */
.tiktok-canvas-container {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #07090e radial-gradient(circle at center, rgba(18, 22, 34, 0.7) 0%, rgba(7, 9, 14, 0.95) 100%);
  position: relative;
  overflow: hidden;
  user-select: none;
}

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

#tiktok-canvas {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
}

/* Controls Sidebar */
.tool-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.control-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.65rem;
}

.control-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Preset & Button Grids */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  transition: all 0.2s ease;
  text-align: left;
}

.preset-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.preset-btn.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--tk-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.preset-btn-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Badge & Backdrop Rows */
.badge-row,
.backdrop-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toggle-btn,
.backdrop-btn {
  flex: 1 1 calc(25% - 0.5rem);
  min-width: 72px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s;
}

.toggle-btn:hover,
.backdrop-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.toggle-btn.active,
.backdrop-btn.active {
  background: rgba(254, 9, 121, 0.22);
  border-color: var(--tk-magenta);
  color: #fff;
  box-shadow: 0 0 10px rgba(254, 9, 121, 0.35);
}

/* Form Groups & Sliders */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-value-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--tk-cyan);
}

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  transition: background 0.2s;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tk-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  transition: transform 0.15s, background 0.15s;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #67e8f9;
}

/* Text & Form Inputs */
.text-input,
.textarea-input {
  width: 100%;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.text-input:focus,
.textarea-input:focus {
  border-color: var(--tk-cyan);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.textarea-input {
  resize: vertical;
  line-height: 1.45;
}

/* Color Pickers */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.color-picker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.color-input-circle {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background: none;
  padding: 0;
  transition: transform 0.15s, border-color 0.2s;
  flex-shrink: 0;
}

.color-input-circle:hover {
  transform: scale(1.1);
  border-color: var(--tk-cyan);
}

.color-input-circle::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-circle::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

/* Mobile Profile Simulator Mockup */
.mockup-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Direct Inline Text Editing */
[contenteditable="true"] {
  cursor: text;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
  transition: all 0.2s ease;
  outline: none;
  position: relative;
}

[contenteditable="true"]:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.35);
}

[contenteditable="true"]:focus {
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 0 2px var(--tk-cyan);
}

.mockup-avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
}

.mockup-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.mockup-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #20d5ec;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
}

.mockup-username {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mockup-handle {
  font-size: 0.82rem;
  color: #94a3b8;
}

.mockup-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.25rem 0;
}

.mockup-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-stat-num {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.mockup-stat-lbl {
  font-size: 0.72rem;
  color: #64748b;
}

.mockup-follow-btn {
  background: #fe0979;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 2rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mockup-follow-btn:hover {
  filter: brightness(1.1);
}

.mockup-bio {
  font-size: 0.8rem;
  color: #cbd5e1;
  max-width: 280px;
  line-height: 1.35;
}

/* Export Card */
.export-card {
  background: linear-gradient(145deg, rgba(18, 22, 34, 0.95), rgba(10, 13, 20, 0.98));
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 10px 30px -10px rgba(0, 242, 254, 0.2);
}

.btn-download-main {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #040812;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.35);
}

.btn-download-main:hover {
  background: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.45);
}

.export-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-download-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

.btn-download-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

table th {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

table tr:last-child td {
  border-bottom: none;
}

/* Mobile & Tablet Breakpoint */
@media (max-width: 768px) {
  .tiktok-grid {
    grid-template-columns: 1fr;
  }

  .tiktok-canvas-container {
    min-height: 320px;
    padding: 0.75rem;
  }

  .preset-grid,
  .badge-row,
  .backdrop-row,
  .export-sub-row {
    grid-template-columns: 1fr;
  }

  .tiktok-viewport-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════ SEO GUIDE & FOOTER ═══════════════ */
.tool-seo-guide {
  background: var(--tk-card);
  border: 1px solid var(--tk-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 3rem auto;
  max-width: 1080px;
  color: #cbd5e1;
}

.tool-seo-guide h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.tool-seo-guide h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.75rem 0 0.75rem;
}

.tool-seo-guide p {
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.tool-seo-guide ul {
  padding-left: 1.5rem;
  line-height: 1.7;
}

.tool-seo-guide li {
  margin-bottom: 0.5rem;
}

.site-footer {
  background-color: #05070a;
  border-top: 1px solid var(--tk-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: auto;
  width: 100%;
}

