/*
Theme Name: DCIP Elementor Theme
Theme URI: https://dcip.com
Description: A highly customizable, dark-themed IP Intelligence theme fully compatible with Elementor. Features glassmorphism components and real-time IP fetching.
Author: DCIP
Author URI: https://dcip.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dcip-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #0B0F19;
  --panel-bg: rgba(17, 24, 39, 0.7);
  --panel-border: rgba(255, 255, 255, 0.05);
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --accent-cyan: #00E5FF;
  --accent-cyan-hover: #00b3cc;
  --success-green: #10B981;
  --warning-yellow: #F59E0B;
  --gradient-glow: radial-gradient(circle at center, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Panel Base */
.dcip-glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
}

/* -------------------------------------
   Header Styles
------------------------------------- */
.site-header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 20px;
}

.site-title {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.btn-sign-in {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-sign-in:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------
   Elementor Overrides
------------------------------------- */
.elementor-page .site-content {
  padding-top: 100px; /* Space for absolute header */
}

/* -------------------------------------
   Shortcode: IP Box
------------------------------------- */
.dcip-ip-widget-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 40px 0 60px;
}

.dcip-ip-widget-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 150%;
  background: var(--gradient-glow);
  z-index: -1;
  pointer-events: none;
}

.dcip-ip-box {
  background: #0d121c;
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 24px;
  padding: 48px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  min-width: 400px;
}

/* Subtle inner glow */
.dcip-ip-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.ip-label {
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.ip-value {
  font-size: 64px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 24px 0;
  letter-spacing: -1px;
}

.ip-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge.secure {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.secure::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--success-green);
  border-radius: 50%;
}

.badge.version {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------
   Shortcode: Connection Details
------------------------------------- */
.dcip-connection-details {
  height: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title svg {
  color: var(--accent-cyan);
}

.panel-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.detail-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-wrap: break-word;
}

/* -------------------------------------
   Shortcode: Privacy Check
------------------------------------- */
.dcip-privacy-check {
  height: 100%;
}

.privacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.score-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-item:last-child {
  margin-bottom: 0;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-green);
}

.check-icon.warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-yellow);
}

/* -------------------------------------
   Shortcode: World Map
------------------------------------- */
.dcip-world-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1a2333;
}

.dcip-world-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(110%);
}

.dcip-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: inset 0 0 50px rgba(11, 15, 25, 1);
}
/* -------------------------------------
   Footer Styles
------------------------------------- */
.site-footer {
  padding: 40px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
}

.footer-left p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

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

/* Animations */
.skeleton-loader {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  color: transparent !important;
  border-radius: 4px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Utility / Typo */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

.text-accent {
  color: var(--accent-cyan);
}
