/* design system base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  color: #06273F;
  font-size: 20px;
  line-height: 1.6;
}

img {
  vertical-align: middle;
  border-style: none;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1150px;
  }
}

.container_min {
  /* max-width: 590px; */
}

.text-center {
  text-align: center;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-lg-4,
.col-lg-6,
.col-lg-12,
.col-md-4,
.col-md-6,
.col-md-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .col-md-4 {
    width: 33.33333333%;
  }
  .col-md-6 {
    width: 50%;
  }
  .col-md-12 {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    width: 33.33333333%;
  }
  .col-lg-6 {
    width: 50%;
  }
  .col-lg-12 {
    width: 100%;
  }
}

h1, .h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 1200px) {
  h1, .h1 {
    font-size: 52px;
  }
}
@media (max-width: 991.98px) {
  h1, .h1 {
    font-size: 44px;
  }
}
@media (max-width: 767.98px) {
  h1, .h1 {
    font-size: 32px;
  }
}

.text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}
@media (max-width: 991.98px) {
  .text {
    font-size: 18px;
  }
}
@media (max-width: 576.98px) {
  .text {
    font-size: 16px;
  }
}

.text-min {
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 991.98px) {
  .text-min {
    font-size: 14px;
  }
}

a {
  color: #06273F;
  transition: all 0.3s;
  text-decoration: none;
}

.color_white {
  color: #ffffff !important;
}

.bg_light_gray {
  background: #E6EFE5;
  overflow: hidden;
}

.w-100 {
  width: 100%;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-40 {
  margin-bottom: 40px;
}
@media (max-width: 991.98px) {
  .mb-40 {
    margin-bottom: 20px;
  }
}

.fw-500 {
  font-weight: 500;
}

/* nav */
.navbar-dop {
  padding-top: 25px;
  padding-bottom: 25px;
}
@media (max-width: 767.98px) {
  .navbar-dop {
    padding-bottom: 15px;
  }
}

.nav_block {
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .nav_block {
    display: flex;
  }
}

.logo-with-text {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-left: 12px;
}

@media (max-width: 767.98px) {
  .logo-text {
    font-size: 16px;
    margin-left: 8px;
  }
}

/* main */
.wrapper_sb_cs {
  padding-top: 55px;
  padding-bottom: 100px;
}
@media (max-width: 767.98px) {
  .wrapper_sb_cs {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* input */
.input-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .input-section {
    flex-direction: column;
  }
}

.input-field {
  height: 48px;
  width: 100%;
  background-color: #f5f5f5;
  border: 1px solid #f3f3f3;
  border-radius: 8px;
  padding: 8px 16px;
  color: #06273F;
  transition: border-color 0.3s ease;
  font-size: 20px;
}

.input-field::placeholder {
  color: #728491;
}

.input-field:focus {
  color: #06273F;
  outline: none;
  border-color: #9CADAE;
}

@media (max-width: 991.98px) {
  .input-field {
    font-size: 18px;
  }
}

/* search clear button */
.search-clear-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #728491;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.search-clear-btn:hover {
  color: #06273F;
  background-color: rgba(0, 0, 0, 0.05);
}

/* buttons */
.btn {
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  transition: all 0.4s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 64px;
  border: 2px solid transparent;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .btn {
    font-size: 18px;
  }
}

.btn_green {
  border-color: #009444;
  background-color: #009444;
}

.btn_green:hover {
  border-color: #009444;
  background: #ffffff;
  color: #009444;
}

.btn:focus {
  outline: none !important;
  box-shadow: none;
}

/* loading */
.loading {
  display: none;
  margin: 2rem 0;
}

.loading.show {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(6, 39, 63, 0.3);
  border-top: 4px solid #06273F;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* error message */
.error-message {
  display: none;
  background: #ff6b6b;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.error-message.show {
  display: block;
}

/* preview cards */
.directory-grid {
  gap: 24px 0;
}

.preview-card {
  border-radius: 16px;
  padding: 24px;
  height: auto;
  min-height: 420px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 8px;
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  font-size: 1.1rem;
}

.platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.facebook-icon {
  background: #1877f2;
}

.twitter-icon {
  background: #000000;
  font-size: 1rem;
}

.linkedin-icon {
  background: #0a66c2;
  font-size: 0.9rem;
}

.preview-content {
  flex: 1;
  min-height: 280px;
}

.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  text-align: center;
}

.url-preview {
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.url-preview-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.url-preview-content {
  padding: 1rem;
}

.url-preview-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.url-preview-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.url-preview-domain {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.facebook-card .url-preview {
  border-color: #dadde1;
}

.twitter-card .url-preview {
  border-color: #e1e8ed;
}

.linkedin-card .url-preview {
  border-color: #d6dce1;
}

/* footer */
.footer {
  padding-top: 24px;
  padding-bottom: 40px;
  background-color: #06273F;
  border-top: 1px solid #82939F;
}

.wrapper-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
}
@media (max-width: 767.98px) {
  .wrapper-copyright {
    padding-top: 20px;
  }
}

.copyright {
  font-size: 16px;
  line-height: 150%;
}

.copyright a {
  color: #ffffff;
}

.copyright a:hover {
  color: #009444;
}

/* scroll to top */
.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  right: 15px;
  bottom: 15px;
  z-index: 300;
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
}

/* mobile responsive */
@media (max-width: 767.98px) {
  .preview-card {
    padding: 16px;
    min-height: 360px;
  }
  
  .platform-icon {
    width: 28px;
    height: 28px;
  }
  
  .platform-header {
    font-size: 1rem;
  }
  
  .preview-content {
    min-height: 240px;
  }
  
  .url-preview-image {
    height: 180px;
  }
}
