/* FastIPCheck - Optimized CSS */
:root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #334155;
    --ok: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

/* Skip links for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Light theme */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-card: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --ok: #059669;
    --error: #dc2626;
    --warning: #d97706;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: radial-gradient(1200px 600px at 70% -10%, rgba(59,130,246,.15), transparent), var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    padding: 32px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 880px;
    margin: 0 auto;
}

.header-content {
    text-align: left;
    flex: 1;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme toggle */
.theme-toggle {
    position: relative;
}

    .theme-btn {
        appearance: none;
        border: 2px solid var(--border);
        background: rgba(255,255,255,.05);
        color: var(--text);
        padding: 8px;
        border-radius: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        width: 44px;
        height: 44px;
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
        outline: none;
        min-height: 44px;
        transition: all 0.2s ease;
    }

    .theme-btn:hover {
        background: rgba(255,255,255,.1);
        border-color: var(--accent);
        transform: scale(1.05);
    }

    .theme-btn:active {
        transform: scale(0.95);
    }

    .theme-btn:focus {
        outline: none;
    }

    .theme-icon {
        transition: transform 0.3s ease;
        transform-origin: center;
    }

    [data-theme="light"] .theme-icon {
        transform: rotate(0deg);
    }

    [data-theme="dark"] .theme-icon {
        transform: rotate(0deg);
    }

    .theme-btn:focus,
    .lang-btn:focus {
        outline: none !important;
    }

.language-toggle{
  position:relative;
}

.lang-btn{
  appearance:none;
  border:2px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 16px;
  border-radius:12px;
  cursor:pointer;
  /* transition: all 0.3s ease; */
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  backdrop-filter:blur(10px);
  position:relative;
  overflow:hidden;
  outline: none;
  min-height: 44px;
}

.lang-btn::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background: radial-gradient(circle at center, rgba(59,130,246,.1), transparent);
  opacity:0;
  /* transition:opacity 0.3s ease; */
  pointer-events:none;
}

.lang-btn:hover{
  border-color:var(--accent);
  background: rgba(59,162,246,.1);
  transform:scale(1.02);
}

.lang-btn:hover::before{
  opacity:1;
}



.lang-text{
  font-weight:700;
  font-size:13px;
}

.lang-icon{
  font-size:16px;
}

h1{
  margin:0 0 12px;
  font-size:clamp(28px,5vw,42px);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.2;
}

p.lead{
  margin:0 0 24px;
  color: var(--text-muted);
  font-size:18px;
  line-height:1.5;
  font-weight:400;
}

.container{
  max-width:880px;
  margin:24px auto;
  padding:0 16px;
}

.card{
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 20px 40px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.05);
  padding:32px;
  backdrop-filter:blur(10px);
  /* transition:all 0.3s ease; */
  position:relative;
  overflow:hidden;
}

.card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:0;
  /* transition:opacity 0.3s ease; */
}

.card:hover{
  box-shadow:0 25px 50px rgba(0,0,0,.15), 0 12px 24px rgba(0,0,0,.08);
}

.card:hover::before{
  opacity:1;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}



.tile{
  padding:20px;
  border-radius:16px;
  border:2px solid var(--border);
  background:rgba(255,255,255,.02);
  /* transition:all 0.3s ease; */
  position:relative;
  overflow:hidden;
}

.tile::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background: linear-gradient(135deg, rgba(59,130,246,.05), transparent);
  opacity:0;
  /* transition:opacity 0.3s ease; */
  pointer-events:none;
}

.tile:hover{
  border-color:var(--accent);
  background: rgba(59,130,246,.05);
}

.tile:hover::before{
  opacity:1;
}

.label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color: var(--text-muted);
  font-weight:600;
  margin-bottom:8px;
  display:block;
}

.value{
  font-size:22px;
  font-weight:600;
  word-break:break-all;
  color:var(--accent);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  text-shadow: 0 0 20px rgba(59,130,246,.3);
  /* transition:text-shadow 0.3s ease; */
}

