/*************************************************************
 * profile-lookup.css
 * 
 * Used by individual domain profile pages (e.g. nvidia.com.html),
 * providing layout, dark/light modes, DNS record styling, etc.
 *************************************************************/

/*************************************************************
 * 1) BASIC GLOBAL STYLES & RESETS
 *************************************************************/
* {
  scrollbar-width: thin; /* For modern browsers like Firefox */
  scrollbar-color: #555555 #333333;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #333333;
}
::-webkit-scrollbar-thumb {
  background-color: #555555;
  border-radius: 6px;
  border: 3px solid #333333;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #777777;
}

/*************************************************************
 * 2) BODY & DARK/LIGHT MODES
 *************************************************************/
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #000;
  display: flex;             /* So footer can stick to bottom */
  flex-direction: column;
  min-height: 100vh;
  overflow: auto;
  transition: background 0.3s, color 0.3s;
}

.dark-mode {
  background: #000;
  color: #fff;
}
.light-mode {
  background: #fff;
  color: #000;
}

/*************************************************************
 * 3) CONTAINER & CONTENT
 *************************************************************/
.container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
}
.content {
  margin-top: 10px;
  margin-bottom: 25px;
  width: 100%;
}

/*************************************************************
 * 4) NAV & FLYOUT MENU
 *************************************************************/
/* Top nav menu */
.nav-menu {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background-color: rgba(0, 0, 0, 0.8);
  transition: background 0.3s;
  z-index: 1000;
}

/* Nav links + menu icon */
.nav-menu a,
.menu-icon {
  color: #FFFFFF;
  text-decoration: none;
  margin: 0 10px;
  font-size: 10px;
  transition: color 0.3s;
}
.nav-menu a:hover,
.menu-icon:hover {
  color: #E6E6E6;
}
.menu-icon {
  cursor: pointer;
  font-size: 20px;
  color: #404040;
}
.menu-close {
  cursor: pointer;
  font-size: 16px;
  color: #424242;
}

/* Light mode nav overrides */
.light-mode .nav-menu {
  background-color: rgba(255, 255, 255, 0.8);
}
.light-mode .nav-menu a,
.light-mode .menu-icon {
  color: black;
}

/* Flyout Menu */
.flyout-menu {
  position: fixed;
  right: -250px;
  top: 0;
  width: 250px;
  height: 100%;
  background: #1D1D1D;
  transition: right 0.3s ease;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
  border-left: 1px solid #000000;
  box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}
.flyout-menu a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
  font-size: 16px;
}
.flyout-menu a:hover {
  color: #E6E6E6;
}

/*************************************************************
 * 5) MODE SWITCH (Dark/Light)
 *************************************************************/
.mode-switch {
  display: flex;
  align-items: center;
}
.mode-switch input {
  display: none;
}
.mode-switch label {
  display: block;
  width: 35px;
  height: 15px;
  background: #ccc;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}
.mode-switch label::after {
  content: '';
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}
.mode-switch input:checked + label::after {
  transform: translateX(20px);
}

/*************************************************************
 * 6) HEADER & HERO
 *************************************************************/
.header-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: 0; /* If needed */
}
.header-hero video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Logo in nav */
.nav-logo {
  max-width: 30px;
  height: auto;
}

/* Title in hero */
.header_title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  padding-top: 35px;
  padding-bottom: 15px;
  margin: 5px;
  text-align: center;
}
.header_title img {
  vertical-align: middle;
  max-width: 60px;
  margin-right: 12px;
}

/*************************************************************
 * 7) LAYOUT SECTIONS (TOP/BOTTOM ROWS, QUADRANTS)
 *************************************************************/
/* Top row: Quadrant1 (left), Quadrant2 + Ad1 (right) */
.top-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.left-column,
.right-column {
  width: 100%;
}
.quadrant1 {
  /* Additional quadrant1 styling if desired */
}
.right-column .quadrant2 {
  margin-bottom: 20px;
}
.ad1 {
  display: none;
  background: #111;
  padding: 10px;
  border-radius: 8px;
}

/* Middle: Quadrant3 (DNS Records) */
.quadrant3 {
  margin-top: 20px;
}

/* Bottom row: Ad2 + Quadrant4 */
.bottom-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}
.ad2 {
  display: none;
  background: #111;
  padding: 10px;
  border-radius: 8px;
}
.quadrant4 {
  /* Additional quadrant4 styling if needed */
}

/*************************************************************
 * 8) RESPONSIVE BREAKPOINTS
 *************************************************************/
@media (min-width: 768px) {
  .top-row {
    flex-direction: row;
    align-items: flex-start;
  }

  /* 
     LEFT COLUMN:
     "calc(65% - 200px)" => 200px narrower than 65%.
  */
  .left-column {
    width: calc(65% - 200px);
  }

  /* 
     RIGHT COLUMN:
     "calc(35% + 200px)" => 200px wider than 35%.
  */
  .right-column {
    width: calc(35% + 200px);
    display: flex;
    flex-direction: column;
  }

  .bottom-row {
    flex-direction: row;
  }

  .ad2 {
    width: 20%;
  }

  .quadrant4 {
    width: 80%;
  }

  .record-box {
    max-width: 450px;
    box-sizing: border-box;
  }
}

/*************************************************************
 * 9) FOOTER
 *************************************************************/
.footer {
  position: relative;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 6pt;
  transition: background 0.3s, color 0.3s;
}
.footer-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  text-decoration: none;
  color: white;
}
.light-mode .footer-link {
  color: black;
}

/*************************************************************
 * 10) COMPANY-INFO BLOCK, RECORDS, ETC.
 *************************************************************/

