/* =====================================================
   Online Generator Tools - Frontend Styles
   Modern, clean, mobile-first (matches Online Tools Forge style)
   ===================================================== */

:root {
  --ogt-primary: #f97316;
  --ogt-primary-dark: #ea580c;
  --ogt-bg: #fefce8;
  --ogt-card: #ffffff;
  --ogt-text: #1e293b;
  --ogt-muted: #64748b;
  --ogt-border: #e2e8f0;
  --ogt-radius: 16px;
  --ogt-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --ogt-shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  --ogt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ogt-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  font-family: var(--ogt-font);
  color: var(--ogt-text);
  line-height: 1.6;
}

/* ========== Hero (Homepage) ========== */
.ogt-hero {
  text-align: center;
  padding: 28px 12px 36px;
  margin-bottom: 16px;
  position: relative;
}
.ogt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2410c;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(194, 65, 12, 0.08);
}
.ogt-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
  animation: ogt-pulse 2s ease-in-out infinite;
}
@keyframes ogt-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12); }
}
.ogt-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ogt-text);
  margin: 0 0 14px;
}
.ogt-hero-title-accent {
  display: block;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ogt-hero-subtitle {
  font-size: 17px;
  color: var(--ogt-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.ogt-hero-search {
  margin-bottom: 28px;
}
.ogt-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.ogt-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px;
  min-width: 90px;
}
.ogt-hero-stat strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--ogt-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ogt-hero-stat span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ogt-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.ogt-hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--ogt-border);
}

/* Search */
.ogt-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ogt-border);
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: var(--ogt-shadow);
  max-width: 560px;
  margin: 0 auto;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ogt-search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
  border-color: var(--ogt-primary);
}
.ogt-search-icon {
  color: var(--ogt-muted);
  flex-shrink: 0;
}
.ogt-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--ogt-text);
}
.ogt-kbd {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--ogt-muted);
  font-family: inherit;
}
.ogt-search-results {
  max-width: 560px;
  margin: 8px auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ogt-shadow-hover);
  overflow: hidden;
  border: 1px solid var(--ogt-border);
}
.ogt-search-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--ogt-text);
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.ogt-search-item:hover {
  background: #fff7ed;
}
.ogt-search-item strong {
  display: block;
  font-size: 15px;
}
.ogt-search-item span {
  font-size: 13px;
  color: var(--ogt-muted);
}

/* Section */
.ogt-section {
  margin-bottom: 48px;
}
.ogt-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}
.ogt-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ogt-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ogt-section-icon.popular {
  background: linear-gradient(135deg, #f97316, #fb923c);
}
.ogt-section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #ea580c;
}
.ogt-section-desc {
  text-align: center;
  color: var(--ogt-muted);
  margin: 0 0 28px;
  font-size: 15px;
}

/* Tools Grid */
.ogt-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.ogt-tool-card {
  background: var(--ogt-card);
  border-radius: var(--ogt-radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ogt-border);
  box-shadow: var(--ogt-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}
.ogt-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ogt-shadow-hover);
  border-color: #fed7aa;
}
.ogt-tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ogt-tool-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: #fff7ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ogt-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ogt-badge-popular {
  background: #dbeafe;
  color: #1d4ed8;
}
.ogt-badge-new {
  background: #fce7f3;
  color: #be185d;
}
.ogt-tool-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ogt-text);
}
.ogt-tool-desc {
  font-size: 13px;
  color: var(--ogt-muted);
  margin: 0;
  flex: 1;
  line-height: 1.45;
}
.ogt-tool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--ogt-muted);
  font-size: 16px;
}
.ogt-arrow {
  transition: transform 0.2s;
}
.ogt-tool-card:hover .ogt-arrow {
  transform: translateX(4px);
  color: var(--ogt-primary);
}
.ogt-heart {
  cursor: pointer;
}
.ogt-tool-card.small {
  min-height: auto;
  padding: 14px 16px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.ogt-tool-card.small h4 {
  margin: 0;
  font-size: 14px;
}

/* Categories Grid */
.ogt-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.ogt-category-card {
  background: #fff;
  border-radius: var(--ogt-radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ogt-border);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.ogt-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cat-color, var(--ogt-primary));
}
.ogt-category-card:hover {
  box-shadow: var(--ogt-shadow-hover);
  transform: translateY(-2px);
}
.ogt-cat-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}
.ogt-category-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.ogt-category-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ogt-muted);
  line-height: 1.4;
}
.ogt-cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--cat-color, var(--ogt-primary));
}

/* Breadcrumb */
.ogt-breadcrumb {
  font-size: 13px;
  color: var(--ogt-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ogt-breadcrumb a {
  color: var(--ogt-primary);
  text-decoration: none;
}
.ogt-breadcrumb a:hover {
  text-decoration: underline;
}

/* Tool Page */
.ogt-tool-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 8px 0 4px;
}
.ogt-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #15803d;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(21, 128, 61, 0.08);
  line-height: 1;
}
.ogt-free-icon {
  flex-shrink: 0;
  color: #16a34a;
}
.ogt-free-dot {
  color: #86efac;
  font-weight: 400;
  margin: 0 1px;
}
.ogt-tool-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ogt-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ogt-tool-lead {
  color: var(--ogt-muted);
  font-size: 16px;
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.55;
}

