/* ============================================
   Tasarla Floating Button & Popup Styles
   Premium Design - Raifoğulları Tekstil
   ============================================ */

/* ---- Floating Button ---- */
.tasarla-floating-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(15, 52, 96, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
    user-select: none;
    overflow: hidden;
}

.tasarla-floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.tasarla-floating-btn:hover::before {
    left: 100%;
}

.tasarla-floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(15, 52, 96, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.tasarla-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tasarlaIconBounce 2s ease-in-out infinite;
}

.tasarla-btn-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Pulse Animation */
.tasarla-btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 60px;
    border: 2px solid rgba(15, 52, 96, 0.5);
    animation: tasarlaPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes tasarlaPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

@keyframes tasarlaIconBounce {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* Floating entrance animation */
@keyframes tasarlaSlideIn {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.5);
    }

    60% {
        transform: translateY(-10px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tasarla-floating-btn {
    animation: tasarlaSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ---- Overlay ---- */
.tasarla-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.tasarla-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Popup ---- */
.tasarla-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 100001;
    width: 90%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tasarla-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.tasarla-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.tasarla-popup-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* Popup Header */
.tasarla-popup-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 40px 30px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tasarla-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: tasarlaHeaderShimmer 8s ease-in-out infinite alternate;
}

@keyframes tasarlaHeaderShimmer {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

.tasarla-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    margin-bottom: 16px;
    color: #e0c9a6;
    position: relative;
    z-index: 1;
}

.tasarla-popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 1;
}

.tasarla-popup-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #e0c9a6;
    margin: 0;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* Popup Body */
.tasarla-popup-body {
    padding: 24px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Contact Items */
.tasarla-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f8f9fa;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tasarla-contact-item:hover {
    background: #fff;
    border-color: #e0e0e0;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tasarla-contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.tasarla-icon-email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.tasarla-icon-phone {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #fff;
}

.tasarla-icon-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
}

.tasarla-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tasarla-contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
}

.tasarla-contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tasarla-contact-arrow {
    font-size: 18px;
    color: #ccc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tasarla-contact-item:hover .tasarla-contact-arrow {
    color: #0f3460;
    transform: translateX(4px);
}

/* WhatsApp item special */
.tasarla-whatsapp-item:hover {
    border-color: #25d366;
}

.tasarla-whatsapp-item:hover .tasarla-contact-arrow {
    color: #25d366;
}

/* Popup Footer */
.tasarla-popup-footer {
    padding: 16px 24px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.tasarla-popup-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .tasarla-floating-btn {
        bottom: 80px;
        right: 20px;
        padding: 12px 20px;
    }

    .tasarla-btn-text {
        font-size: 14px;
    }

    .tasarla-popup {
        width: 94%;
        max-width: 380px;
        border-radius: 20px;
    }

    .tasarla-popup-header {
        padding: 30px 24px 28px;
    }

    .tasarla-popup-title {
        font-size: 22px;
    }

    .tasarla-popup-body {
        padding: 20px 18px 12px;
    }

    .tasarla-contact-item {
        padding: 14px 14px;
    }

    .tasarla-contact-value {
        font-size: 13px;
    }
}

/* ---- Hide button when popup is open ---- */
.tasarla-floating-btn.hidden {
    opacity: 0;
    transform: translateY(80px) scale(0.5);
    pointer-events: none;
}

/* ---- Popup item entrance animations ---- */
.tasarla-popup.active .tasarla-contact-item:nth-child(1) {
    animation: tasarlaItemSlide 0.4s ease forwards 0.15s;
    opacity: 0;
    transform: translateY(10px);
}

.tasarla-popup.active .tasarla-contact-item:nth-child(2) {
    animation: tasarlaItemSlide 0.4s ease forwards 0.25s;
    opacity: 0;
    transform: translateY(10px);
}

.tasarla-popup.active .tasarla-contact-item:nth-child(3) {
    animation: tasarlaItemSlide 0.4s ease forwards 0.35s;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes tasarlaItemSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}