/* --- HIBP Checker Styles --- */
.hibp-form {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.hibp-input {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	width: 60%;
}

.hibp-submit-btn {
	padding: 10px 15px;
	border: none;
	border-radius: 5px;
	background: #0073aa;
	color: white;
	cursor: pointer;
}

.hibp-popup {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 999999;
}

.hibp-popup.show {
	display: flex !important;
}

.hibp-content {
	    background: var(--e-global-color-e226fd0, #1f0f39);
    padding: 25px 70px;
    border-radius: 12px;
    width: 90%;
    max-width: 1140px;
    text-align: center;
    box-shadow: 0 5px 25px rgb(88 238 241 / 17%);
    color: #fff;
    max-height: 90vh;
    overflow: scroll;
}
@media(max-width:786px){
	.hibp-content {
	    padding: 25px 10px !important;
	}
}

.hibp-heading {
	margin-top: 0;
	color: #fff;
}

.hibp-close-btn {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 8px 20px;
	margin-top: 15px;
	border-radius: 6px;
	cursor: pointer;
}

.hibp-summary {
	background: linear-gradient(145deg, #150914, #1f0f39);
	border: 1px solid var(--e-global-color-secondary, #4b2999);
	border-radius: 16px;
	padding: 40px 25px;
	text-align: center;
	box-shadow: 0 0 20px #4b299959;
}

.hibp-count {
	margin: 0;
	font-size: 48px;
	color: #ff4fa3;
}

.hibp-count-label {
	margin: 5px 0 20px;
	font-size: 24px;
	color: #ff4fa3;
	font-weight: 700;
}

.hibp-summary-text {
	max-width: 600px;
	margin: 0 auto 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #ccc;
}

.hibp-breaches-list {
	margin-top: 20px;
	color: #ffb3da;
	font-size: 15px;
}

.hibp-timeline {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}



.hibp-timeline-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 600;
	min-width: 70px;
}

.hibp-timeline-content {
	flex: 1;
	color: #fff;
}

.hibp-timeline-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}

.hibp-timeline-logo img {
	width: 100%;
    height: 100%;
    border-radius: 6px;
    
    object-fit: contain !important;
    padding: 3px;
}

.hibp-timeline-desc {
	margin-bottom: 10px;
	color: #ccc;
}

.hibp-data-list ul {
	list-style: disc;
	margin-left: 20px;
	margin-top: 10px;
	color: #ddd;
}

.hibp-visit-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	border: 1px solid #58edf1;
	border-radius: 6px;
	color: #58edf1;
	text-decoration: none;
	transition: all 0.3s;
}

.hibp-visit-btn:hover {
	background: #58edf1;
	color: #000;
}

.hibp-no-breach {
	background: linear-gradient(145deg, #000000, #0c142f);
	border: 1px solid var(--e-global-color-c3e8e8c, #58edf1);
	border-radius: 16px;
	padding: 40px 25px;
	text-align: center;
	color: #fff;
	box-shadow: 0 0 20px #29819959;
}

.hibp-no-breach h2 {
	font-size: 48px;
	color: #58edf1;
	margin: 0;
}

.hibp-no-breach h3 {
	font-size: 24px;
	color: #58edf1;
	font-weight: 700;
	margin-bottom: 15px;
}



.hibp-timeline {
  position: relative;
}

.hibp-timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(29, 114, 167, 0.1) 0%,
    rgba(29, 114, 167, 0.8) 15%,
    rgba(29, 114, 167, 0.8) 85%,
    rgba(29, 114, 167, 0.1) 100%);
  box-shadow: 0 0 8px rgba(29, 114, 167, .4);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

/* timeline items */
.hibp-timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  text-align: left;
  min-height: 150px;
}

.hibp-timeline-item:nth-child(odd) {
  justify-content: flex-end;
  padding-right: 50%;
}

.hibp-timeline-item:nth-child(odd) .hibp-timeline-content {
  margin-right: 60px;
}

.hibp-timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-left: 50%;
}

.hibp-timeline-item:nth-child(even) .hibp-timeline-content {
  margin-left: 60px;
}

