/* 🌐 Google SERP Preview Tool — Transparent & Professional */
.wrap {
  max-width: 750px;
  margin: 0 auto;
  padding: 20px;
  background: transparent; /* Theme-adaptive */
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: inherit;
}

.wrap h1 {
  text-align: center;
  color: #a855f7; /* Accent Purple */
  margin-bottom: 8px;
  font-size: 26px;
}

.wrap .small {
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* ✅ Form Labels & Fields */
.wrap label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.wrap input,
.wrap textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid rgba(170, 170, 170, 0.4);
  background: transparent; /* Transparent for dark/light mode */
  color: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.wrap input::placeholder,
.wrap textarea::placeholder {
  color: rgba(120, 120, 120, 0.7);
}

.wrap input:focus,
.wrap textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 4px rgba(168, 85, 247, 0.4);
}

/* ✅ Buttons */
.wrap .btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: #a855f7;
  color: #fff;
  transition: 0.3s ease;
  min-width: 160px;
}

.wrap .btn:hover {
  background: #9333ea;
}

#copyBtn {
  background: #1a73e8; /* Google Blue */
}

#copyBtn:hover {
  background: #1558b0;
}

/* ✅ SERP Preview Box */
.serp {
  margin-top: 25px;
  padding: 15px;
  border: 1px solid rgba(170, 170, 170, 0.3);
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ✅ Title (Blue like Google) */
.serp .title {
  color: #1a0dab;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
}

/* ✅ URL (Green) */
.serp .url {
  color: #006621;
  font-size: 14px;
  margin-bottom: 4px;
  word-break: break-word;
}

/* ✅ Description */
.serp .desc {
  font-size: 13.5px;
  line-height: 1.4;
  color: inherit;
  opacity: 0.85;
  word-break: break-word;
}

/* ✅ Responsive */
@media (max-width: 600px) {
  .wrap h1 {
    font-size: 22px;
  }

  .serp .title {
    font-size: 16px;
  }

  .serp .url {
    font-size: 13px;
  }

  .serp .desc {
    font-size: 12.5px;
  }
}
