/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8ddd4 100%);
    color: #5d4e37;
    height: 100%;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #955f27;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    box-shadow: 0 2px 20px rgba(139, 115, 85, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Logo'yu ortala */
    height: 4rem;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #5d4e37;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-link img{
    width: 10rem;
    max-height: 100px;
}

.logoYeni{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #5d4e37;
    font-weight: 700;
    font-size: 1.125rem;
    background-color: black;
}

.logo-icon {
    padding: 0.5rem;
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    border-radius: 0.75rem;
    color: white;
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.3);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: lightgray;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd0c4;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: #d4a574;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    color: #8b7355;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 150, 83, 0.4);
}

.btn-outline {
    background: rgba(245, 241, 235, 0.8);
    color: #5d4e37;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.btn-outline:hover {
    background: rgba(221, 208, 196, 0.8);
    border-color: rgba(139, 115, 85, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Main Content */
.main-content {
    padding-top: 6rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5d4e37 0%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #8b7355;
    max-width: 32rem;
    margin: 0 auto;
}

.logo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#prompt-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #5d4e37;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

#prompt-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

#prompt-input::placeholder {
    color: #a69080;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #8b7355;
}

.replicate-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5d4e37;
    text-decoration: none;
    transition: color 0.2s ease;
}

.replicate-link:hover {
    color: #d4a574;
}

.replicate-logo {
    height: 1rem;
    width: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.logo-item {
    position: relative;
    aspect-ratio: 1;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(139, 115, 85, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.logo-item:hover {
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(139, 115, 85, 0.15);
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-placeholder {
    width: 80%;
    height: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.logo-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logo-item:hover .logo-actions {
    opacity: 1;
}

.action-btn {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

/* Error Message */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Footer */
.site-footer {
    background: rgba(245, 241, 235, 0.8);
    border-top: 1px solid rgba(139, 115, 85, 0.1);
    padding: 3rem 0;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #8b7355;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #5d4e37;
}

.footer-text {
    text-align: center;
    color: #a69080;
    font-size: 0.875rem;
}

/* Footer Modal Styles */
#footer-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0 auto; /* Modal'ı ortala */
}

#footer-modal h4 {
    color: #5d4e37;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-align: center; /* Başlıkları ortala */
}

#footer-modal h5 {
    color: #8b7355;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    text-align: center; /* Alt başlıkları ortala */
}

#footer-modal p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center; /* Paragrafları ortala */
}

#footer-modal ul {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    text-align: left; /* Listeleri sola hizala */
}

#footer-modal li {
    margin-bottom: 0.5rem;
}

#footer-modal strong {
    color: #5d4e37;
}



/* Feedback Button */
.feedback-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    /* Sabit konum - scroll ile hareket etmesin */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.3);
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 150, 83, 0.4);
}

.feedback-btn svg {
    width: 18px;
    height: 18px;
}

/* Feedback Modal */
.feedback-modal-content {
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

/* Modal'ın yükseklik olarak ortalanması ve üstte boşluk için */
#feedback-modal {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 60px;
}

/* Modal kapalıyken gizle */
#feedback-modal[style*="display: none"] {
    display: none !important;
}

.feedback-form {
    padding: 1rem 0;
}

.feedback-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    margin-bottom: 1rem;
}

.feedback-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    background: white;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(196, 150, 83, 0.1);
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    opacity: 1;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-notification.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* Responsive Feedback Button */
@media (max-width: 768px) {
    .feedback-button-container {
        bottom: 15px;
        right: 15px;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .feedback-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .feedback-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .feedback-button-container {
        bottom: 10px;
        right: 10px;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .feedback-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .feedback-btn svg {
        width: 14px;
        height: 14px;
    }
    
    #feedback-modal {
        padding: 10px;
        padding-top: 40px;
    }
    
    .feedback-modal-content {
        width: 95%;
        max-width: none;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 24rem;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.modal-header h3 {
    color: #5d4e37;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8b7355;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: #5d4e37;
}

.modal-body {
    padding: 1.5rem;
}

.modal-logo-container {
    aspect-ratio: 1;
    background: #f8f8f8;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.1);
    display: flex;
    justify-content: center;
}




/* Location Section Styles */
.location-section {
    width: 100%;
    margin: 1rem 0;
}

.location-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.05);
}

.location-container:hover {
    border-color: rgba(139, 115, 85, 0.3);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.1);
}

