/*
design by :nexin;
website: https://nexin.ir
*/

@font-face {
  font-family: 'Doran';
  src: url('../_font/DORANFANUM-REGULAR.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a1f44;
  color: #fff;
  font-family: 'Doran', 'Tahoma', sans-serif;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  direction: rtl;
  line-height: 1.6;
}

.center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  min-height: 90vh;
}

.logo {
  width: 180px;
  height: auto;
  margin: 8rem 0 4rem;
}

.site-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.social-links {
  margin-top: 4rem;
  padding-top: 2rem;
  width: 100%;
  max-width: 700px;
}

.socials {
  display: flex;
  flex-direction: row;
  gap: 2rem 0;
  padding: 0 1rem;
}

.socials a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.socials svg {
  width: 28px;
  height: 28px;
  fill:#eea337;
}

.socials span {
  font-size: 1.1rem;
  font-family: 'Doran', 'Tahoma', sans-serif;
}

@media (max-width: 768px) {
  .center-box {
    padding: 1.5rem;
    min-height: 85vh;
    justify-content: flex-start;
  }

  .logo {
    width: 150px;
    margin: 4rem 0;
  }

  .site-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .social-links {
    margin-top: 2rem;
  }

  .socials {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .socials a {
    color: #fff;
    background-color: #ffffff3b;
    border-radius: 12px;
    justify-content: center;
    font-size: 1.1rem;
  }

  .socials a:first-child {
    flex-direction: row-reverse;
  }

  .socials svg {
    width: 24px;
    height: 24px;
  }

  .socials span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .center-box {
    padding: 1rem;
  }

  .logo {
    width: 150px;
    margin: 4rem 0;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.9rem;
    max-width: 95%;
  }

  .socials a {
    color: #fff;
    background-color: #ffffff3b;
    border-radius: 12px;
    justify-content: center;
    font-size: 1.1rem;
  }

  .socials a:first-child {
    flex-direction: row-reverse;
  }
}

.socials svg {
  width: 32px;
  height: 32px;
  fill: #eea337;
  transition: fill 0.2s;
}

.socials a:hover svg {
  fill: #25d366;
}

.socials a:last-child:hover svg {
  fill: #bf2aec;
}

.copy-right {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 360px;
  width: calc(100% - 40px);
  padding: 8px 16px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #eea337;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 10px 10px 0 0;
  z-index: 9999;
  letter-spacing: 0.3px;
  transition: background 0.22s ease, transform 0.22s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.copy-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.copy-right:hover,
.copy-right:focus-within {
  background: rgba(0, 0, 0, 0.68);
}

.copy-right:hover .copy-link,
.copy-right:focus-within .copy-link {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

.copy-link:focus {
  outline: 2px solid rgba(238, 163, 55, 0.25);
  outline-offset: 3px;
  border-radius: 6px;
}

@keyframes cr-glow {
  0% {
    text-shadow: 0 0 2px rgba(238, 163, 55, 0.35);
    color: #eea337;
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 2px rgba(238, 163, 55, 0.35);
    color: #eea337;
  }
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .copy-right .copy-link {
    animation: cr-glow 2.6s ease-in-out infinite;
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy-right .copy-link {
    animation: none !important;
    transition: none !important;
  }
}
