/* Efyuar Popup CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Floating Button Styles */
.efyuar-popup-btn {
    position: fixed;
    z-index: 999999;
    background: #2d3748;
    border-radius: 15px 0 0 15px;
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 60px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    user-select: none;
    animation: slideIn 0.8s ease-out;
    font-family: 'Poppins', sans-serif;
}

/* Position Variants */
.efyuar-popup-btn.right-center {
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
}

.efyuar-popup-btn.right-top {
    right: 20px;
    top: 100px;
}

.efyuar-popup-btn.right-bottom {
    right: 20px;
    bottom: 20px;
}

.efyuar-popup-btn.left-center {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.efyuar-popup-btn.left-top {
    left: 20px;
    top: 100px;
}

.efyuar-popup-btn.left-bottom {
    left: 20px;
    bottom: 20px;
}

/* Button Content */
.efyuar-btn-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 15px 8px;
    color: white;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
}

.efyuar-btn-icon {
    font-size: 16px;
    margin: 0;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
    flex-shrink: 0;
}

.efyuar-btn-text {
    display: flex;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1.3;
    letter-spacing: 2px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vertical-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1.3;
    letter-spacing: 1px;
}

/* Hover Effects */
.efyuar-popup-btn:hover,
.efyuar-popup-btn.hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(45, 55, 72, 0.6);
    background: #4a5568;
}

.efyuar-popup-btn.right-top:hover,
.efyuar-popup-btn.right-bottom:hover,
.efyuar-popup-btn.left-top:hover,
.efyuar-popup-btn.left-bottom:hover {
    transform: scale(1.05);
}

.efyuar-popup-btn:hover .efyuar-btn-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Active/Touch State */
.efyuar-popup-btn:active,
.efyuar-popup-btn.touching {
    transform: translateY(-50%) scale(0.95);
}

.efyuar-popup-btn.right-top:active,
.efyuar-popup-btn.right-bottom:active,
.efyuar-popup-btn.left-top:active,
.efyuar-popup-btn.left-bottom:active,
.efyuar-popup-btn.right-top.touching,
.efyuar-popup-btn.right-bottom.touching,
.efyuar-popup-btn.left-top.touching,
.efyuar-popup-btn.left-bottom.touching {
    transform: scale(0.95);
}

/* Scroll Animation */
.efyuar-popup-btn.scrolling {
    opacity: 0.7;
    transform: translateY(-50%) scale(0.9);
}

/* Modal Styles */
.efyuar-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.efyuar-popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.efyuar-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

/* Modal Container */
.efyuar-popup-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.efyuar-popup-modal.active .efyuar-popup-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.efyuar-popup-header {
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.efyuar-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.efyuar-popup-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

/* Modal Header */
.efyuar-popup-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

/* Modal Content */
.efyuar-popup-content {
    padding: 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Form Styles */
.efyuar-form {
    max-width: 100%;
}

.efyuar-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.efyuar-form-group {
    margin-bottom: 20px;
    flex: 1;
}

.efyuar-form-group.efyuar-half {
    flex: 1;
}

.efyuar-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.efyuar-form-group .required {
    color: #e53e3e;
}

.efyuar-form-group input,
.efyuar-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.efyuar-form-group input:focus,
.efyuar-form-group textarea:focus {
    outline: none;
    border-color: #2d3748;
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

.efyuar-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.efyuar-form-submit {
    text-align: center;
    margin-top: 25px;
}

.efyuar-submit-btn {
    background: #fbbf24;
    color: #1f2937;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.efyuar-submit-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.efyuar-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.efyuar-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: center;
}

.efyuar-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.efyuar-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Loading State */
.efyuar-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.efyuar-loading i {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2d3748;
}

.efyuar-loading p {
    margin: 0;
    font-size: 14px;
}

/* Error State */
.efyuar-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

/* Body Lock */
body.efyuar-popup-open {
    overflow: hidden;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Left positioned buttons animation */
.efyuar-popup-btn.left-center {
    animation: slideInLeft 0.8s ease-out;
}

.efyuar-popup-btn.left-top,
.efyuar-popup-btn.left-bottom {
    animation: slideInLeftSimple 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes slideInLeftSimple {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile: Full Screen Modal */
    .efyuar-popup-container {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        transform: translateY(100%);
    }
    
    .efyuar-popup-modal.active .efyuar-popup-container {
        transform: translateY(0);
    }
    
    .efyuar-popup-content {
        max-height: calc(100vh - 80px);
        padding: 15px;
    }
    
    .efyuar-popup-title {
        font-size: 20px;
    }
    
    .efyuar-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .efyuar-form-group {
        margin-bottom: 15px;
    }
    
    .efyuar-form-group input,
    .efyuar-form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .efyuar-submit-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Mobile Button Adjustments */
    .efyuar-popup-btn {
        width: 50px;
        height: 180px;
    }
    
    .efyuar-btn-content {
        padding: 12px 6px;
    }
    
    .efyuar-btn-icon {
        font-size: 16px;
        margin: 0;
    }
    
    .vertical-text {
        font-size: 12px;
    }
    
    /* Mobile Positioning */
    .efyuar-popup-btn.right-center,
    .efyuar-popup-btn.left-center {
        top: 60%;
    }
    
    .efyuar-popup-btn.right-top,
    .efyuar-popup-btn.left-top {
        top: 80px;
    }
    
    .efyuar-popup-btn.right-bottom,
    .efyuar-popup-btn.left-bottom {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .efyuar-popup-btn {
        width: 45px;
        height: 160px;
    }
    
    .efyuar-btn-content {
        padding: 10px 5px;
    }
    
    .efyuar-btn-icon {
        font-size: 14px;
        margin: 0;
    }
    
    .vertical-text {
        font-size: 11px;
    }
    
    .efyuar-popup-btn.right-center,
    .efyuar-popup-btn.right-top,
    .efyuar-popup-btn.right-bottom {
        right: 0px;
    }
    
    .efyuar-popup-btn.left-center,
    .efyuar-popup-btn.left-top,
    .efyuar-popup-btn.left-bottom {
        left: 15px;
    }
}

/* RTL Support */
[dir="rtl"] .efyuar-btn-icon {
    margin-bottom: 6px;
}

[dir="rtl"] .efyuar-popup-btn.right-center,
[dir="rtl"] .efyuar-popup-btn.right-top,
[dir="rtl"] .efyuar-popup-btn.right-bottom {
    right: auto;
    left: 20px;
}

[dir="rtl"] .efyuar-popup-btn.left-center,
[dir="rtl"] .efyuar-popup-btn.left-top,
[dir="rtl"] .efyuar-popup-btn.left-bottom {
    left: auto;
    right: 20px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .efyuar-popup-btn {
        background: #000;
        border: 2px solid #fff;
    }
    
    .efyuar-popup-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .efyuar-popup-btn,
    .efyuar-popup-container,
    .efyuar-popup-modal,
    .efyuar-btn-icon,
    .efyuar-popup-close {
        transition: none;
        animation: none;
    }
} 