/* MySSLPro Tools — Design System adapted for SSL Monitor */

@font-face {
  font-family: "Syne";
  src: url("/fonts/syne-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

:root {
  /* --- CONFIGURATION --- */
  --promo-display: flex; 

  --bg-color: #0b1120;
  --primary-color: #131c30;
  --secondary-color: #1a243a;
  --text-color: #ffffff;
  --accent-color: #00d4e0;
  --border-title-color: rgba(255, 255, 255, 0.07);
  --ssl-accent-color: #00c472;
  --ssl-accent-light: #00d4e0;
  --border-color: rgba(255, 255, 255, 0.07);
  --success-color: #00c472;
  --error-color: #cc5c5c;
  --warning-color: #f59e0b;
  --neutral-color: #94a3b8;
  --button-bg: #00d4e0;
  --button-hover-bg: #4d94ff;
  --input-bg: #1a243a;
  --input-border: rgba(255, 255, 255, 0.12);
  --input-focus-border: #00d4e0;
  --logo-bg: transparent;
  --logo-text: #ffffff;
  
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Monitor specific */
  --bg-card: #1a1d27;
  --border: rgba(255, 255, 255, 0.07);
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --green: #16a34a;
  --red: #dc2626;
  --red-light: #f87171;
  --orange: #ea580c;
  --yellow: #ca8a04;
  --shadow: 0 4px 20px rgba(0,0,0,.4);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a { color: var(--accent-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--button-hover-bg); }

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  height: 100px;
}

.site-header .container {
  height: 100%;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
  padding-top: 28px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 auto;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
  padding-top: 4px;
}

.site-logo span { color: var(--accent-color); }

.site-logo .logo-slogan {
  font-family: var(--font-body);
  font-size: 0.62em;
  font-weight: 500;
  color: var(--neutral-color);
  text-transform: lowercase;
  letter-spacing: 0.2px;
  margin-top: 1px;
  margin-left: 4.5em;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 1;
}

.nav-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.site-nav a {
  color: var(--neutral-color);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 4px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--text-color);
  background: rgba(0, 212, 224, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary { background: var(--accent-color); color: #000; }
.btn-primary:hover { background: var(--button-hover-bg); transform: translateY(-1px); }
.btn-ghost { color: var(--text-color); border: 1px solid var(--border-color); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-danger { background: var(--error-color); color: #fff; }
.btn-danger:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-sm { padding: 5px 11px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-get-ssl { display: none !important; }

.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .site-header {
    background: #0b1120 !important;
    height: 90px;
    padding-top: 30px;
  }
  .header-inner {
    padding-top: 0;
    align-items: center;
  }
  .site-logo {
    padding-top: 0;
    justify-content: center;
  }
  .btn-get-ssl {
    display: inline-flex !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    background: var(--accent-color);
    color: #000 !important;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 8px;
  }
  .site-nav {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0b1120 !important;
    flex-direction: column;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    align-items: flex-start;
  }
  .site-nav.active { transform: translateX(0); }
  .nav-row { display: contents; }
  .site-nav a {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-toggle {
    display: block !important;
    font-size: 1.5rem;
    background: transparent;
    color: var(--text-color);
    z-index: 1400;
  }
}

main { flex: 1; padding-top: 120px; }

/* Content Headings */
.header-text { text-align: center; margin-bottom: 40px; }
.header-text h1 { font-size: 2rem; color: var(--accent-color); margin-bottom: 12px; }
.header-text p { color: var(--neutral-color); max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(0, 212, 224, 0.1);
  border: 1px solid rgba(0, 212, 224, 0.25);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}
.hero-badge .promo-code { color: #fff; }
.hero-badge a { color: var(--accent-color); text-decoration: underline; }

@media (max-width: 600px) {
  .hero-badge { flex-direction: column; border-radius: 15px; padding: 12px 20px; text-align: center; }
}

/* SEO Content */
.seo-content { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.seo-content h2 { font-size: 1.75rem; color: #fff; margin: 40px 0 20px; }
.seo-content h3 { font-size: 1.25rem; color: #fff; margin: 30px 0 15px; }
.seo-content p { color: var(--neutral-color); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.seo-content ul, .seo-content ol { margin-bottom: 20px; padding-left: 24px; color: var(--neutral-color); }
.seo-content li { margin-bottom: 10px; color: var(--neutral-color); }
.seo-content strong { color: #fff; }
.seo-content a { color: var(--accent-color); text-decoration: underline; }

/* Cards */
.card {
  background: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.card-center { max-width: 480px; margin: 0 auto; }

/* Forms */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--neutral-color); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent-color); outline: none; }

/* Inline Form for compact look */
.form-inline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.form-inline .form-group {
  flex: 1;
  margin-bottom: 0;
}
.form-inline .btn {
  height: 46px; /* Match input height */
  white-space: nowrap;
}

@media (max-width: 600px) {
  .form-inline { flex-direction: column; }
  .form-inline .btn { width: 100%; }
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid transparent;
}
.alert-success { background: rgba(0, 196, 114, 0.1); border-color: var(--success-color); color: var(--success-color); }
.alert-error   { background: rgba(204, 92, 92, 0.1); border-color: var(--error-color); color: var(--error-color); }
.alert-info    { background: rgba(0, 212, 224, 0.1); border-color: var(--accent-color); color: var(--accent-color); }

/* Tables */
.domain-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.domain-table { width: 100%; border-collapse: collapse; background: var(--primary-color); }
.domain-table th {
  background: rgba(255,255,255,0.03);
  color: var(--neutral-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.domain-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--text-color); }
.domain-table tr:last-child td { border-bottom: none; }
.domain-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.domain-name a { color: #fff; font-weight: 600; font-size: 1.05rem; }
.domain-name a:hover { color: var(--accent-color); }
.issuer { color: var(--neutral-color); font-size: 0.85rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-ok       { background: rgba(0, 196, 114, 0.1); color: var(--success-color); border: 1px solid rgba(0, 196, 114, 0.2); }
.badge-warning  { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-critical { background: rgba(204, 92, 92, 0.1); color: var(--error-color); border: 1px solid rgba(204, 92, 92, 0.2); }
.badge-expired  { background: #450a0a; color: #fca5a5; border: 1px solid #991b1b; }
.badge-neutral  { background: rgba(255,255,255,0.05); color: var(--neutral-color); border: 1px solid var(--border-color); }

/* Status Dot */
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.status-ok       .status-dot { background: var(--success-color); box-shadow: 0 0 10px var(--success-color); }
.status-warning  .status-dot { background: var(--warning-color); box-shadow: 0 0 10px var(--warning-color); }
.status-critical .status-dot { background: var(--error-color); box-shadow: 0 0 10px var(--error-color); }

/* Footer */
.site-footer {
  background: #0b1120;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 64px; }
.footer-brand p { color: var(--neutral-color); font-size: 0.95rem; margin-top: 20px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 24px; font-family: var(--font-heading); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--neutral-color); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--neutral-color); }
.footer-bottom a { color: var(--neutral-color); margin-left: 12px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  main { padding-top: 100px; }
}
