/* Frontend stil dosyası */

.dt-rez-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hizmet kartları */
.dt-rez-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dt-rez-service-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
}

.dt-rez-service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.dt-rez-service-item .service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.dt-rez-service-item .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dt-rez-service-item:hover .service-image img {
    transform: scale(1.1);
}

.dt-rez-service-item .service-content {
    padding: 24px;
}

.dt-rez-service-item h3 {
    color: #1a202c;
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.dt-rez-service-item .description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-rez-service-item .service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 2px solid #f7fafc;
    border-bottom: 2px solid #f7fafc;
}

.dt-rez-service-item .price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dt-rez-service-item .duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.dt-rez-service-item .duration svg {
    opacity: 0.7;
}

.dt-rez-service-item .btn-reserve {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.dt-rez-service-item .btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.35);
}

/* Rezervasyon Modal */
.dt-rez-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px;
}

.dt-rez-modal-content {
    background-color: white;
    margin: 20px auto;
    padding: 0;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dt-rez-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.dt-rez-modal-header .modal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.dt-rez-modal-header .modal-service-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.dt-rez-modal-header #modal-service-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dt-rez-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.dt-rez-modal-header .modal-service-details {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-rez-modal-header .separator {
    opacity: 0.5;
}

.dt-rez-close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

.dt-rez-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.dt-rez-modal-body {
    padding: 32px 30px;
}

/* Form stilleri */
.dt-rez-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dt-rez-form-group {
    margin-bottom: 20px;
}

.dt-rez-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.dt-rez-form-group label svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.dt-rez-form-group label .required {
    color: #e53e3e;
    margin-left: 2px;
}

.dt-rez-form-group input[type="text"],
.dt-rez-form-group input[type="email"],
.dt-rez-form-group input[type="tel"],
.dt-rez-form-group textarea,
.dt-rez-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #f7fafc;
}

.dt-rez-form-group input:focus,
.dt-rez-form-group textarea:focus,
.dt-rez-form-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dt-rez-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Saat slotları */
.dt-rez-form-group .time-slots-wrapper {
    margin-top: 10px;
}

.dt-rez-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.dt-rez-time-slot {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
}

.dt-rez-time-slot:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-2px);
}

.dt-rez-time-slot.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.dt-rez-time-slot.unavailable {
    background-color: #f7fafc;
    color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
    position: relative;
}

.dt-rez-time-slot.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #cbd5e0;
    transform: translateY(-50%);
}

.dt-rez-time-slot.unavailable:hover {
    border-color: #e2e8f0;
    background-color: #f7fafc;
    transform: none;
}

/* Butonlar */
.dt-rez-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.dt-rez-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.35);
}

.dt-rez-btn:active {
    transform: translateY(0);
}

.dt-rez-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dt-rez-btn-cancel {
    background: #e2e8f0;
    color: #4a5568;
    margin-right: 12px;
    box-shadow: none;
}

.dt-rez-btn-cancel:hover {
    background: #cbd5e0;
    box-shadow: none;
}

/* Alert mesajları */
.dt-rez-alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
    border-left: 4px solid;
    font-size: 14px;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.dt-rez-alert-success {
    background-color: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.dt-rez-alert-error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.dt-rez-alert-info {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* Loading spinner */
.dt-rez-loading {
    text-align: center;
    padding: 20px;
}

.dt-rez-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .dt-rez-container {
        padding: 16px;
    }
    
    .dt-rez-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dt-rez-modal {
        padding: 0;
    }
    
    .dt-rez-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 95vh;
        overflow-y: auto;
        animation: modalSlideUpMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes modalSlideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .dt-rez-modal-header {
        padding: 20px;
        border-radius: 20px 20px 0 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .dt-rez-modal-header h2 {
        font-size: 20px;
    }
    
    .dt-rez-modal-header #modal-service-image {
        width: 50px;
        height: 50px;
    }
    
    .dt-rez-modal-body {
        padding: 24px 20px;
    }
    
    .dt-rez-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dt-rez-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }
    
    .dt-rez-time-slot {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .dt-rez-service-item .description {
        -webkit-line-clamp: 2;
    }
    
    .dt-rez-service-item h3 {
        font-size: 20px;
    }
    
    .dt-rez-service-item .price {
        font-size: 24px;
    }
    
    .dt-rez-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .dt-rez-service-item .service-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dt-rez-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dt-rez-modal-header .modal-service-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Datepicker özelleştirme */
.ui-datepicker {
    font-size: 14px !important;
}

.ui-datepicker-title {
    font-weight: 600;
}

.ui-state-active {
    background-color: #2c3e50 !important;
    border-color: #2c3e50 !important;
}