.location-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
}

.location-content {
    flex: 1;
    min-width: 0;
}

.location-text {
    font-size: 1rem;
    font-weight: 500;
    color: #5d4e37;
    margin-bottom: 0.25rem;
}

.location-address {
    font-size: 0.875rem;
    color: #8b7355;
    line-height: 1.4;
    word-break: break-word;
}

.location-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
    height: 40px;
}

.location-btn-manual {
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
}

.location-btn-manual:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.4);
}

.location-btn-auto {
    background: rgba(245, 241, 235, 0.8);
    color: #5d4e37;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.location-btn-auto:hover {
    background: rgba(221, 208, 196, 0.8);
    border-color: rgba(139, 115, 85, 0.3);
}

.location-btn:active {
    transform: translateY(0);
}

.location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auto-location-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(93, 78, 55, 0.3);
    border-top: 2px solid #5d4e37;
    border-radius: 50%;
    animation: autoSpin 1s linear infinite;
}

@keyframes autoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Location selected state */
.location-container.selected {
    border-color: #d4a574;
    background: rgba(212, 165, 116, 0.05);
}

.location-container.selected .location-icon {
    background: linear-gradient(135deg, #8b7355 0%, #5d4e37 100%);
}

.location-container.selected .location-btn-manual {
    background: rgba(139, 115, 85, 0.8);
}

.location-container.selected .location-btn-manual:hover {
    background: rgba(139, 115, 85, 0.9);
}

/* Error state */
.location-container.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.location-container.error .location-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.location-error-text {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Map Modal Styles */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.map-modal-content {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    max-height: 600px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    flex-shrink: 0;
}

.map-modal-header h3 {
    color: #5d4e37;
    font-size: 1.25rem;
    font-weight: 600;
}

.map-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8b7355;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.map-modal-close:hover {
    color: #5d4e37;
}

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.map {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    position: relative;
}

.map-search {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.map-search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #5d4e37;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.map-search-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.map-search-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
}

.map-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.4);
}

.map-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4a574;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.map-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.1);
    flex-shrink: 0;
}

.selected-address {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(245, 241, 235, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.selected-address span {
    color: #5d4e37;
    font-size: 0.875rem;
    font-weight: 500;
}

.map-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 150, 83, 0.4);
}

.btn-outline {
    background: rgba(245, 241, 235, 0.8);
    color: #5d4e37;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.btn-outline:hover {
    background: rgba(221, 208, 196, 0.8);
    border-color: rgba(139, 115, 85, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}





/* Mevcut CSS kodlarınızın auth modal bölümünü bu kodlarla değiştirin */

/* Auth Modal Styles with Animations */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 480px;
    max-height: 95vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal.show .auth-modal-content {
    transform: scale(1) translateY(0);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
    flex-shrink: 0;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.auth-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8b7355;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.auth-tab.active {
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
    transform: translateY(-1px);
}

.auth-tab:not(.active):hover {
    background: rgba(212, 165, 116, 0.1);
    color: #5d4e37;
    transform: translateY(-1px);
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8b7355;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    transform: rotate(0deg);
}

.auth-modal-close:hover {
    color: #5d4e37;
    background: rgba(139, 115, 85, 0.1);
    transform: rotate(90deg);
}

.auth-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.auth-form:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.slide-out-left {
    transform: translateX(-20px);
    opacity: 0;
}

.auth-form.slide-in-right {
    transform: translateX(20px);
    opacity: 0;
}

.auth-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5d4e37;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #5d4e37;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #a69080;
    transition: color 0.2s ease;
}

.form-group input:focus::placeholder {
    color: transparent;
}

.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-input:focus-within {
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    transform: translateY(-1px);
}

.phone-prefix {
    padding: 0.75rem 0.5rem 0.75rem 0.75rem;
    color: #5d4e37;
    font-size: 0.875rem;
    font-weight: 500;
    border-right: 1px solid rgba(139, 115, 85, 0.2);
    background: rgba(245, 241, 235, 0.5);
    transition: all 0.2s ease;
}

.phone-input input {
    border: none;
    background: transparent;
    padding: 0.75rem 0.75rem 0.75rem 0.5rem;
    flex: 1;
}

.phone-input input:focus {
    box-shadow: none;
}

.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #5d4e37;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    color: #5d4e37;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(139, 115, 85, 0.3);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    border-color: #d4a574;
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkmark 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.forgot-password {
    text-align: center;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: #d4a574;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c19653;
    transition: width 0.3s ease;
}

.forgot-password a:hover {
    color: #c19653;
}

.forgot-password a:hover::after {
    width: 100%;
}

.auth-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.1);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

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

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

