/* VPN Page Specific Styles */

/* Override common.css for vpn-specific styling */
.hero-buttons { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(45deg, #1e3a8a, #3b82f6); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4); }
.btn-secondary { background: transparent; color: white; border: 2px solid rgba(255, 255, 255, 0.3); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }

.vpn-benefits {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}
.vpn-benefits li {
  margin: 12px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  color: #e0e0e0;
}
.vpn-benefits li i {
  margin-right: 10px;
  color: #667eea;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: #1a1a1a;
  border: 2px solid #000621;
  border-radius: 14px;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  color: #fff;
  position: relative;
  animation: slideIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-content h2 {
  margin-bottom: 15px;
  color: #fff;
}
.modal-content p, .modal-content ul {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ddd;
  margin-bottom: 10px;
}
.modal-content ul {
  list-style: disc;
  margin-left: 20px;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 85vh;
    padding: 15px;
  }
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Repository access styling */
#repoAccess {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: #f0f9ff;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  text-align: left;
}
#repoAccess h3 {
  color: #1e3a8a;
  margin-top: 0;
}
#repoAccess p {
  margin-bottom: 15px;
}
#repoAccess .repo-token {
  background: #1e293b;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin-bottom: 10px;
  word-break: break-all;
}
#repoAccess button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
#repoAccess button:hover {
  background: #2563eb;
}
#repoAccess .note {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 0;
}

/* Privacy policy and disclaimer links */
.privacy-links {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.privacy-links a {
  color: #3b82f6;
  text-decoration: none;
  margin-right: 15px;
}
.privacy-links a:hover {
  text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.loading-overlay.show {
  display: flex;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* VPN page - allow natural expansion but limit on very large screens */
@media (min-width: 768px) {
  .card {
    max-width: 700px !important;
  }
}