/* ===== FOOTER GENERAL ===== */
.footer {
  color: #ccc;
  padding: 1.5rem 1rem;
  /* font-family: sans-serif; */
}

/* === SEPARAT: Contact + Hartă (NU este în footer) === */
.footer-contact-wrapper {
  padding: 3rem 1rem 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
  .footer-content {
    flex-wrap: nowrap;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .footer-contact {
    padding: 1.25rem 0.75rem;
  }
  
  .footer-contact h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .email-block {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .email-group {
    flex: 1 1 100%;
    width: 100%;
  }
  
  .email-title {
    font-size: 0.7rem;
  }
  
  .email-item {
    padding: 0.55rem 0.65rem;
  }
  
  .email-text {
    font-size: 0.7rem;
  }
  
  .email-icon {
    font-size: 0.9rem;
  }
  
  .email-copy-btn {
    padding: 0.55rem;
    min-width: 32px;
    min-height: 32px;
  }
  
  .copy-icon {
    font-size: 0.85rem;
  }
  
  .contact-block {
    gap: 0.5rem;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    display: flex !important;
  }
  
  .contact-item {
    padding: 0.65rem;
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    width: auto;
  }
  
  .contact-icon {
    font-size: 1rem;
  }
}

.footer-contact,
.footer-map {
  flex: 1 1 300px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.footer-contact {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(13, 13, 13, 0.95) 100%);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(29, 185, 84, 0.1);
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.footer-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1db954, transparent);
  opacity: 0.6;
}

.footer-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-contact h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #1db954;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-contact h2:hover {
  color: #1db954;
  text-shadow: 0 0 8px rgba(29, 185, 84, 0.7);
}

.footer-contact h2:hover::after {
  width: 60px;
}

.contact-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}

.email-block {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.email-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 0 1 auto;
  min-width: 320px;
  max-width: 480px;
}

.email-title {
  font-size: 1rem;
  color: #1db954;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.email-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.email-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: rgba(20, 20, 20, 0.7);
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(29, 185, 84, 0.15);
  border-right: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.email-link {
  text-decoration: none;
  color: #d0d0d0;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #fff;
}

.email-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #1db954;
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px 0 0 12px;
}

.email-wrapper {
  position: relative;
}

.email-wrapper:hover .email-item {
  background: rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.4);
  border-right: 1px solid rgba(29, 185, 84, 0.4);
  transform: translateX(4px);
}

.email-wrapper:hover .email-copy-btn {
  background: rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.4);
  border-left: 1px solid rgba(29, 185, 84, 0.4);
}

.email-wrapper:hover::before {
  transform: scaleY(1);
}

.email-icon {
  color: #1db954;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-item:hover .email-icon {
  color: #1db954;
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.5));
}

.email-text {
  font-size: 1.05rem;
  color: inherit;
  transition: color 0.3s ease;
}

.email-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(29, 185, 84, 0.15);
  border-left: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #d0d0d0;
  min-width: 56px;
  min-height: 56px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.email-copy-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  z-index: 10000;
  border: 1px solid rgba(29, 185, 84, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.email-copy-btn::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  z-index: 10001;
}

.email-copy-btn:hover::after,
.email-copy-btn:hover::before {
  opacity: 1;
}

.email-copy-btn:hover {
  background: rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.4);
  color: #1db954;
  transform: scale(1.05);
}

.email-copy-btn:active {
  transform: scale(0.95);
}

.copy-icon {
  font-size: 1.25rem;
  color: inherit;
  transition: all 0.3s ease;
}

.email-copy-btn:hover .copy-icon {
  color: #1db954;
  filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.5));
}

.email-copy-btn.copied {
  background: rgba(29, 185, 84, 0.2);
  border-color: rgba(29, 185, 84, 0.5);
  color: #1db954;
}

.email-copy-btn.copied .copy-icon {
  color: #1db954;
}

.copied-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  color: #1db954;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: fadeInOut 0.3s ease;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.email-copy-btn.copied .copy-icon {
  opacity: 0;
}

