/* ==========================================================================
   Open Graph Checker - Exact Result Format (Matching User Screenshots)
   ========================================================================== */

:root {
  --bg-slate-ice: #F8FAFC;
  --bg-blur-indigo: #EEF2FF;
  --bg-blur-violet: #F3E8FF;

  --glass-card: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(226, 232, 240, 0.8);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --accent-indigo: #4F46E5;
  --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --accent-glow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);

  --radius-md: 12px;
  --radius-xl: 20px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-slate-ice);
  background-image: 
    radial-gradient(at 15% 10%, var(--bg-blur-indigo) 0px, transparent 55%),
    radial-gradient(at 85% 65%, var(--bg-blur-violet) 0px, transparent 55%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

/* GLOBAL NAVIGATION HEADER */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-icon-box {
  background: var(--accent-gradient);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  font-family: 'Fira Code', monospace;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-subbrand {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-indigo);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-top: 2px;
}

.header-search-bar {
  flex: 1;
  max-width: 420px;
  margin: 0 1.5rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.header-search-bar:hover {
  background: #F1F5F9;
}

.search-icon { color: #94A3B8; font-size: 0.95rem; }
.search-placeholder { color: #94A3B8; font-size: 0.9rem; flex: 1; font-weight: 500; }
.search-badge { background: #EEF2FF; color: var(--accent-indigo); font-size: 0.725rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 6px; border: 1px solid #E0E7FF; font-family: 'Fira Code', monospace; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.categories-btn { background: transparent; border: none; color: #334155; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 8px; }
.cat-arrow { font-size: 0.7rem; color: #64748B; transform: rotate(90deg); display: inline-block; }
.theme-toggle-btn { background: #EEF2FF; border: 1px solid #E0E7FF; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; color: var(--accent-indigo); }
.header-divider { width: 1px; height: 24px; background: #E2E8F0; }

.btn-signup {
  background: var(--accent-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 0.55rem 1.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* HERO SECTION */
.tool-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.breadcrumbs a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.hero-title-box { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.hero-icon { font-size: 2rem; }
.hero-title { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); }
.hero-subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 650px; margin: 0 auto 1.5rem; }

/* WORKSPACE CANVAS */
.workspace-canvas {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.1);
  margin-bottom: 3rem;
}

.input-panel { margin-bottom: 1.5rem; }
.input-label { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); display: block; margin-bottom: 0.5rem; }

.form-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.input-wrapper { flex: 1; min-width: 300px; position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 1.1rem; font-size: 1.1rem; opacity: 0.7; }

#url-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  background-color: #FFFFFF;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

#url-input:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper select {
  padding: 0.9rem 2.5rem 0.9rem 1.25rem;
  background-color: #FFFFFF;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234F46E5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  transition: var(--transition);
}

.select-wrapper select:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.action-trigger-bar { text-align: center; padding-top: 1.25rem; }
.btn-primary {
  background: var(--accent-gradient);
  color: #FFFFFF;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--accent-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.45);
}

/* Loading & Alerts */
.alert { padding: 1rem; border-radius: var(--radius-md); margin: 1.5rem 0; }
.alert-danger { background-color: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }

.loading-container { text-align: center; padding: 2.5rem 0; }
.spinner { width: 44px; height: 44px; border: 4px solid rgba(79, 70, 229, 0.2); border-left-color: var(--accent-indigo); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   EXACT SCREENSHOT RESULT CONTAINER STYLING (DARK CARD THEME)
   ========================================================================== */

.output-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.result-heading {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  color: #0F172A;
  margin-bottom: 1.5rem;
}

.result-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  backdrop-filter: blur(16px);
}

/* Top URL Table */
.result-url-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}

.result-url-table td {
  padding: 0.9rem 1.25rem;
  border: 1px solid #E2E8F0;
}

.url-label {
  width: 150px;
  text-align: center;
  font-weight: 800;
  background-color: #F1F5F9;
  color: #0F172A;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.url-value {
  background-color: #FFFFFF;
  color: var(--accent-indigo);
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
  font-family: 'Fira Code', monospace;
}

/* Meta Section Header */
.meta-section-header {
  background: var(--accent-gradient);
  color: #FFFFFF;
  text-align: center;
  font-weight: 800;
  padding: 0.9rem;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
  letter-spacing: 0.02em;
}

/* Meta Result Table */
.meta-result-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}

.meta-result-table th {
  background-color: #F8FAFC;
  color: #0F172A;
  font-weight: 800;
  border: 1px solid #E2E8F0;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  text-align: center;
}

.col-sr { width: 80px; }
.col-tag { width: 220px; }
.col-val { text-align: left; }

.meta-result-table td {
  border: 1px solid #E2E8F0;
  padding: 0.9rem 1.1rem;
  vertical-align: top;
}

.sr-cell {
  text-align: center;
  font-weight: 800;
  background-color: #F8FAFC;
  color: #475569;
  font-size: 0.95rem;
}

.tag-cell {
  text-align: center;
  font-weight: 800;
  background-color: #EEF2FF;
  color: var(--accent-indigo);
  font-size: 0.95rem;
  font-family: 'Fira Code', monospace;
}

.val-cell {
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-all;
}

/* Image Preview Container */
.image-preview-container {
  margin-top: 1rem;
  background-color: #F8FAFC;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  max-width: 560px;
  display: block;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.image-preview-container img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
   BLOCK 4: EDUCATIONAL CONTENT & SEO SECTION (HIGH-END LUXURY GRIDS)
   ========================================================================== */

.seo-section {
  margin-bottom: 4.5rem;
}

.seo-section h2 {
  font-size: 2.1rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  position: relative;
}

.seo-section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  margin: 0.75rem auto 0;
}

/* 3-Step Cards Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.75rem;
  margin-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.16);
}

.step-card:hover::before {
  opacity: 1;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 4-Card Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.75rem;
  margin-bottom: 4.5rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.4);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 1px solid #C7D2FE;
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* FAQ Accordion Grid */
.faq-accordion {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  margin-bottom: 1.1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.faq-question {
  padding: 1.35rem 1.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--text-primary);
}

.faq-question:hover {
  color: var(--accent-indigo);
}

.faq-arrow {
  transition: transform 0.25s ease;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-item.active {
  border-color: var(--accent-indigo);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.12);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-indigo);
}

.faq-answer {
  padding: 0 1.6rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   BLOCK 5: RELATED TOOLS CAROUSEL & GLOBAL MULTI-COLUMN FOOTER
   ========================================================================== */

.related-section {
  margin-bottom: 4rem;
}

.related-section h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.carousel-grid {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
}

.carousel-card {
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.carousel-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -5px rgba(79, 70, 229, 0.18);
}

.carousel-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.carousel-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Global Multi-Column Footer */
.site-footer {
  margin-top: auto;
  background: #FFFFFF;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-indigo);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
