/* survey-card.css */
.survey-card-wrapper {
    position: fixed;
    bottom: 30px;
    left: -400px;
    z-index: 10000;
    width: 320px;
    max-width: calc(100vw - 60px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: auto;
}

.survey-card-wrapper.active {
    left: 65px; /* Back-to-top butonunun (15px + 46px) sağında */
}

.survey-card-content {
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.survey-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    line-height: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.survey-close-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.survey-icon-mini {
    background: linear-gradient(135deg, #0d5aa5 0%, #083d71 100%);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(13, 90, 165, 0.3);
}

.survey-icon-mini i {
    color: #fff !important;
    font-size: 28px !important;
}

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

.survey-text h4 {
    font-size: 15px;
    margin: 0;
    color: #333;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.survey-text p {
    font-size: 13px;
    margin: 0;
    color: #666;
    font-weight: 500;
}

.survey-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.survey-go-btn {
    display: inline-block;
    background: #ff9b21;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.survey-go-btn:hover {
    background: #e58a1d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 155, 33, 0.4);
}

.survey-go-btn-gallery {
    background: #45aa7d;
}

.survey-go-btn-gallery:hover {
    background: #45805d;
    box-shadow: 0 5px 15px rgba(13, 95, 45, 0.4);
}

/* Tablet ve orta ekranlar */
@media (max-width: 992px) {
    .survey-card-wrapper {
        width: 300px;
        bottom: 25px;
    }

    .survey-card-wrapper.active {
        left: 65px;
    }

    .survey-card-content {
        padding: 18px;
        gap: 12px;
    }

    .survey-text h4 {
        font-size: 14px;
    }

    .survey-buttons {
        gap: 6px;
        margin-top: 8px;
    }

    .survey-go-btn {
        padding: 7px 16px;
        font-size: 11px;
    }
}

/* Küçük tablet ve büyük telefonlar */
@media (max-width: 768px) {
    .survey-card-wrapper {
        width: min(320px, calc(100vw - 120px));
        bottom: 20px;
    }

    .survey-card-wrapper.active {
        left: 65px; /* to-top 767px altında gizlenene kadar */
    }
}

/* to-top 767px altında gizli - survey kartı sola kayar */
@media (max-width: 767px) {
    .survey-card-wrapper.active {
        left: 15px;
    }

    .survey-card-content {
        padding: 16px;
        gap: 12px;
    }

    .survey-icon-mini {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .survey-icon-mini i {
        font-size: 24px !important;
    }

    .survey-text h4 {
        font-size: 13px;
    }

    .survey-buttons {
        gap: 6px;
        margin-top: 8px;
    }

    .survey-go-btn {
        padding: 6px 14px;
        font-size: 11px;
    }

    .survey-close-btn {
        top: 8px;
        right: 8px;
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
}

/* Küçük telefonlar (iPhone SE vb.) - chatbot ile çakışmayı önle, to-top mobilde gizli */
@media (max-width: 576px) {
    .survey-card-wrapper {
        width: min(240px, calc(100vw - 120px));
        max-width: calc(100vw - 120px);
        bottom: 15px;
    }

    .survey-card-wrapper.active {
        left: 15px;
    }

    .survey-card-content {
        padding: 14px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .survey-icon-mini {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .survey-icon-mini i {
        font-size: 22px !important;
    }

    .survey-text h4 {
        font-size: 12px;
        line-height: 1.3;
    }

    .survey-text p {
        font-size: 11px;
    }

    .survey-buttons {
        gap: 5px;
        margin-top: 6px;
    }

    .survey-go-btn {
        padding: 6px 12px;
        font-size: 10px;
    }

    .survey-close-btn {
        top: 6px;
        right: 6px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
}

/* Çok küçük ekranlar (örn. 360px altı) */
@media (max-width: 360px) {
    .survey-card-wrapper {
        width: calc(100vw - 120px);
        max-width: calc(100vw - 120px);
        bottom: 12px;
    }

    .survey-card-wrapper.active {
        left: 12px;
    }

    .survey-card-content {
        padding: 12px;
        gap: 8px;
    }

    .survey-icon-mini {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .survey-icon-mini i {
        font-size: 18px !important;
    }

    .survey-text h4 {
        font-size: 11px;
    }

    .survey-buttons {
        gap: 4px;
        margin-top: 5px;
    }

    .survey-go-btn {
        padding: 5px 10px;
        font-size: 9px;
    }
}

/* Yatay mod / landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .survey-card-wrapper {
        bottom: 10px;
    }

    .survey-card-wrapper.active {
        left: 15px;
    }

    .survey-card-content {
        padding: 10px 14px;
    }

    .survey-icon-mini {
        width: 40px;
        height: 40px;
    }

    .survey-icon-mini i {
        font-size: 20px !important;
    }

    .survey-text h4 {
        font-size: 11px;
    }

    .survey-buttons {
        gap: 4px;
        margin-top: 4px;
    }

    .survey-go-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}