.tile:hover .value{
  text-shadow: 0 0 30px rgba(59,130,246,.5);
}

.row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border:2px solid var(--accent);
  background:var(--accent);
  color:white;
  padding:12px 20px;
  border-radius:12px;
  cursor:pointer;
  /* transition: all 0.3s ease; */
  font-weight:600;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
  position:relative;
  overflow:hidden;
  display: inline-block;
  outline: none;
}



.btn:hover{
  box-shadow: 0 8px 20px rgba(59,130,246,.4);
  background:var(--accent-hover);
  border-color:var(--accent-hover);
}

.btn:hover::before{
  left:100%;
}

/* Simple copy button styles */
#copyBtn{
  position:relative;
  background:var(--accent);
  border:2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
  padding: 12px 20px;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 8px;
  font-weight:600;
  color:white !important;
  outline: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#copyBtn:hover{
  background:var(--accent-hover);
  border-color:var(--accent-hover);
  box-shadow: 0 6px 20px rgba(59,130,246,.4);
  color: white !important;
}

/* Light mode hover - better contrast */
[data-theme="light"] #copyBtn:hover{
  color: white !important;
}

/* Dark mode hover - ensure white text */
[data-theme="dark"] #copyBtn:hover{
  color: white !important;
}

#copyBtn:active{
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
}

/* Success state for copy button */
#copyBtn.success{
  background:var(--accent) !important;
  border-color:var(--accent) !important;
  color:white !important;
}

/* Ripple effect for copy button */
.btn[onclick*="copyToClipboard"]::before{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:0;
  height:0;
  border-radius:50%;
  background:rgba(255,255,255,.3);
  transform:translate(-50%, -50%);
  transition:width 0.6s, height 0.6s;
}

.btn[onclick*="copyToClipboard"]:active::before{
  width:300px;
  height:300px;
}

/* Icon for copy button */
#copyBtn::after{
  content:'📋';
  font-size:16px;
  opacity:1;
  transition: none;
  pointer-events:none;
}

/* Success icon */
#copyBtn.success::after{
  content:'✅';
  color:var(--ok);
  opacity:1;
  transition: none;
}





.btn:disabled{
  opacity:0.5;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none !important;
}

.code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.muted{
  color:var(--muted);
}

.ads{
  min-height:90px;
  border:1px dashed var(--border);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: opacity 0.3s ease;
}

/* Prevent ad blocks from popping in during loading */
.ads:not([data-ad-slot="ready"]) {
  opacity: 0.7;
}

.ads[data-ad-slot="ready"] {
  opacity: 1;
}

footer{
  opacity:.8;
  text-align:center;
  padding:28px 0;
}

.ok{
  color:var(--ok);
}

.bad{
  color:var(--bad);
}

nav{
  display:flex;
  gap:12px;
  margin:8px 0 0;
}

.main-nav{
  justify-content:flex-start;
}

nav a{
  color:inherit;
  text-decoration:none;
  border:2px solid var(--border);
  padding:8px 16px;
  border-radius:12px;
  transition: all 0.3s ease;
  font-weight:500;
  background:rgba(255,255,255,.02);
  backdrop-filter:blur(10px);
  position:relative;
  overflow:hidden;
}

nav a::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background: linear-gradient(135deg, rgba(59,130,246,.1), transparent);
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none;
}

nav a:hover{
  border-color:var(--accent);
  background: rgba(59,130,246,.1);
}

nav a:hover::before{
  opacity:1;
}



.faq h4{
  margin:1.2em 0 .4em;
  font-size:18px;
  font-weight:600;
  color:var(--text);
}

/* Loading states */
.loading{
  display:inline-block;
  width:24px;
  height:24px;
  border: 3px solid rgba(59,130,246,.2);
  border-radius:50%;
  border-top-color:var(--accent);
  animation:spin 1s ease-in-out infinite;
  margin:8px 0;
}

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



