/**
 * İLETİŞİM BUTONLARI & KUPON BUTONU
 * Mobil: Sol alt köşede butonlar (açılır menü)
 * Desktop: Sol alt köşede butonlar
 */

/* Container */
.contact-buttons {
    position: fixed;
    z-index: 9999;
}

/* ========== KUPON BUTONU (Tüm Cihazlar) ========== */
.coupon-main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 15px;
}

.coupon-main-button i {
    font-size: 26px;
    animation: giftShake 4s ease-in-out infinite;
}

@keyframes giftShake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-5deg); }
    20% { transform: rotate(5deg); }
    30% { transform: rotate(-3deg); }
    40% { transform: rotate(3deg); }
    50%, 90% { transform: rotate(0deg); }
}

.coupon-main-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 152, 0, 0.8);
}

.coupon-main-button:active {
    transform: scale(0.95);
}

.coupon-main-button .desktop-text {
    display: none;
}

/* İletişim Butonları Badge'leri */
.contact-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.6);
    animation: badgePulse 2s infinite;
    z-index: 10;
    line-height: 1;
    letter-spacing: 0.5px;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ========== KURUMSAL KUPON POPUP ========== */
.coupon-popup {
    position: absolute;
    bottom: 85px;
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9;
    overflow: hidden;
    border: none;
}

.coupon-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Popup ok işareti */
.coupon-popup::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* ========== HEADER - Kurumsal ========== */
.coupon-header {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    padding: 24px 20px;
    text-align: center;
    position: relative;
}

/* Hediye İkonu */
.gift-icon-wrapper {
    display: inline-block;
    margin-bottom: 12px;
}

.gift-icon-wrapper i {
    font-size: 36px;
    color: white;
    animation: giftShake 4s ease-in-out infinite;
}

.coupon-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ========== BODY - Kurumsal ========== */
.coupon-body {
    padding: 20px;
    background: #fafafa;
}

/* Geçerlilik Bilgisi */
.validity-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: none;
}

.validity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.validity-item i {
    font-size: 22px;
    color: #4CAF50;
}

.validity-item span {
    font-size: 11px;
    font-weight: 700;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.validity-divider {
    width: 2px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, rgba(76, 175, 80, 0.3), transparent);
}

/* Kupon Kodu Bölümü */
.coupon-code-section {
    margin-bottom: 16px;
}

.coupon-code-display {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.coupon-code-display input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    color: #FF9800;
    background: white;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.copy-button {
    padding: 14px 20px;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    white-space: nowrap;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button i {
    font-size: 14px;
}

/* Hemen Kullan Butonu - Kurumsal */
.use-now-button {
    width: 85%;
    padding: 10px;
    background: linear-gradient(
267deg, #f98600, #ff500d);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0px 4px #020202;
    text-decoration: none;
}

.use-now-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
}

.use-now-button:active {
    transform: translateY(-1px);
}

.use-now-button i {
    font-size: 16px;
}

/* Kapat Butonu - Kurumsal */
.coupon-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.coupon-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.coupon-close i {
    font-size: 16px;
}

/* ========== DESKTOP GÖRÜNÜM ========== */
@media (min-width: 769px) {
    .contact-buttons {
        bottom: 180px;
        left: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Desktop'ta kupon butonu yazı gösterir */
    .coupon-main-button {
        width: auto;
        padding: 8px 18px;
        border-radius: 50px;
        height: auto;
    }
    
    .coupon-main-button .desktop-text {
        display: inline;
        margin-left: 8px;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }
    
    .coupon-main-button i {
        font-size: 16px;
    }
    
    /* Ana buton ve seçenekler menüsü desktop'ta gizli */
    .contact-main-button,
    .contact-options {
        display: none !important;
    }
    
    /* Desktop butonları görünür */
    .desktop-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    /* WhatsApp Butonu */
    .whatsapp-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: white;
        padding: 8px 16px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 700;
        font-size: 11px;
        position: relative;
        overflow: visible;
        min-width: 130px;
    }
    
    .whatsapp-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .whatsapp-button:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .whatsapp-button:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    }
    
    .whatsapp-button i {
        font-size: 16px;
        margin-right: 6px;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
    
    .whatsapp-button span {
        position: relative;
        z-index: 1;
    }
    
    /* Telefon Butonu */
    .phone-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #009595, #00b8b8);
        color: white;
        padding: 8px 16px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(0, 149, 149, 0.4);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 700;
        font-size: 11px;
        position: relative;
        overflow: visible;
        min-width: 130px;
    }
    
    .phone-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .phone-button:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .phone-button:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 30px rgba(0, 149, 149, 0.6);
    }
    
    .phone-button i {
        font-size: 16px;
        margin-right: 6px;
        animation: ring 3s infinite;
    }
    
    @keyframes ring {
        0%, 100% {
            transform: rotate(0deg);
        }
        10%, 30% {
            transform: rotate(-15deg);
        }
        20%, 40% {
            transform: rotate(15deg);
        }
        50% {
            transform: rotate(0deg);
        }
    }
    
    .phone-button span {
        position: relative;
        z-index: 1;
    }
}

