/* Berber Plus Frontend - Türkçe Tam Versiyon */

/* Container - Support both old and new class names */
.berber-plus-app,
.barber-booking-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #1f2937 !important;  /* Varsayılan yazı rengi - koyu gri */
}

/* Tüm alt elementlerin de rengi koyu olsun */
.berber-plus-app *,
.barber-booking-app * {
    color: inherit;  /* Parent'tan renk al */
}

.bp-container {
    padding: 40px;
}

/* Header */
.bp-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f3f4f6;
}

.bp-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.bp-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Progress Bar */
.bp-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.bp-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.bp-progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bp-progress-circle.active {
    background: var(--bp-primary, #4F46E5);
    color: white;
    transform: scale(1.1);
}

.bp-progress-circle.completed {
    background: #10b981;
    color: white;
}

.bp-progress-label {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.bp-progress-line {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

.bp-progress-line.completed {
    background: #10b981;
}

/* Step Content */
.bp-step {
    animation: fadeIn 0.3s ease;
}

.bp-step h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Branch Grid */
.bp-branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bp-branch-card {
    padding: 25px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.bp-branch-card:hover {
    border-color: var(--bp-primary, #4F46E5);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.bp-branch-card.selected {
    border-color: var(--bp-primary, #4F46E5);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.bp-branch-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.bp-branch-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 6px 0;
    display: flex;
    align-items: center;
}

.bp-branch-card p:before {
    content: "📍";
    margin-right: 8px;
}

.bp-branch-card p:nth-of-type(2):before {
    content: "📞";
}

/* Staff Grid */
.bp-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bp-staff-card {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #ffffff;
}

.bp-staff-card:hover {
    border-color: var(--bp-primary, #4F46E5);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.bp-staff-card.selected {
    border-color: var(--bp-primary, #4F46E5);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.bp-staff-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #e5e7eb;
}

.bp-staff-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.bp-staff-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Date Time Selection */
.bp-datetime {
    margin-bottom: 30px;
}

.bp-datetime label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.bp-datetime input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bp-datetime input[type="date"]:focus {
    outline: none;
    border-color: var(--bp-primary, #4F46E5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Slots Grid */
.bp-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.bp-slot {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    transition: all 0.3s ease;
    background: #ffffff;
}

.bp-slot:hover {
    border-color: var(--bp-primary, #4F46E5);
    background: rgba(79, 70, 229, 0.05);
}

.bp-slot.selected {
    background: var(--bp-primary, #4F46E5);
    color: white;
    border-color: var(--bp-primary, #4F46E5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Form */
.bp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* Tüm form içeriğinin yazı rengi - Tema override edilsin */
.bp-form,
.bp-form *,
.bp-form label,
.bp-form span,
.bp-form div {
    color: #1f2937 !important;  /* Koyu gri - tüm yazılar görünsün */
}

.bp-form input,
.bp-form textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #1f2937 !important;  /* Yazı rengi koyu gri - ÖNEMLİ! */
    background-color: #ffffff !important;  /* Arka plan beyaz */
    transition: all 0.3s ease;
}

/* Phone input specific styles */
.bp-form input[type="tel"] {
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.bp-form input[type="tel"]::placeholder {
    font-size: 15px;
    letter-spacing: normal;
}

/* Invalid phone number indicator */
.bp-form input[type="tel"]:invalid:not(:placeholder-shown) {
    border-color: #f87171;
    background-color: #fef2f2;
}

.bp-form input:focus,
.bp-form textarea:focus {
    outline: none;
    border-color: var(--bp-primary, #4F46E5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bp-form textarea {
    min-height: 100px;
    resize: vertical;
}

.bp-form input::placeholder,
.bp-form textarea::placeholder {
    color: #9ca3af;
}

/* Summary */
.bp-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.bp-summary-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bp-summary-item:last-child {
    border-bottom: none;
}

.bp-summary-item strong {
    color: #374151;
    font-weight: 600;
}

/* Actions */
.bp-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.bp-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bp-btn-primary {
    background: var(--bp-primary, #4F46E5);
    color: white;
}

.bp-btn-primary:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.bp-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.bp-btn-secondary:hover:not(:disabled) {
    background: #d1d5db;
}

.bp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.bp-message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.bp-message h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.bp-message p {
    margin: 8px 0;
    font-size: 16px;
}

.bp-message-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.bp-message-success h3 {
    color: #047857;
}

.bp-message-error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.bp-message-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
}

/* Loading */
.bp-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

.bp-loading:before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--bp-primary, #4F46E5);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .berber-plus-app {
        margin: 20px;
        border-radius: 12px;
    }
    
    .bp-container {
        padding: 25px 20px;
    }
    
    .bp-header h2 {
        font-size: 26px;
    }
    
    .bp-progress {
        padding: 0 10px;
    }
    
    .bp-progress-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .bp-progress-label {
        font-size: 10px;
    }
    
    .bp-branch-grid,
    .bp-staff-grid {
        grid-template-columns: 1fr;
    }
    
    .bp-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .bp-actions {
        flex-direction: column;
    }
    
    .bp-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bp-header h2 {
        font-size: 22px;
    }
    
    .bp-progress-label {
        display: none;
    }
    
    .bp-step h3 {
        font-size: 20px;
    }
}

/* Service Cards */
.bp-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bp-service-card {
    padding: 25px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    text-align: center;
}

.bp-service-card:hover {
    border-color: var(--bp-primary, #4F46E5);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.bp-service-card.selected {
    border-color: var(--bp-primary, #4F46E5);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.bp-service-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.bp-service-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 15px 0;
}

.bp-service-price {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.bp-service-price .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--bp-primary, #4F46E5);
}

.bp-service-price .duration {
    font-size: 14px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Map Link */
.bp-map-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #10b981;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bp-map-link:hover {
    background: #059669;
    transform: scale(1.05);
}