/* Error states */
.error{
  color: var(--error);
  background:rgba(239,68,68,.08);
  border:2px solid rgba(239,68,68,.2);
  padding:16px 20px;
  border-radius:12px;
  margin:12px 0;
  font-weight:500;
  backdrop-filter:blur(10px);
}

/* Success states */
.success{
  color:var(--ok);
  background:rgba(52,211,153,.08);
  border:2px solid rgba(52,211,153,.2);
  border-radius:12px;
  font-weight:500;
  backdrop-filter:blur(10px);
}

/* Consent banner styles */
.consent-banner {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 40px;
  z-index: 9999;
  box-shadow: 0 25px 80px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.2);
  max-width: 600px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  color: var(--text);
  font-weight: 500;
  /* Accessibility improvements */
  outline: none;
  font-size: 16px;
  line-height: 1.6;
  backdrop-filter: blur(20px);
}

/* Focus styles for better accessibility */
.consent-banner button:focus,
.theme-btn:focus,
.lang-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .consent-banner {
    border: 3px solid var(--text);
  }
  
  .btn {
    border: 2px solid var(--text);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .btn,
  .theme-btn,
  .lang-btn {
    transition: none;
  }
}

.consent-banner::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.2);
  z-index: -1;
}

.consent-banner h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.consent-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.consent-actions .btn {
  font-size: 14px;
  padding: 12px 20px;
  min-width: 120px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.consent-actions .btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
}

.consent-row input[type="checkbox"] {
  margin: 0;
}

.hidden {
  display: none !important;
}

/* Responsive consent banner */
@media (max-width: 768px) {
  .consent-banner {
    width: 95%;
    padding: 20px;
    max-height: 90vh;
  }
  
  .consent-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .consent-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
nav a:focus{
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high){
  :root{
    --bg: #000000;
    --bg-card: #ffffff;
    --text: #000000;
    --text-muted: #666666;
    --accent: #0066cc;
  }
}

/* Responsive design for header */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .header-content {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .header-controls {
    justify-content: center;
    gap: 12px;
    width: 100%;
  }
  
  .theme-toggle,
  .language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .theme-btn,
  .lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  
  .main-nav {
    justify-content: center;
    margin-top: 1rem;
  }
} 

/* Home link styling */
.home-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
} 

/* Blog article styles */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reading-time {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: var(--text);
    margin: 2.5rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.article-content .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  /* transition: all 0.2s ease; */
}

.comparison-card:hover {
  border-color: var(--accent);
  /* transform: translateY(-2px); */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.ip-example {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text);
    word-break: break-all;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.comparison-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.comparison-card li:last-child {
    border-bottom: none;
}

.info-box {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(16,185,129,0.1));
    border: 2px solid var(--accent);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.info-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-box p {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0;
}

.cta-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-section h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-section .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    text-align: center;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-hover);
}

/* Responsive design for blog articles */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
} 

/* Protection methods grid */
.protection-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  /* transition: all 0.2s ease; */
}

.method-card:hover {
  border-color: var(--accent);
  /* transform: translateY(-2px); */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.method-card h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.method-card p {
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* VPN process steps */
.vpn-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  /* transition: all 0.2s ease; */
}

.step-card:hover {
  border-color: var(--accent);
  /* transform: translateY(-2px); */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-number {
    background: var(--accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-card h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* VPN types */
.vpn-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.type-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  /* transition: all 0.2s ease; */
}

.type-card:hover {
  border-color: var(--accent);
  /* transform: translateY(-2px); */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.type-card h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.type-card p {
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive design for new blog elements */
@media (max-width: 768px) {
    .protection-methods,
    .vpn-process,
    .vpn-types {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .method-card,
    .type-card {
        padding: 1.25rem;
    }
} 

/* Footer styling */
.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
} 