﻿/* ===== Appointment Float Button (Randevu Al FAB) ===== */
/* Bu dosya sadece yorumlar.html sayfasında kullanılmak üzere oluşturulmuştur */

.appointment-float {
    position: fixed;
    bottom: 36px;
    left: 36px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d0b15d 0%, #b89a4a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white, #ffffff);
    font-size: 2rem;
    box-shadow: 0 12px 32px rgba(208, 177, 93, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(208, 177, 93, 0.5);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    cursor: pointer;
    animation: appointmentPulse 2.5s ease-in-out infinite, appointmentFloatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    overflow: visible;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.appointment-float::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208, 177, 93, 0.4) 0%, rgba(208, 177, 93, 0.2) 50%, transparent 70%);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(1);
    z-index: -1;
    animation: appointmentGlow 2.5s ease-in-out infinite;
}

.appointment-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.appointment-float:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.appointment-float:hover::after {
    opacity: 1;
}

.appointment-float:hover,
.appointment-float:focus-visible {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 50px rgba(208, 177, 93, 0.6), 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(208, 177, 93, 0.2);
    background: linear-gradient(135deg, #d4c17a 0%, #d0b15d 100%);
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    animation: none;
}

.appointment-float:active {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 32px rgba(208, 177, 93, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.appointment-float i {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    animation: appointmentIconBounce 2s ease-in-out infinite;
}

.appointment-float:hover i {
    transform: scale(1.15) rotate(-5deg);
    animation: none;
}

.appointment-float-tooltip {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    color: var(--white, #ffffff);
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.appointment-float-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(15, 23, 42, 0.98);
    filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.2));
}

.appointment-float:hover .appointment-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes appointmentPulse {
    0% {
        box-shadow: 0 12px 32px rgba(208, 177, 93, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(208, 177, 93, 0.5);
    }
    50% {
        box-shadow: 0 12px 32px rgba(208, 177, 93, 0.7), 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(208, 177, 93, 0.15);
    }
    100% {
        box-shadow: 0 12px 32px rgba(208, 177, 93, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(208, 177, 93, 0);
    }
}

@keyframes appointmentGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes appointmentFloatIn {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.3);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-15px) scale(1.1);
    }
    70% {
        transform: translateY(5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes appointmentIconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ===== Appointment Modal ===== */
.appointment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 20px;
}

.appointment-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    animation: appointmentOverlayFadeIn 0.4s ease;
}

.appointment-modal {
    background: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px) rotateX(10deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    position: relative;
    opacity: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.appointment-modal-overlay.active .appointment-modal {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
    animation: appointmentModalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.appointment-modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.appointment-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-family: 'Playfair Display', serif;
    animation: appointmentTitleFadeIn 0.6s ease 0.2s both;
}

.appointment-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #6b7280;
    font-size: 1.25rem;
    animation: appointmentCloseFadeIn 0.5s ease 0.3s both;
}

.appointment-modal-close:hover {
    background: #e5e7eb;
    color: #0f172a;
    transform: rotate(90deg) scale(1.1);
}

.appointment-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.appointment-modal-body {
    padding: 32px;
}

.appointment-modal-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.appointment-modal-description a {
    color: #d0b15d;
    text-decoration: underline;
}

.appointment-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.appointment-modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: appointmentFormGroupFadeIn 0.5s ease both;
}

.appointment-modal-form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.appointment-modal-form-group:nth-child(2) {
    animation-delay: 0.15s;
}

.appointment-modal-form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.appointment-modal-form-group:nth-child(4) {
    animation-delay: 0.25s;
}

.appointment-modal-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
}

.appointment-modal-form-input,
.appointment-modal-form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.3s ease;
    font-family: inherit;
}

.appointment-modal-form-input:focus,
.appointment-modal-form-select:focus {
    outline: none;
    border-color: #d0b15d;
    box-shadow: 0 0 0 4px rgba(208, 177, 93, 0.1);
    transform: translateY(-2px);
    animation: appointmentInputFocus 0.3s ease;
}

.appointment-modal-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d0b15d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.appointment-modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.appointment-modal-submit {
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, #d0b15d 0%, #b89a4a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    animation: appointmentSubmitFadeIn 0.6s ease 0.3s both;
}

.appointment-modal-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.appointment-modal-submit:hover::before {
    width: 300px;
    height: 300px;
}

.appointment-modal-submit:hover {
    background: linear-gradient(135deg, #d4c17a 0%, #d0b15d 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(208, 177, 93, 0.4);
}

.appointment-modal-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.appointment-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.appointment-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(208, 177, 93, 0.06);
    border-radius: 12px;
    margin-top: 20px;
}

.appointment-modal-note i {
    color: #d0b15d;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.appointment-modal-note p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.appointment-modal-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
    animation: appointmentFeedbackSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.appointment-modal-feedback.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
    animation: appointmentFeedbackSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.appointment-modal-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
    animation: appointmentFeedbackShake 0.5s ease;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .appointment-float {
        width: 72px;
        height: 72px;
        bottom: 30px;
        left: 30px;
        font-size: 1.85rem;
        border-width: 3.5px;
    }
    
    .appointment-float-tooltip {
        left: 90px;
        font-size: 0.95rem;
        padding: 12px 18px;
    }
    
    /* WhatsApp butonu ile çakışmayı önle */
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .appointment-float {
        width: 62px;
        height: 62px;
        bottom: 32px;
        left: 24px;
        font-size: 1.65rem;
        box-shadow: 0 10px 28px rgba(208, 177, 93, 0.5), 0 5px 14px rgba(0, 0, 0, 0.2);
        border-width: 3px;
    }
    
    .appointment-float-tooltip {
        left: 80px;
        font-size: 0.9rem;
        padding: 11px 16px;
        border-radius: 14px;
    }
    
    .appointment-float-tooltip::before {
        border-top-width: 7px;
        border-bottom-width: 7px;
        border-right-width: 7px;
        left: -7px;
    }
    
    .appointment-float:hover {
        transform: translateY(-8px) scale(1.08);
    }
}

@media (max-width: 480px) {
    .appointment-float {
        width: 58px;
        height: 58px;
        bottom: 28px;
        left: 20px;
        font-size: 1.5rem;
        border-width: 2.5px;
    }
    
    .appointment-float-tooltip {
        left: 75px;
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    /* Küçük ekranlarda butonlar arası mesafe */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}
    
    .appointment-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
    
    .appointment-modal-header {
        padding: 24px 24px 20px;
    }
    
    .appointment-modal-title {
        font-size: 1.5rem;
    }
    
    .appointment-modal-body {
        padding: 24px;
    }
    
    .appointment-modal-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ===== Animasyon Keyframes ===== */
@keyframes appointmentOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes appointmentModalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px) rotateX(10deg);
    }
    50% {
        transform: scale(1.05) translateY(-10px) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

@keyframes appointmentTitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes appointmentCloseFadeIn {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes appointmentFormGroupFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes appointmentInputFocus {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.01);
    }
    100% {
        transform: translateY(-2px) scale(1);
    }
}

@keyframes appointmentSubmitFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes appointmentFeedbackSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes appointmentFeedbackShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