.auth-btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.3);
}

.auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 150, 83, 0.4);
}

.auth-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.3);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: authSpin 1s linear infinite;
}

@keyframes authSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation styles with animations */
.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    animation: shake 0.5s ease-in-out;
}

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

.error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    opacity: 0;
    transform: translateY(-5px);
    animation: errorSlideIn 0.3s ease forwards;
}

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



/* Success animation */
@keyframes success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.auth-btn.success {
    animation: success 0.3s ease;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}





/* Prefers reduced motion */


/* Sözleşme onayı stilleri */
.contract-group {
    padding: 1rem;
}

.contract-label {
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
    font-size: 0.8rem;
    color: #5d4e37;
}

.contract-text {
    flex: 1;
}

.contract-link {
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.contract-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c19653;
    transition: width 0.3s ease;
}

.contract-link:hover {
    color: #c19653;
}

.contract-link:hover::after {
    width: 100%;
}

/* Contract checkbox özel stilleri */
.contract-group .checkbox-custom {
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.contract-group input[type="checkbox"]:checked + .checkbox-custom::after {
    font-size: 14px;
}

/* ========================================
   MOBİL UYUMLU TASARIM EKLEMELERİ - GELİŞTİRİLMİŞ
   ======================================== */

/* Mobil Header Düzenlemeleri */
@media (max-width: 768px) {
    .nav-menu{
    display: none;
        }
    .site-header {
        position: fixed;
        background: rgba(149, 95, 39, 0.95);
        backdrop-filter: blur(15px);
    }

    .header-content {
        height: auto;
        min-height: 4rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .logo-link img {
        width: 8rem;
        max-height: 60px;
    }

    .nav-menu {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin: 0;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-actions {
        order: 1;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .main-content {
        padding-top: 8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem 0;
    }

    .logo-link img {
        width: 6rem;
        max-height: 50px;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .header-actions {
        top: 0.75rem;
        right: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .main-content {
        padding-top: 7rem;
    }
}

/* Mobil Ana İçerik Düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .form-section {
        max-width: 100%;
    }

    #prompt-input {
        min-height: 100px;
        font-size: 0.9rem;
        padding: 0.875rem;
        /* Mobil için özel düzenlemeler */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0.75rem;
        font-family: inherit;
        line-height: 1.4;
    }

    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px; /* Dokunmatik için minimum yükseklik */
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    #prompt-input {
        min-height: 80px;
        font-size: 0.85rem;
        padding: 0.75rem;
        /* Çok küçük ekranlar için */
        font-size: 16px; /* iOS zoom'u önlemek için */
    }

    .btn-primary {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* Mobil Konum Seçimi Düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .location-section {
        margin: 1.5rem 0;
    }

    .location-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        /* Mobil için daha iyi dokunma deneyimi */
        min-height: auto;
    }

    .location-content {
        text-align: center;
        order: 1;
    }

    .location-icon {
        align-self: center;
        order: 0;
        width: 3rem;
        height: 3rem;
    }

    .location-actions {
        order: 2;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .location-btn {
        flex: 1;
        min-width: auto;
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        min-height: 44px; /* Dokunmatik için */
    }
}

@media (max-width: 480px) {
    .location-container {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .location-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .location-text {
        font-size: 0.9rem;
    }

    .location-address {
        font-size: 0.8rem;
    }

    .location-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .location-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

/* Mobil Harita Modal Düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .map-modal-content {
        width: 95%;
        height: 90vh;
        max-height: none;
        margin: 0.5rem;
    }

    .map-modal-header {
        padding: 1rem;
    }

    .map-modal-header h3 {
        font-size: 1.1rem;
    }

    .map-search {
        left: 0.5rem;
        right: 0.5rem;
        top: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .map-search-input {
        font-size: 0.85rem;
        padding: 0.625rem;
        /* iOS zoom'u önlemek için */
        font-size: 16px;
        -webkit-appearance: none;
        border-radius: 0.5rem;
    }

    .map-search-btn {
        padding: 0.625rem;
        min-height: 44px;
    }

    .map-modal-footer {
        padding: 1rem;
    }

    .selected-address {
        margin-bottom: 0.75rem;
        padding: 0.625rem;
    }

    .selected-address span {
        font-size: 0.8rem;
    }

    .map-modal-actions {
        gap: 0.75rem;
        flex-direction: column;
    }

    .map-modal-actions .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .map-modal-content {
        width: 98%;
        height: 95vh;
        margin: 0.25rem;
    }

    .map-modal-header {
        padding: 0.75rem;
    }

    .map-modal-header h3 {
        font-size: 1rem;
    }

    .map-search {
        left: 0.25rem;
        right: 0.25rem;
        top: 0.25rem;
    }

    .map-search-input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .map-modal-footer {
        padding: 0.75rem;
    }

    .map-modal-actions {
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }
}

/* Mobil Auth Modal Düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }

    .auth-modal-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    .auth-tabs {
        width: 100%;
    }

    .auth-tab {
        flex: 1;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .auth-modal-body {
        padding: 1rem;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.85rem;
        min-height: 44px;
        /* iOS zoom'u önlemek için */
        font-size: 16px;
        -webkit-appearance: none;
        border-radius: 0.5rem;
    }

    .phone-input {
        flex-direction: row;
        min-height: 44px;
    }

    .phone-prefix {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .contract-group {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .contract-label {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .auth-modal-footer {
        padding: 1rem;
    }

    .auth-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 0.5rem;
    }

    .auth-modal-header {
        padding: 0.75rem 0.75rem 0.5rem 0.75rem;
    }

    .auth-tab {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .auth-modal-body {
        padding: 0.75rem;
        max-height: 65vh;
    }

    .form-group {
        margin-bottom: 0.625rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.625rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .phone-prefix {
        padding: 0.625rem 0.4rem;
        font-size: 0.8rem;
    }

    .contract-group {
        padding: 0.625rem;
    }

    .contract-label {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .contract-group .checkbox-custom {
        width: 18px;
        height: 18px;
    }

    .auth-modal-footer {
        padding: 0.75rem;
    }

    .auth-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

/* Mobil Logo Grid Düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .results-section {
        max-width: 100%;
    }

    .logo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .logo-item {
        aspect-ratio: 1;
    }

    .logo-actions {
        top: 0.25rem;
        right: 0.25rem;
        gap: 0.25rem;
    }

    .action-btn {
        padding: 0.375rem;
        border-radius: 0.375rem;
        min-height: 32px;
        min-width: 32px;
    }

    .action-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 20rem;
        margin: 0 auto;
    }

    .logo-item {
        max-width: 100%;
    }
}

/* Mobil Footer Düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0;
        margin-top: 1.5rem;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer-link {
        font-size: 0.8rem;
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-text {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1.5rem 0;
    }

    .footer-nav {
        gap: 0.75rem;
    }

    .footer-link {
        font-size: 0.75rem;
        padding: 0.375rem;
        min-height: 40px;
    }

    .footer-text {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
}

/* Mobil Modal Düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }

    .modal-footer .btn {
        min-height: 44px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 0.75rem;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-footer {
        padding: 0.75rem;
    }
}

/* Mobil Genel Düzenlemeler - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Dokunmatik cihazlar için buton boyutları */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Scroll davranışı */
    .auth-modal-body,
    .map-container {
        -webkit-overflow-scrolling: touch;
    }

    /* Form elemanları için mobil optimizasyonlar */
    input, textarea, select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0.5rem;
        font-size: 16px; /* iOS zoom'u önlemek için */
    }

    /* Dokunmatik cihazlar için hover efektlerini devre dışı bırak */
    @media (hover: none) {
        .btn:hover,
        .nav-link:hover,
        .footer-link:hover,
        .contract-link:hover {
            transform: none;
        }

        .btn:active {
            transform: scale(0.98);
        }

        .logo-item:hover {
            transform: scale(0.95);
        }

        .logo-item:active {
            transform: scale(0.9);
        }
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Çok küçük ekranlar için */
    .btn {
        min-height: 40px;
        font-size: 0.8rem;
    }

    /* Form elemanları için daha küçük boyutlar */
    input, textarea, select {
        font-size: 16px;
        padding: 0.625rem;
    }
}

/* Yatay mod düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-modal-content {
        max-height: 95vh;
    }

    .auth-modal-body {
        max-height: 50vh;
        overflow-y: auto;
    }

    .map-modal-content {
        height: 95vh;
    }

    /* Yatay modda header'ı küçült */
    .site-header {
        min-height: 3rem;
    }

    .header-content {
        min-height: 3rem;
        padding: 0.5rem 0;
    }

    .main-content {
        padding-top: 4rem;
    }
}

/* Çok küçük ekranlar için özel düzenlemeler - GELİŞTİRİLMİŞ */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .logo-link img {
        width: 5rem;
        max-height: 40px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
        min-height: 36px;
    }

    .auth-tab {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        min-height: 36px;
    }

    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.75rem;
        min-height: 36px;
    }

    .contract-label {
        font-size: 0.65rem;
    }

    /* Çok küçük ekranlar için container padding'i azalt */
    .container {
        padding: 0 0.5rem;
    }
}

/* Touch device optimizations - GELİŞTİRİLMİŞ */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .footer-link:hover,
    .contract-link:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .logo-item:hover {
        transform: scale(0.95);
    }

    .logo-item:active {
        transform: scale(0.9);
    }

    /* Dokunmatik cihazlar için daha büyük dokunma alanları */
    .btn, .nav-link, .footer-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Form elemanları için daha büyük dokunma alanları */
    input, textarea, select {
        min-height: 44px;
    }
}

/* iOS Safari özel düzenlemeleri */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari için özel düzenlemeler */
    input, textarea, select {
        font-size: 16px; /* iOS zoom'u önlemek için */
        -webkit-appearance: none;
        border-radius: 0.5rem;
    }

    /* iOS Safari için button düzenlemeleri */
    .btn {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Android Chrome özel düzenlemeleri */
@supports (-webkit-overflow-scrolling: touch) {
    /* Android Chrome için özel düzenlemeler */
    .auth-modal-body,
    .map-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobil sonuç kartları için özel düzenlemeler */
@media (max-width: 768px) {
    .result-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .result-name {
        font-size: 1.1rem;
    }

    .result-address {
        font-size: 0.8rem;
    }

    .result-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .result-actions .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .result-card {
        padding: 0.75rem;
    }

    .result-name {
        font-size: 1rem;
    }

    .result-address {
        font-size: 0.75rem;
    }

    .result-actions .btn {
        min-height: 40px;
        font-size: 0.8rem;
    }
}

/* Mobil sayfalama düzenlemeleri - GELİŞTİRİLMİŞ */
@media (max-width: 768px) {
    .pagination {
        padding: 1rem;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .page-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
        min-height: 2rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        padding: 0.75rem;
    }
    
    .pagination-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    .page-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
        min-height: 1.75rem;
    }
}

/* Mobil feedback modal düzenlemeleri */
@media (max-width: 768px) {
    .feedback-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .feedback-form {
        padding: 0.75rem 0;
    }

    .feedback-select,
    .feedback-textarea {
        font-size: 16px; /* iOS zoom'u önlemek için */
        min-height: 44px;
    }

    .feedback-textarea {
        min-height: 100px;
    }
    
    /* Modal header mobil düzenlemesi */
    #feedback-modal .modal-header {
        padding: 1rem 1.25rem 0.75rem;
    }
    
    #feedback-modal .modal-header h3 {
        font-size: 1.25rem;
    }
    
    /* Modal body mobil düzenlemesi */
    #feedback-modal .modal-body {
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .feedback-modal-content {
        width: 98%;
        margin: 0.5rem;
        max-height: 95vh;
    }

    .feedback-select,
    .feedback-textarea {
        font-size: 16px;
        min-height: 44px; /* iOS touch target için */
    }

    .feedback-textarea {
        min-height: 80px;
    }
    
    /* Modal header küçük ekran düzenlemesi */
    #feedback-modal .modal-header {
        padding: 0.75rem 1rem 0.5rem;
    }
    
    #feedback-modal .modal-header h3 {
        font-size: 1.125rem;
    }
    
    /* Modal body küçük ekran düzenlemesi */
    #feedback-modal .modal-body {
        padding: 0.5rem 1rem;
    }
    
    /* Modal close button küçük ekran düzenlemesi */
    #feedback-modal .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

