/* ===== GLOBAL RESET & VARIABLES ===== */
/* Synchronized with Toolshub123 Meta Tag Tool Design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F4F6F8;
  --card-bg: #ffffff;
  --text-main: #0A192F;
  --text-muted: #545454;
  --header-dark: #0A192F;
  --green: #00BFA6; /* Primary Action Color */
  --green-hover: #008f7a;
  --blue-primary: #007bff; /* Secondary Action Color */
  --hero-gradient: linear-gradient(135deg, #0A192F 0%, #00BFA6 60%, #38EF7D 100%);
  --ad-bg: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.1);
  --premium-gold: #ffd700;
}

body.dark-mode {
  --bg: #050d1a;
  --card-bg: #112240;
  --text-main: #ffffff;
  --text-muted: #bdc1c6;
  --ad-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  transition: background 0.3s ease;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--header-dark);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  max-height: 45px;
}

.header-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 15px;
  transition: 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--green);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 2px;
}

.dark-mode-toggle {
  background: var(--green);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  margin-left: 10px;
}

/* ===== HERO SECTION ===== */
.seo-hero {
  background: var(--hero-gradient);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.seo-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.seo-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.trust-badge {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== MAIN CONTAINER & CARDS ===== */
.seo-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.tool-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

/* ===== FORM ELEMENTS ===== */
.field-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.tool-textarea, .code-display {
  width: 100%;
  height: 450px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: 'Courier New', monospace;
  background: #fafafa;
  color: #333;
  resize: vertical;
  font-size: 14px;
}

body.dark-mode .tool-textarea, 
body.dark-mode .code-display {
  background: #0d192e;
  color: #fff;
  border-color: #233554;
}

.code-display {
    overflow: auto;
    white-space: pre;
    border-style: dashed;
}

/* ===== BUTTONS ===== */
.tool-btn-main {
  background: var(--blue-primary);
  color: white;
  border: none;
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.tool-btn-main:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.tool-btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.tool-btn-secondary:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* ===== PREMIUM LOCK OVERLAY ===== */
#premium-lock {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lock-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--premium-gold);
    max-width: 500px;
}

.hidden { display: none !important; }

/* ===== INFO CARDS ===== */
.info-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.trust-card {
  background: rgba(0, 0, 0, 0.02);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border);
}

/* ===== FOOTER ===== */
footer {
  background: var(--header-dark);
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-top: 80px;
}

footer a {
  color: var(--green) !important;
  text-decoration: none;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 850px) {
  .menu-toggle { display: flex; }
  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-dark);
    padding: 20px;
    z-index: 999;
  }
  .header-nav.active { display: flex; }
  .editor-grid { grid-template-columns: 1fr; }
  .tool-textarea, .code-display { height: 300px; }
  .seo-hero h1 { font-size: 2rem; }
}
