/* ==========================================================
   TikTok Profile Tools – Modern Responsive Style
   Designed for: tiktok-profile-card plugin
   Author: ChatGPT ❤️
   ========================================================== */

/* ----------- GLOBAL RESET ----------- */
.tpct-widget * {
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
}

.tpct-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
}

/* ----------- INPUT SECTION ----------- */
.tpct-widget input {
  padding: 10px 14px;
  border: 1px solid var(--tpct-border);
  border-radius: 8px;
  width: 80%;
  max-width: 320px;
  margin: 6px auto;
  display: block;
  font-size: 15px;
  outline: none;
  background-color: var(--tpct-input-bg);
  color: var(--tpct-text);
  transition: all 0.2s ease;
}

.tpct-widget input:focus {
  border-color: var(--tpct-accent);
  box-shadow: 0 0 0 2px rgba(255, 0, 80, 0.25);
}

.tpct-widget button {
  background: var(--tpct-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tpct-widget button:hover {
  background: var(--tpct-accent-hover);
  transform: translateY(-1px);
}

.tpct-widget button:active {
  transform: scale(0.98);
}

/* ----------- CARD CONTAINER ----------- */
.tpct-card {
  background-color: var(--tpct-card-bg);
  color: var(--tpct-text);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 480px;
  margin-top: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpct-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* ----------- HEADER SECTION ----------- */
.tpct-header {
  background: linear-gradient(135deg, #ff0050, #ff7a00);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.tpct-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.tpct-info {
  flex: 1;
  min-width: 0;
}

.tpct-username {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.tpct-bio {
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.85;
  line-height: 1.3;
}

/* ----------- STAT GRID ----------- */
.tpct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 18px 10px;
  background-color: var(--tpct-card-bg);
}

.tpct-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tpct-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tpct-accent);
}

.tpct-label {
  font-size: 0.85rem;
  color: var(--tpct-subtext);
}

/* ----------- EARNING / RESULT SECTION ----------- */
.tpct-earning {
  background-color: var(--tpct-panel);
  padding: 14px;
  text-align: center;
  font-weight: 600;
  border-top: 1px solid var(--tpct-border);
  font-size: 1rem;
  color: var(--tpct-text-strong);
}

.tpct-note {
  font-size: 0.8rem;
  color: var(--tpct-subtext);
  text-align: center;
  padding: 10px 0 14px;
}

/* ----------- RESPONSIVE DESIGN ----------- */
@media (max-width: 600px) {
  .tpct-header {
    flex-direction: column;
    text-align: center;
  }

  .tpct-avatar {
    width: 80px;
    height: 80px;
  }

  .tpct-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ----------- THEME VARIABLES ----------- */
:root {
  --tpct-accent: #ff0050;
  --tpct-accent-hover: #e60046;
  --tpct-card-bg: #ffffff;
  --tpct-panel: #fafafa;
  --tpct-border: #e0e0e0;
  --tpct-text: #2c2c2c;
  --tpct-text-strong: #111;
  --tpct-subtext: #555;
  --tpct-input-bg: #fff;
}

/* Dark Mode (auto detect) */
@media (prefers-color-scheme: dark) {
  :root {
    --tpct-card-bg: #1e1e1e;
    --tpct-panel: #2a2a2a;
    --tpct-border: #333;
    --tpct-text: #e9e9e9;
    --tpct-text-strong: #fff;
    --tpct-subtext: #aaa;
    --tpct-input-bg: #2a2a2a;
  }

  .tpct-card {
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  }

  .tpct-widget input {
    border: 1px solid #444;
  }

  .tpct-widget button {
    color: #fff;
  }
}

/* ----------- ANIMATIONS ----------- */
.tpct-card, .tpct-widget input, .tpct-widget button {
  transition: all 0.25s ease-in-out;
}