/**
 * My Public IP Checker Stylesheet
 * Netixa Network Toolbox
 */

.ip-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.ip-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold, #d4af37), var(--cyan, #00d2ff));
}

.ip-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  color: var(--cyan, #00a8cc);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.ip-display-box {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ip-address-text {
  font-family: var(--font-mono, monospace);
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
  direction: ltr;
  text-align: center;
  word-break: break-all;
  user-select: all;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-address-text.loading {
  color: var(--text-muted);
  font-size: 24px;
  font-family: inherit;
  font-weight: 500;
}

.ip-address-text.error {
  color: var(--error, #e53e3e);
  font-size: 20px;
  font-family: inherit;
}

.ip-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-copy-ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold, #d4af37);
  color: #071224;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-copy-ip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-refresh-ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-refresh-ip:hover {
  background: var(--bg-hover);
  border-color: var(--cyan);
}

.btn-refresh-ip.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Info Grid */
.ip-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.ip-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ip-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ip-detail-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.1);
  color: var(--cyan);
  border-radius: 8px;
}

.ip-detail-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ip-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle, rgba(255,255,255,0.06));
  font-size: 13.5px;
}

.ip-data-row:last-child {
  border-bottom: none;
}

.ip-data-label {
  color: var(--text-muted);
  font-weight: 500;
}

.ip-data-value {
  font-weight: 600;
  color: var(--text);
  direction: ltr;
  font-family: var(--font-mono, monospace);
}

.ip-data-value.badge {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
}

/* CLI Commands Card */
.cli-box {
  background: #090f1d;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cli-box code {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: #38bdf8;
}

.cli-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cli-copy-btn:hover {
  background: var(--gold);
  color: #071224;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .ip-address-text {
    font-size: 28px;
  }
  .ip-hero-card {
    padding: 24px 16px;
  }
}