/* --- DNSai brand wordmark inside headings --- */
.brand-dns { 
  font-weight: 1400;            /* bold */
}
.brand-ai {
  font-weight: 100;            /* thin/light */
}

/* Optional: keep heading spacing tidy if mixed weights feel tight */
.summary-title .brand-dns,
.summary-title .brand-ai {
  letter-spacing: 0.2px;
}

.company-info-block {
  display: flex;
  align-items: center;
  margin-top: 15px;
}
.company-info-block img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.social-media-icons {
  display: flex;
  align-items: center;
  gap: 10px; 
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-media-icons a img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* DNS Records Section */
.dns-records-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #111;
  border-radius: 8px;
}
.dns-records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dns-records-header h2 {
  margin: 0;
  font-size: 24px;
}

/* The grid that holds the record boxes */
.records-grid {
  display: grid;
  grid-template-columns: 1fr; /* For narrower screens */
  grid-gap: 15px;
  margin-top: 20px;
}

/* The record boxes themselves */
.record-box {
  background-color: #222;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 1050px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.record-box h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 16px;
  color: #40a8ff;
}
.record-box p {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4em;
}

/*************************************************************
 * 11) BUTTONS & LINKS
 *************************************************************/
/* Domain input field styling: dark background, white text */
.form-input {
  font-size: 12px; /* match main example so iOS doesn't zoom */
  width: 100%;
  padding: 2px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #555555;
  box-sizing: border-box;
  background-color: #444444;
  color: white;
}
.form-input::placeholder {
  color: #bbbbbb;
}

/* Default button styling (dark gradient) */
button {
  width: 55%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #555555;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #0054FF, #0447D3);
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background: linear-gradient(to bottom, #0447D3, #0054FF);
}

/* If you specifically use .submit-button */
.submit-button {
  background: linear-gradient(to bottom, #0054FF, #0447D3);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  /* Override if you don't want 100% width */
  width: auto;
  margin: 5px;
}
.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.submit-button:hover:not(:disabled) {
  background: linear-gradient(to bottom, #0447D3, #0054FF);
}

/* Links within .content */
.content a {
  color: #0054FF;
  text-decoration: none;
}
.content a:hover {
  color: #005FFF;
}
.record-box {
  max-width: 1025px;
}

/*************************************************************
 * 12) ADDITIONAL MEDIA QUERIES FOR MOBILE
 *************************************************************/
@media (max-width: 768px) {
  .container {
    max-width: 768px;
    margin: 0 auto;
    padding: 15px;
  }
  .dns-records-section {
    font-size: 9pt;
    max-width: 100%;
  }
  .record-box {
    font-size: 9px;
    max-width: 400px;
    padding-right: 5px;
    min-width: 350px;
  }

  /* Adjust nav links on smaller screens */
  .nav-links {
    display: none; /* Hide additional nav links on smaller screens */
  }

  .nav-search {
    display: block; /* Show the search bar on mobile (if you want) */
    width: 200px;
  }
  .nav-links {
    display: none; /* Hide on mobile */
  }
  /* Restrict nav search input width on mobile if needed */
  .nav-search form input {
    max-width: 135px;
  }
}

/*************************************************************
 * 13) LIGHT MODE OVERRIDES (DNS SECTIONS, SUMMARY BOX, etc.)
 *************************************************************/
.light-mode .dns-records-section {
  background-color: #f1f1f1;
}
.light-mode .record-box {
  background-color: #fff;
  border: 1px solid #ccc;
}
/* Summary box overrides in light mode */
.light-mode .summary-box {
  background-color: #f1f1f1 !important;
  border: 1px solid #ccc !important;
  color: #000 !important;
}

/*************************************************************
 * 14) LIGHT MODE: LABEL & VALUE COLOR FIXES
 *************************************************************/
/* 1) Email Gateway, DMARC Policy, Technology in DNS => label text black */
.light-mode .summary-box span[style*="font-weight:bold; font-size:16px; color:#fff;"] {
  color: #000 !important;
}

/* 2) DMARC Policy (p) => darker magenta/burgundy */
.light-mode .summary-box span[style*="font-size:18px; color:#FC6FCF;"] {
  color: #a9005f !important;
}

/* 3) Technology Listed In DNS => dark navy blue */
.light-mode .summary-box span[style*="color:#97B8D5;"] {
  color: #000080 !important;
}

/* 4) DMARC RUA => burnt orange in light mode */
.light-mode .summary-box span[style*="color:#D3D212;"] {
  color: #cc5500 !important;
}

/*************************************************************
 * 15) NOTIFICATIONS & NAV EXTRAS
 *************************************************************/
#copyNotification,
#shareNotification {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #0F1926;
  color: #fff;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #97B8D5;
}
#copyNotification {
  z-index: 1000;
}
#shareNotification {
  z-index: 1005;
}

/*************************************************************
 * 16) NAV-SEARCH FORM
 *************************************************************/
.nav-search form {
  display: flex;     /* side-by-side input + button */
  flex-wrap: nowrap; /* no line wrapping */
  align-items: center;
}
.nav-search form input {
  margin-right: 2px;
}
.nav-search form button {
  margin-left: 2px;
}

/*************************************************************
 * 17) COPY & SHARE BUTTONS
 *************************************************************/
/* Small subtle buttons near DNS records. */
.copy-button {
  margin-top: 5px;
  width: 50px;
  float: right;
  text-align: right;
  cursor: pointer;
  font-size: 12px;
  color: #cccccc;
  border: none;
  padding: 4px !important;
  background: transparent;
  outline: none;
}
.copy-button:hover {
  border: 1px solid #cccccc;
  width: 50px;
  background: #000000 !important;
}
