@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&display=swap');

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.banner {
  position: relative;
  min-width: 280px;
  width: 100%;
  height: 90px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1b3d 0%, #1a2d5a 50%, #0d1530 100%);
  /* border-radius: 12px; */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.banner-link:hover {
  transform: translateY(-2px);
}

.background-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(20, 60, 120, 0.4) 0%,
    rgba(10, 30, 70, 0.6) 50%,
    rgba(5, 20, 50, 0.8) 100%);
  z-index: 1;
}

.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(64, 150, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(100, 180, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 300% 300%, 250% 250%, 50px 50px;
  background-position: 0% 0%, 100% 100%, 0 0;
  z-index: 2;
  opacity: 0.9;
  animation: patternShift 20s ease-in-out infinite;
}

@keyframes patternShift {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 0 0;
  }
  50% {
    background-position: 50% 50%, 50% 50%, 25px 25px;
  }
}

.world-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 50 Q50 30 80 50 T140 50' stroke='rgba(100,150,255,0.05)' fill='none'/%3E%3Cpath d='M40 70 Q70 60 100 70' stroke='rgba(100,150,255,0.05)' fill='none'/%3E%3C/svg%3E");
  background-size: 400px 200px;
  background-repeat: repeat;
  background-position: 0 0;
  z-index: 2;
  opacity: 0.4;
}

.light-flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 3;
  animation: flarePulse 4s ease-in-out infinite;
}

@keyframes flarePulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.left-flare {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(64, 150, 255, 0.5) 0%, transparent 70%);
  top: -30px;
  left: 10px;
}

.right-flare {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.6) 0%, transparent 70%);
  top: -40px;
  right: -40px;
  opacity: 0.8;
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 20px;
  z-index: 4;
}

.telegram-icon {
  flex-shrink: 0;
  position: relative;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    0 4px 20px rgba(0, 136, 204, 0.5),
    0 8px 40px rgba(0, 136, 204, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.icon-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.icon-circle::after {
  content: '';
  position: absolute;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border-radius: 50%;
  border: 2px solid rgba(100, 200, 255, 0.6);
  top: -5px;
  left: -5px;
  box-shadow: 
    0 0 20px rgba(100, 200, 255, 0.7),
    inset 0 0 20px rgba(100, 200, 255, 0.4);
  animation: pulseGlow 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.telegram-logo {
  width: 30px;
  height: 30px;
  color: #ffffff;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.text-main {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.text-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.cta-button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.arrow-icon {
  width: 14px;
  height: 14px;
  color: #ffffff;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.cta-button:hover .arrow-icon {
  transform: translateX(3px);
}

@media (max-width: 1279px) {
  .content {
    gap: 18px;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
  }

  .telegram-logo {
    width: 26px;
    height: 26px;
  }

  .text-main {
    font-size: 19px;
  }

  .text-subtitle {
    font-size: 12px;
  }

  .cta-button {
    padding: 8px 16px;
    gap: 6px;
  }

  .cta-text {
    font-size: 13px;
  }

  .arrow-icon {
    width: 12px;
    height: 12px;
  }

  .left-flare {
    width: 120px;
    height: 120px;
  }

  .right-flare {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 767px) {
  .banner {
    border-radius: 10px;
  }

  .content {
    gap: 12px;
  }

  .icon-circle {
    width: 42px;
    height: 42px;
  }

  .telegram-logo {
    width: 22px;
    height: 22px;
  }

  .text-main {
    font-size: 16px;
    letter-spacing: -0.3px;
  }

  .text-subtitle {
    font-size: 11px;
  }

  .cta-button {
    padding: 7px 14px;
    gap: 5px;
    border-radius: 20px;
  }

  .cta-text {
    font-size: 11px;
  }

  .arrow-icon {
    width: 10px;
    height: 10px;
  }

  .left-flare {
    width: 100px;
    height: 100px;
    top: -20px;
    left: 5px;
  }

  .right-flare {
    width: 120px;
    height: 120px;
    top: -30px;
    right: -30px;
  }
}

@media (max-width: 467px) {
  .banner {
    border-radius: 8px;
  }

  .content {
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
  }

  .icon-circle {
    width: 36px;
    height: 36px;
  }

  .icon-circle::after {
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    top: -4px;
    left: -4px;
  }

  .telegram-logo {
    width: 18px;
    height: 18px;
  }

  .text-content {
    flex: 1;
    min-width: 0;
  }

  .text-main {
    font-size: 14px;
    letter-spacing: -0.2px;
  }

  .text-subtitle {
    font-size: 10px;
  }

  .cta-button {
    padding: 6px 12px;
    gap: 4px;
    border-radius: 18px;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
  }

  .cta-text {
    font-size: 10px;
  }

  .arrow-icon {
    width: 9px;
    height: 9px;
  }

  .background-pattern {
    background-size: 200% 200%, 180% 180%, 40px 40px;
  }

  .left-flare {
    width: 80px;
    height: 80px;
  }

  .right-flare {
    width: 100px;
    height: 100px;
  }
}

.banner-link:hover .icon-circle {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 
    0 6px 25px rgba(0, 136, 204, 0.6),
    0 10px 50px rgba(0, 136, 204, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.banner-link:hover .text-main {
  color: #f0f8ff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.banner-link:hover .text-subtitle {
  color: rgba(255, 255, 255, 0.95);
}