/* timeline date */
.hibp-timeline-date {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1d72a7 0%, rgb(17.68, 69.5, 101.82) 100%);
  border: 2px solid rgba(246, 248, 250, .3);
  border-radius: 50%;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: .5rem;
  box-shadow: 0 .25rem .5rem rgba(3, 3, 4, .2);
}

.hibp-timeline-date i {
  font-size: 1rem;
  margin-bottom: .1rem;
}

.hibp-timeline-date-text {
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 600;
}

/* timeline content */
.hibp-timeline-content {
  background: linear-gradient(145deg,
    rgba(29, 114, 167, 0.08) 0%,
    rgba(29, 114, 167, 0.03) 100%);
  backdrop-filter: blur(8px);
  box-shadow: 0 .125rem .5rem rgba(3, 3, 4, .15);
  border: 1px solid rgba(29, 114, 167, .2);
  transition: all .3s ease;
  width: calc(100% - 60px);
	padding:20px;
}

.hibp-timeline-content .data-types-preview {
  display: flex;
  flex-wrap: wrap;
}

.hibp-timeline-content .recommended-actions-preview li {
  font-size: .875rem;
}

.hibp-timeline-content .recommended-actions-preview li i {
  margin-top: .125rem;
  font-size: .875rem;
}

.hibp-timeline-content:hover {
  box-shadow: 0 .25rem 1rem rgba(29, 114, 167, .2);
  border-color: rgba(29, 114, 167, .3);
}

/* title + logo */
.hibp-timeline-title h5,
.hibp-timeline-title .h5 {
  text-shadow: 0 1px 2px rgba(3, 3, 4, .1);
}

.hibp-timeline-logo {
  position: relative;
  width: 72px;
  height: 72px;
  background: transparent;
  color: #f6f8fa;
  box-shadow: 0 .25rem .5rem rgba(3, 3, 4, .1);
  border: 1px solid rgba(29, 114, 167, .15);
}

.hibp-timeline-logo img {
  object-fit: contain;
  object-position: center;
  transition: all .3s ease;
  opacity: 1;
}

.hibp-timeline-logo:hover {
  border-color: rgba(29, 114, 167, .3);
  box-shadow: 0 .25rem .75rem rgba(29, 114, 167, .15);
}

.hibp-timeline-logo:hover img {
  transform: scale(1.05);
}

.hibp-timeline-logo::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(29, 114, 167, 0.2) 0%,
    rgba(29, 114, 167, 0.05) 100%);
  z-index: -1;
  filter: blur(4px);
}

/* badges */
.hibp-timeline-badge {
  padding: .35em .65em;
  font-size: .75em;
  font-weight: 700;
  border-radius: .25rem;
}

.hibp-timeline-badge-breach {
  background-color: #db336e;
}

.hibp-timeline-badge-paste {
  background-color: #6c757d;
}

/* details */
.hibp-timeline-details {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(29, 114, 167, .2);
  animation: fadeIn .3s ease-in-out;
  max-height: 300px;
  overflow-y: auto;
}

.hibp-timeline-details.show {
  display: block;
}

.hibp-timeline-details::-webkit-scrollbar {
  width: 6px;
}

.hibp-timeline-details::-webkit-scrollbar-track {
  background: rgba(3, 3, 4, .05);
  border-radius: 3px;
}

.hibp-timeline-details::-webkit-scrollbar-thumb {
  background: rgba(29, 114, 167, .3);
  border-radius: 3px;
}

.hibp-timeline-details::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 114, 167, .5);
}

/* details list */
.hibp-timeline-details-list {
  background: rgba(3, 3, 4, .05);
}

.hibp-timeline-details-list li i {
  color: #1d72a7;
  margin-top: .125rem;
}

/* Responsive */
@media (max-width: 767.98px) {
  .hibp-timeline::before {
    left: 40px;
  }

  .hibp-timeline-item {
    margin-bottom: 5rem;
  }

  .hibp-timeline-item:nth-child(odd),
  .hibp-timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  .hibp-timeline-item:nth-child(odd) .hibp-timeline-content,
  .hibp-timeline-item:nth-child(even) .hibp-timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
    margin-right: 0;
  }

  .hibp-timeline-date {
    left: 40px;
  }

  .hibp-timeline-logo {
    width: 64px;
    height: 64px;
  }

  .hibp-timeline-logo img {
    padding: 3px;
  }
}