.contact-block {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(29, 185, 84, 0.15);
}

@media (max-width: 768px) {
  .footer-contact-wrapper {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-contact {
    padding: 1.5rem 1rem;
    overflow: visible;
  }
  
  .footer-contact h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: block;
    visibility: visible;
    opacity: 1;
  }
  
  .contact-content-wrapper {
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .email-block {
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .email-group {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
  }
  
  .email-title {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  .email-wrapper {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
  
  .email-item {
    padding: 0.6rem 0.75rem;
    min-width: 0;
    flex: 1;
  }
  
  .email-text {
    font-size: 0.75rem;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .email-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  .email-copy-btn {
    padding: 0.6rem;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
  }
  
  .copy-icon {
    font-size: 0.9rem;
  }
  
  .contact-block {
    padding-top: 0.75rem;
    gap: 0.75rem;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(29, 185, 84, 0.15);
    margin-top: 0.5rem;
    display: flex !important;
  }
  
  .contact-item {
    padding: 0.75rem;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  
  .contact-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .footer-contact {
    padding: 1.25rem 1rem;
  }
  
  .email-title {
    font-size: 0.8rem;
  }
  
  .email-item {
    padding: 0.65rem 0.85rem;
  }
  
  .email-text {
    font-size: 0.8rem;
  }
  
  .email-icon {
    font-size: 1rem;
  }
  
  .email-copy-btn {
    padding: 0.65rem;
    min-width: 40px;
    min-height: 40px;
  }
  
  .copy-icon {
    font-size: 1rem;
  }
  
  .contact-item {
    padding: 0.85rem;
    min-width: 40px;
    min-height: 40px;
  }
  
  .contact-icon {
    font-size: 1.2rem;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #d0d0d0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
  padding: 1.2rem;
  background: rgba(20, 20, 20, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(29, 185, 84, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  text-decoration: none;
  min-width: 48px;
  min-height: 48px;
}

.contact-item .contact-icon {
  position: relative;
  z-index: 1;
}

.contact-item:hover {
  color: #fff;
  background: rgba(29, 185, 84, 0.08);
  border-color: rgba(29, 185, 84, 0.3);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.15);
}

.contact-item p {
  margin: 0;
  padding: 0;
  line-height: inherit;
  flex: 1;
}

.contact-icon {
  color: #1db954;
  font-size: 1.6rem;
  flex-shrink: 0;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 4px rgba(29, 185, 84, 0.3));
}

.contact-item:hover .contact-icon {
  color: #1db954;
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.6));
}

.contact-item::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  z-index: 1000;
  border: 1px solid rgba(29, 185, 84, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.contact-item::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  z-index: 1001;
}

.contact-item:hover::after,
.contact-item:hover::before {
  opacity: 1;
}

.location-label {
  color: #1db954;
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.social-items {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(29, 185, 84, 0.15);
}

.social-icon {
  font-size: 1.6rem;
  color: #d0d0d0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  color: #1db954;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.footer-map {
  justify-content: center;
}

.footer-map iframe {
  flex: 1;
  min-height: 300px;
  border: 0;
}

/* === FOOTER FINAL INFO === */
.footer-info {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.8rem;
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}

/* Link default în footer */
.footer-info a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  line-height: inherit;
}

/* Link special Horia Stan */
.footer-info a.designer-link {
  color: #1db954 !important;
  font-weight: 600;
  margin-left: 0.3rem !important; /* spațiu între "by" și nume */
  transition: color 0.3s ease;
}

.footer-info a.designer-link:hover {
  color: #1db954;
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 1rem;
  }

  .footer-contact-wrapper {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-map {
    width: 100%;
    margin-top: 1rem;
  }

  .contact-block {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Actualizare pentru social-items pentru a avea icon-urile unul lângă altul */
  .social-items {
    flex-direction: row;
    gap: 1.2rem;
    justify-content: center;
  }

  .footer-info {
    flex-direction: column;
    line-height: 1.6rem;
    padding-top: 1.2rem;
  }
}