/* ========== MOBİL GÖRÜNÜM ========== */
@media (max-width: 768px) {
    .contact-buttons {
        bottom: 120px;
        left: 5px;
    }
    
    /* Mobilde kupon popup daha küçük */
    .coupon-popup {
        min-width: 280px;
        max-width: 300px;
    }
    
    .coupon-code-display {
        flex-direction: column;
    }
    
    .coupon-code-display input {
        width: 80%;
    }
    
    .copy-button {
        width: 95%;
        justify-content: center;
    }
    
    /* Desktop butonları gizli */
    .desktop-buttons {
        display: none !important;
    }
    
    /* Ana İletişim Butonu */
    .contact-main-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #009595, #00b8b8);
        color: white;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 149, 149, 0.6);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 10;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .contact-main-button i {
        font-size: 26px;
        transition: transform 0.3s ease;
    }
    
    .contact-main-button .desktop-text {
        display: none;
    }
    
    .contact-main-button:active {
        transform: scale(0.95);
    }
    
    .contact-main-button.active {
        background: linear-gradient(135deg, #00b8b8, #009595);
    }
    
    .contact-main-button.active i {
        transform: rotate(90deg);
    }
    
    /* İletişim Seçenekleri Menüsü */
    .contact-options {
        position: absolute;
        bottom: 65px;
        left: 0;
        background: white;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
        padding: 12px;
        min-width: 260px;
        max-width: 280px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.9);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .contact-options.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    /* Menü ok işareti */
    .contact-options::before {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 20px;
        width: 16px;
        height: 16px;
        background: white;
        transform: rotate(45deg);
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Seçenek Butonları */
    .contact-option {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        border-radius: 12px;
        text-decoration: none;
        color: #333;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: 10px;
        position: relative;
        overflow: hidden;
    }
    
    .contact-option:last-child {
        margin-bottom: 0;
    }
    
    .contact-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .contact-option i {
        font-size: 26px;
        margin-right: 14px;
        min-width: 32px;
        text-align: center;
        position: relative;
        z-index: 1;
    }
    
    .contact-option span {
        font-size: 14px;
        font-weight: 600;
        flex: 1;
        position: relative;
        z-index: 1;
        line-height: 1.4;
    }
    
    /* WhatsApp Seçeneği */
    .whatsapp-option {
        background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(18, 140, 126, 0.12));
    }
    
    .whatsapp-option::before {
        background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), rgba(18, 140, 126, 0.25));
    }
    
    .whatsapp-option i {
        color: #25D366;
    }
    
    .whatsapp-option:active {
        transform: scale(0.97);
    }
    
    .whatsapp-option:active::before {
        opacity: 1;
    }
    
    /* Telefon Seçeneği */
    .phone-option {
        background: linear-gradient(135deg, rgba(0, 149, 149, 0.12), rgba(0, 184, 184, 0.12));
    }
    
    .phone-option::before {
        background: linear-gradient(135deg, rgba(0, 149, 149, 0.25), rgba(0, 184, 184, 0.25));
    }
    
    .phone-option i {
        color: #009595;
    }
    
    .phone-option:active {
        transform: scale(0.97);
    }
    
    .phone-option:active::before {
        opacity: 1;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-buttons {
        bottom: 25px;
        left: 25px;
    }
    
    .whatsapp-button,
    .phone-button {
        padding: 7px 13px;
        font-size: 11px;
    }
}