/* Mobil success notification düzenlemeleri */
@media (max-width: 768px) {
    .success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .success-notification {
        top: 5px;
        right: 5px;
        left: 5px;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ========================================
   SONUÇ KARTLARI VE DİĞER STİLLER
   ======================================== */

.results-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    color: #2c1810;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.results-container {
    display: grid;
    gap: 1.5rem;
}

.result-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.result-name {
    color: #2c1810;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.result-rating {
    text-align: right;
}

.rating-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4a574;
}

.result-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.distance-info {
    color: #d4a574;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.result-comment {
    background: #f8f6f3;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #d4a574;
    margin-bottom: 1rem;
    font-style: italic;
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ai-score {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574, #c19a5b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Premium highlighted result card styles */
.result-card-highlighted {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1a12 50%, #1a0f0a 100%);
    border: 3px solid #d4a574;
    box-shadow: 
        0 8px 32px rgba(212, 165, 116, 0.4),
        0 0 0 1px rgba(212, 165, 116, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.result-card-highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #f4d03f, #d4a574);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.result-card-highlighted .result-name {
    color: #f8f6f3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.result-card-highlighted .result-address {
    color: #d4a574;
    font-weight: 600;
}

.result-card-highlighted .result-comment {
    background: linear-gradient(135deg, #2d1a12 0%, #3d2418 100%);
    border-left: 4px solid #d4a574;
    color: #f8f6f3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.result-card-highlighted .result-comment::before {
    content: '⭐';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4a574;
    font-size: 1.2rem;
}

.result-comment-highlighted {
    position: relative;
    background: linear-gradient(135deg, #2d1a12 0%, #3d2418 100%) !important;
    border-left: 4px solid #d4a574 !important;
    color: #f8f6f3 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.result-comment-highlighted::before {
    content: '⭐';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4a574;
    font-size: 1.2rem;
}

.filter-match-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #d4a574, #f4d03f, #d4a574);
    background-size: 200% 100%;
    color: #1a0f0a;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 
        0 4px 12px rgba(212, 165, 116, 0.5),
        0 0 0 1px rgba(212, 165, 116, 0.2);
    animation: pulse 2s infinite, shimmer 3s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.comment-rating {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.comment-date {
    display: inline-block;
    background: #95a5a6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
    color: #856404;
    font-size: 0.875rem;
    font-weight: 500;
}

.review-warning svg {
    color: #ffc107;
    flex-shrink: 0;
}

/* Comments Slider Styles */
.comments-slider {
    margin-top: 1rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
}

.slider-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.4);
    background: linear-gradient(135deg, #c19653 0%, #b08a4a 100%);
}

.comment-counter {
    font-size: 0.8rem;
    color: #5d4e37;
    font-weight: 600;
    min-width: 3rem;
    text-align: center;
}

.result-comment {
    transition: opacity 0.3s ease;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Sayfalama Stilleri */
.pagination {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(149, 95, 39, 0.1);
    box-shadow: 0 4px 20px rgba(149, 95, 39, 0.05);
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #5d4e37;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 150, 83, 0.4);
    background: linear-gradient(135deg, #c19653 0%, #b08a4a 100%);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.2);
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    color: #5d4e37;
    border: 2px solid #d4a574;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: #d4a574;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
}

.page-number.active {
    background: linear-gradient(135deg, #d4a574 0%, #c19653 100%);
    color: white;
    border-color: #c19653;
    box-shadow: 0 2px 8px rgba(196, 150, 83, 0.3);
}

.page-number.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.page-number.dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(212, 165, 116, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
    }
}

/* Feedback Modal Footer Butonları */
#feedback-modal .modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

#feedback-modal .modal-footer .btn {
    flex: 0 0 auto;
    min-width: 120px;
    margin: 0;
}

/* Feedback Modal Footer Butonları - Mobil Responsive */
@media (max-width: 768px) {
    #feedback-modal .modal-footer {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.75rem 0;
        flex-wrap: wrap;
    }
    
    #feedback-modal .modal-footer .btn {
        width: auto;
        min-width: 140px;
        max-width: 200px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #feedback-modal .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    #feedback-modal .modal-footer .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-height: 44px; /* iOS touch target için */
    }
}

/* reCAPTCHA Ortalama */
#feedback-modal .g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* reCAPTCHA Mobil Responsive */
@media (max-width: 768px) {
    #feedback-modal .g-recaptcha {
        margin: 0.75rem 0;
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    #feedback-modal .g-recaptcha {
        margin: 0.5rem 0;
        transform: scale(0.8);
        transform-origin: center;
    }
}