/* frontend-style.css */

/* Masaüstü Butonları */
.whatsapp-iletisim-icon, .email-iletisim-icon {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 999998;
}

.whatsapp-iletisim-icon {
    right: 20px;
}

.email-iletisim-icon {
    left: 20px;
}

.whatsapp-iletisim-icon img, .email-iletisim-icon img {
    width: 40px;
    height: 40px;
}

.whatsapp-iletisim-icon:hover, .email-iletisim-icon:hover {
    transform: scale(1.1);
}

/* X Butonu Stili */
.toggle-iletisim-buttons {
    position: fixed;
    bottom: 65px; /* WhatsApp butonunun üzerinde olacak şekilde */
    right: 20px; /* Sağ alt köşede */
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999999; /* WhatsApp butonunun üzerinde olacak şekilde */
}

.hidden-iletisim {
    display: none !important;
}

/* Mobil Butonları */
#mobile-iletisim-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
    display: none; /* Varsayılan olarak gizli */
    font-size: 1rem;
    opacity: 1;
    width: 100%;
    z-index: 999998;
}

#mobile-iletisim-bar-outer {
    box-sizing: border-box;
    height: 50px;
    overflow: hidden;
    width: 100%;
}

#mobile-iletisim-bar ul {
    box-sizing: border-box;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
}

#mobile-iletisim-bar ul li {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-align: center;
    height: 100%;
    width: 33.33%; /* 3 buton eşit genişlikte */
}

#mobile-iletisim-bar ul li a {
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 999998;
}

#mobile-iletisim-bar ul li a img {
    max-height: 30px;
    width: auto;
}

/* Mobil Görünüm */
@media screen and (max-width: 768px) {
    .whatsapp-iletisim-icon, .email-iletisim-icon {
        display: none; /* Masaüstü butonları mobilde gizle */
    }

    #mobile-iletisim-bar {
        display: block; /* Mobil butonları göster */
    }

    /* Toggle butonunu ortala */
    .toggle-iletisim-buttons {
        bottom: 53px; /* Sayfanın dikey ortasına yerleştir */
        left: 50%; /* Sayfanın yatay ortasına yerleştir */
        transform: translate(-50%, 50%); /* Butonu tam ortaya hizala */
        right: auto; /* Sağ pozisyonunu sıfırla */
    }
}

/* Modern Modal Stilleri */
.modal-iletisim-yazi {
    font-weight: 400;
    letter-spacing: -0.1px;
    line-height: 1.5;
    color: #555;
    font-size: 15px;
}

.modal-iletisim-butonlari-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 999998;
}

.modal-iletisim-butonlari {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 450px;
    max-width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-iletisim-butonlari h2 {
    margin-top: 15px;
    font-size: 16px !important;
    color: #333;
    font-weight: 400;
    margin-bottom: 10px;
}

.modal-iletisim-butonlari-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-iletisim-butonlari-buttons button {
    padding: 12px 25px;
    margin: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-iletisim-yes {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
}

.btn-iletisim-yes:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(76, 175, 80, 0.3);
}

.btn-iletisim-no {
    background-color: #f44336;
    color: white;
    box-shadow: 0 4px 6px rgba(244, 67, 54, 0.2);
}

.btn-iletisim-no:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(244, 67, 54, 0.3);
}

.close-iletisim-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    background: none;
    border: none;
    color: #888;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-iletisim-btn:hover {
    color: #f44336;
    background-color: #f5f5f5;
    transform: rotate(90deg);
}

.icon-iletisim-container {
    margin-bottom: 15px;
}

.icon-iletisim-container svg {
    width: 60px;
    height: 60px;
    fill: #4CAF50;
}

/* Modal aktif olduğunda */
.modal-iletisim-butonlari-background.active {
    visibility: visible;
    opacity: 1;
}

.modal-iletisim-butonlari-background.active .modal-iletisim-butonlari {
    transform: translateY(0);
}

 /* Tasarım 2 CSS leri */
    .main-tasarim-iletisim {
      position: fixed;
      left: 20px;
      bottom: 20px;
      z-index: 999998;
    }

    .iletisim-tasarim-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 50px;
      width: 50px;
      cursor: pointer;
      background-color: #0064f3;
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
      border-radius: 50%;
    }

    .iletisim-tasarim-btn img {
      width: 24px;
      height: 24px;
    }

    .iletisim-tasarim-btn ~ a {
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: absolute;
      left: 0;
      bottom: 0;
      z-index: -1;
      height: 50px;
      width: 50px;
      opacity: 0;
      text-decoration: none;
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      transition: 0.2s all linear;
    }

    .iletisim-tasarim-btn ~ a img {
      width: 24px;
      height: 24px;
    }

    .iletisim-tasarim-btn.open ~ a {
      opacity: 1;
      transition: 0.4s all cubic-bezier(0, 0.01, 0, 1.27);
    }
	
    /* --- Masaüstü için 2 buton --- */
    #iletisim-tasarim-btn-desktop.open ~ a:nth-of-type(1) {
      bottom: 120px;
    }

    #iletisim-tasarim-btn-desktop.open ~ a:nth-of-type(2) {
      bottom: 60px;
    }

    /* --- Mobil için 3 buton --- */
    #iletisim-tasarim-btn-mobile.open ~ a:nth-of-type(1) {
      bottom: 180px;
    }

    #iletisim-tasarim-btn-mobile.open ~ a:nth-of-type(2) {
      bottom: 120px;
    }

    #iletisim-tasarim-btn-mobile.open ~ a:nth-of-type(3) {
      bottom: 60px;
    }

    .wave-iletisim-tasarim {
      animation-name: wave-iletisim-tasarim;
      animation-duration: 1s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }

    @keyframes wave-iletisim-tasarim {
      0% {
        box-shadow: 0 0 0px 0px rgba(0, 100, 243, 0.5);
      }
      100% {
        box-shadow: 0 0 0px 10px rgba(0, 100, 243, 0);
      }
    }

    /* Masaüstü varsayılan, mobil gizli */
    #iletisim-mobil {
      display: none;
    }

    @media screen and (max-width: 768px) {
      #iletisim-masaustu {
        display: none;
      }
      #iletisim-mobil {
        display: block;
      }
    }