/* CheckDomain.ie - Design Option 2: Minimal Black & Red */

:root {
  /* Light Mode - Pure Minimal */
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fb7185;
  --secondary: #64748b;
  --success: #22c55e;
  --danger: #e11d48;
  --warning: #f97316;
  
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --text-primary: #0a0a0a;
  --text-secondary: #71717a;
  --border-color: #e4e4e7;
  --shadow: rgba(0,0,0,0.08);
  
  --card-bg: #ffffff;
  --input-bg: #fafafa;
  --code-bg: #fafafa;
}

[data-theme="dark"] {
  /* Dark Mode - Sleek Black */
  --primary: #f43f5e;
  --primary-dark: #e11d48;
  --primary-light: #fb7185;
  --secondary: #94a3b8;
  --success: #22c55e;
  --danger: #f43f5e;
  --warning: #f97316;
  
  --bg-primary: #000000;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --border-color: #3f3f46;
  --shadow: rgba(0,0,0,0.6);
  
  --card-bg: #18181b;
  --input-bg: #27272a;
  --code-bg: #09090b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: all 0.2s ease;
}

/* Header - Minimal Elegance */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.9);
}

[data-theme="dark"] .header {
  background: rgba(0,0,0,0.9);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--primary);
  font-size: 2rem;
  line-height: 0;
}

/* Navigation */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1.2rem;
}

.theme-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Hero - Clean & Simple */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards - Ultra Minimal */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--primary);
  color: white;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Summary Grid - Minimal Cards */
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.summary-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}

.summary-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.summary-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.summary-item.highlight {
  border-color: var(--primary);
  border-width: 2px;
}

/* Table - Clean Lines */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.table th {
  background: transparent;
  color: var(--text-secondary);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--border-color);
}

.table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table td:first-child {
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Raw Output - Sleek Collapsible */
.raw-section {
  margin-top: 3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.raw-header {
  background: var(--bg-secondary);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.raw-header:hover {
  background: var(--bg-tertiary);
}

.raw-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.raw-content.show {
  max-height: 600px;
  overflow-y: auto;
}

.raw-code {
  background: var(--code-bg);
  padding: 2rem;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* Badge - Minimal Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.badge-danger {
  background: rgba(225, 29, 72, 0.1);
  color: var(--danger);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav a:not(:last-child) {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .summary {
    grid-template-columns: 1fr;
  }
}

/* Green logo dot in dark mode */
[data-theme="dark"] .logo-dot {
  color: #00ff00 !important;
}

/* Green accents throughout dark mode */
[data-theme="dark"] .accent-color {
  color: #00ff00 !important;
}

[data-theme="dark"] .btn:hover {
  background: #00ff00 !important;
  border-color: #00ff00 !important;
  color: #000 !important;
}

/* Dark mode - ALL buttons green */
[data-theme="dark"] .btn {
  background: #00ff00 !important;
  border-color: #00ff00 !important;
  color: #000 !important;
}

[data-theme="dark"] .btn:hover {
  background: #00cc00 !important;
  border-color: #00cc00 !important;
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4) !important;
}

[data-theme="dark"] .btn-share {
  background: #00ff00 !important;
  border-color: #00ff00 !important;
  color: #000 !important;
}

[data-theme="dark"] .btn-share:hover {
  background: #00cc00 !important;
  border-color: #00cc00 !important;
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4) !important;
}

[data-theme="dark"] button.btn {
  background: #00ff00 !important;
  border-color: #00ff00 !important;
  color: #000 !important;
}

[data-theme="dark"] .theme-btn:hover {
  background: #00ff00 !important;
  color: #000 !important;
}

/* White borders for cards in dark mode */
[data-theme="dark"] .card {
  border-color: #ffffff !important;
}

[data-theme="dark"] .featured-tool {
  border-color: #ffffff !important;
}

/* White footer links in dark mode */
[data-theme="dark"] .footer-text a {
  color: #ffffff !important;
}

[data-theme="dark"] .footer-text a:hover {
  color: #00ff00 !important;
}

/* Center footer logo */
.footer-logo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ========== MOBILE FIXES ========== */

/* =========================================
   MOBILE ENHANCEMENTS FOR CHECKDOMAIN.IE
   ========================================= */

/* Extra small devices (320px and up) */
@media (max-width: 480px) {
  /* Typography */
  body {
    font-size: 14px;
  }
  
  h1, h2, h3 {
    font-size: 1.3rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  /* Container */
  .container {
    padding: 0 10px;
  }
  
  /* Header */
  .header {
    padding: 10px 0;
  }
  
  .header-inner {
    padding: 0 10px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  /* Nav - hide all but hamburger on very small screens */
  .nav a:not(:last-child):not(.theme-btn) {
    display: none;
  }
  
  .nav {
    gap: 10px;
  }
  
  /* Cards and sections */
  .card, .cert-section {
    padding: 15px;
    margin: 10px 0;
  }
  
  /* Buttons */
  .btn, .btn-share, button.btn-share {
    padding: 12px 20px !important;
    font-size: 14px !important;
    width: 100%;
    justify-content: center;
  }
  
  .button-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-group .btn,
  .button-group .btn-share {
    width: 100%;
  }
  
  /* Tables */
  table {
    font-size: 12px;
  }
  
  td, th {
    padding: 8px 4px;
  }
  
  /* Info table - horizontal scroll */
  .info-table {
    display: block;
    overflow-x: auto;
  }
  
  /* Form inputs */
  input[type="text"],
  input[type="email"],
  input[type="search"],
  select {
    width: 100%;
    padding: 12px;
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  /* Hide large icons on mobile */
  .icon-large {
    font-size: 24px;
  }
  
  /* Stats */
  .stats-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .stat-item {
    width: 100%;
    text-align: center;
  }
}

/* Small devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* Adjust padding */
  .container {
    padding: 0 15px;
  }
  
  /* Two-column to single column */
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  /* Buttons full width on mobile */
  .btn, .btn-share {
    min-width: 120px;
  }
  
  /* Nav adjustments */
  .nav a:not(:last-child) {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  /* Ensure tables scroll horizontally */
  .table-wrapper,
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Fix for iOS Safari viewport */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px; /* Prevents auto-zoom on focus */
  }
}

/* Print styles - hide navigation */
@media print {
  .nav, .theme-btn, .button-group {
    display: none;
  }
}
