/* ============================================================
   SEO Meta Tag & Open Graph Generator Styling - Scenic IT Solutions
   ============================================================ */

/* Input Field Length Gauges */
.seo-gauge-bar {
  width: 100%;
  height: 6px;
  background: #1e1e24;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
  margin-bottom: 12px;
}

.seo-gauge-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.gauge-green { background: #27ae60; }
.gauge-orange { background: #f39c12; }
.gauge-red { background: #e74c3c; }

.seo-counter-text {
  font-size: 13px;
  color: #aaaaaa;
  display: flex;
  justify-content: space-between;
}

.seo-counter-text .status-ok { color: #27ae60; font-weight: 600; }
.seo-counter-text .status-warn { color: #f39c12; font-weight: 600; }
.seo-counter-text .status-err { color: #e74c3c; font-weight: 600; }

/* Tabs inside Generator */
.seo-tabs-header {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #222226;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.seo-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #aaaaaa;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-tab-btn:hover {
  color: #ffffff;
}

.seo-tab-btn.active {
  color: #F68B1F;
  border-bottom-color: #F68B1F;
}

.seo-tab-content {
  display: none;
}

.seo-tab-content.active {
  display: block;
}

/* Forms Input Styling */
.seo-field-group {
  margin-bottom: 22px;
}

.seo-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 8px;
}

.seo-label span.req { color: #F68B1F; }

.seo-input, .seo-textarea, .seo-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.seo-input:focus, .seo-textarea:focus, .seo-select:focus {
  border-color: #F68B1F;
  box-shadow: 0 0 12px rgba(246, 139, 31, 0.25);
}

.seo-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Real-Time Live Preview Boxes */
.seo-preview-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  color: #111111;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: Arial, sans-serif;
}

.seo-preview-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666666;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Google SERP Preview Box */
.google-serp-box {
  font-family: arial, sans-serif;
  line-height: 1.4;
}

.google-serp-site {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #202124;
  margin-bottom: 4px;
}

.google-serp-icon {
  width: 18px;
  height: 18px;
  background: #f1f3f4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.google-serp-domain {
  font-size: 14px;
  color: #202124;
}

.google-serp-url {
  font-size: 12px;
  color: #4d5156;
}

.google-serp-title {
  font-size: 20px;
  color: #1a0dab;
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 4px;
  word-break: break-word;
}

.google-serp-title:hover {
  text-decoration: underline;
}

.google-serp-desc {
  font-size: 14px;
  color: #4d5156;
  line-height: 1.58;
  word-break: break-word;
}

/* Social Card Preview (Open Graph & Twitter) */
.social-card-box {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
}

.social-card-img-wrap {
  width: 100%;
  height: 200px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.social-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-card-placeholder {
  color: #6c757d;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-card-body {
  padding: 16px;
  background: #ffffff;
}

.social-card-domain {
  font-size: 12px;
  color: #8a8d91;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.social-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 6px;
  line-height: 1.3;
}

.social-card-desc {
  font-size: 14px;
  color: #606770;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Code Output Box */
.seo-code-box {
  background: #0d0d11;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.seo-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222226;
}

.seo-code-title {
  font-size: 14px;
  color: #0099E5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.seo-code-pre {
  background: transparent;
  color: #33ff77;
  font-family: "Courier New", Courier, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 380px;
  overflow-y: auto;
}

/* Checkbox Directives Grid */
.directives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.directive-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #282828;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #dddddd;
}

.directive-item input {
  accent-color: #F68B1F;
  width: 16px;
  height: 16px;
}