/* Card / Workspace */
.ogt-card {
  background: #fff;
  border-radius: var(--ogt-radius);
  padding: 28px;
  border: 1px solid var(--ogt-border);
  box-shadow: var(--ogt-shadow);
  max-width: 640px;
  margin: 0 auto 32px;
}
.ogt-field {
  margin-bottom: 16px;
}
.ogt-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ogt-text);
}
.ogt-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ogt-input,
.ogt-textarea,
.ogt-input select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ogt-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ogt-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.ogt-input:focus,
.ogt-textarea:focus {
  outline: none;
  border-color: var(--ogt-primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.ogt-textarea {
  resize: vertical;
  min-height: 100px;
}
.ogt-mono {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
}
.ogt-range {
  width: 100%;
  accent-color: var(--ogt-primary);
}
.ogt-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-right: 16px;
  margin-bottom: 8px;
  cursor: pointer;
}
.ogt-options {
  margin-bottom: 16px;
}

/* Buttons */
.ogt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.ogt-btn-primary {
  background: var(--ogt-primary);
  color: #fff;
}
.ogt-btn-primary:hover {
  background: var(--ogt-primary-dark);
}
.ogt-btn-secondary {
  background: #f1f5f9;
  color: var(--ogt-text);
  border: 1px solid var(--ogt-border);
}
.ogt-btn-secondary:hover {
  background: #e2e8f0;
}
.ogt-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Result */
.ogt-calc-result {
  margin-top: 24px;
  padding: 20px;
  background: #fff7ed;
  border-radius: 12px;
  border: 1px solid #fed7aa;
}
.ogt-calc-result h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ogt-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ogt-result-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ogt-primary-dark);
  word-break: break-all;
}
.ogt-result-details {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ogt-muted);
}

/* Text stats */
.ogt-text-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--ogt-muted);
  border-top: 1px solid var(--ogt-border);
  margin-top: 8px;
}
.ogt-text-stats strong {
  color: var(--ogt-text);
}

/* QR */
.ogt-qr-result {
  text-align: center;
  margin-top: 24px;
}
#ogt-qrcode {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--ogt-border);
  margin-bottom: 12px;
}

/* Generator results */
.ogt-gen-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ogt-gen-item {
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--ogt-border);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ogt-gen-item button {
  background: none;
  border: none;
  color: var(--ogt-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* Status */
.ogt-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin: 8px 0;
}
.ogt-status.success {
  background: #dcfce7;
  color: #166534;
}
.ogt-status.error {
  background: #fee2e2;
  color: #991b1b;
}

/* SEO content */
.ogt-seo-content,
.ogt-tool-seo {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 24px;
  background: #fff;
  border-radius: var(--ogt-radius);
  border: 1px solid var(--ogt-border);
}
.ogt-seo-content h2,
.ogt-tool-seo h2 {
  font-size: 20px;
  margin-top: 0;
}
.ogt-related {
  margin-top: 40px;
}
.ogt-related h3 {
  text-align: center;
  margin-bottom: 16px;
}
.ogt-related-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.ogt-note {
  font-size: 13px;
  color: var(--ogt-muted);
  margin-top: 12px;
}

/* FAQ (tool SEO) */
.ogt-tool-seo h3 {
  font-size: 16px;
  margin: 20px 0 10px;
  color: var(--ogt-text);
}
.ogt-faq {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
}
.ogt-faq-item {
  background: #f8fafc;
  border: 1px solid var(--ogt-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.ogt-faq-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ogt-text);
}
.ogt-faq-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ogt-muted);
  line-height: 1.5;
}
.ogt-seo-keywords {
  font-size: 13px;
  color: var(--ogt-muted);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ========== Unique Footer ========== */
.ogt-footer {
  margin-top: 56px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.ogt-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.ogt-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ogt-footer-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.ogt-footer-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.ogt-footer-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 16px;
  max-width: 340px;
}
.ogt-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ogt-footer-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
}
.ogt-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ogt-footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f8fafc;
}
.ogt-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ogt-footer-col li {
  margin-bottom: 8px;
  font-size: 13px;
  color: #94a3b8;
}
.ogt-footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.ogt-footer-col a:hover {
  color: #fdba74;
}
.ogt-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ogt-footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.ogt-footer-note {
  color: #475569 !important;
}

/* Mobile */
@media (max-width: 640px) {
  .ogt-wrapper {
    padding: 16px 12px 40px;
  }
  .ogt-hero {
    padding: 16px 4px 28px;
  }
  .ogt-hero-title {
    font-size: 28px;
  }
  .ogt-hero-subtitle {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .ogt-hero-stat {
    padding: 0 14px;
    min-width: 70px;
  }
  .ogt-hero-stat strong {
    font-size: 18px;
  }
  .ogt-section-title {
    font-size: 22px;
  }
  .ogt-tool-header h1 {
    font-size: 24px;
  }
  .ogt-tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ogt-tool-card {
    padding: 14px 12px;
    min-height: 0;
  }
  .ogt-tool-title {
    font-size: 14px;
  }
  .ogt-tool-desc {
    font-size: 12px;
  }
  .ogt-field-row {
    grid-template-columns: 1fr;
  }
  .ogt-card {
    padding: 20px 16px;
  }
  .ogt-btn-group {
    flex-direction: column;
  }
  .ogt-btn {
    width: 100%;
  }
  .ogt-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 20px;
  }
  .ogt-footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .ogt-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px 24px;
  }
}

@media (max-width: 400px) {
  .ogt-footer-cols {
    grid-template-columns: 1fr;
  }
}
