/**
 * Details / booking page (extracted from arvira-main)
 */

/* ===== DETAIL PAGE STYLES ===== */

/* Page Container */
.detail-page {
    max-width: 800px;
    margin: 0 auto;
}

/* Header with Back Button */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.detail-back-btn:hover {
    background: var(--bg-gray);
}

.detail-header-icons {
    display: flex;
    gap: 8px;
}

.detail-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.detail-icon-btn:hover {
    background: var(--bg-gray);
    color: var(--primary-purple);
}

/* Rating Display */
.detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-rating-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* Profile Card */
.detail-profile-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.detail-profile-image-wrapper {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin: 0 auto 20px;
}

.detail-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-profile-info {
    text-align: center;
}

.detail-profile-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.detail-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-gray);
    border-radius: var(--border-radius-sm);
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.detail-info-item svg {
    color: var(--primary-purple);
    flex-shrink: 0;
}

.detail-status-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
}

.detail-status-badge.open {
    background: rgba(0, 184, 77, 0.1);
    color: var(--success-green);
}

.detail-status-badge.closed {
    background: rgba(232, 58, 58, 0.1);
    color: var(--error-red);
}

/* Detail Sections */
.detail-section {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title svg {
    color: var(--primary-purple);
}

.detail-section-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Service Selection */
.detail-service-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    margin-bottom: 16px;
    font-family: inherit;
}

.detail-service-select:focus {
    outline: none;
    border-color: var(--primary-purple);
}

/* Date Input */
.detail-date-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-family: inherit;
}

.detail-date-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

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

.detail-time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 12px;
    background: var(--bg-gray);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-time-slot:hover {
    background: var(--bg-white);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.detail-time-slot.selected {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    border-color: transparent;
}

.detail-time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.detail-slot-label {
    font-weight: 500;
}

.detail-slot-hours {
    font-size: 12px;
    opacity: 0.8;
}

/* Notes Textarea */
.detail-notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-white);
    resize: vertical;
    font-family: inherit;
}

.detail-notes-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

/* Submit Button */
.detail-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(233, 104, 214, 0.4);
    transform: translateY(-2px);
}

/* Comments Section */
.detail-comments-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-top: 24px;
}

.detail-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.detail-comments-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-comments-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Comment Item */
.detail-comment {
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

.detail-comment:last-child {
    margin-bottom: 0;
}

.detail-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.detail-comment-info {
    flex: 1;
}

.detail-comment-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.detail-comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-comment-rating {
    display: flex;
    gap: 2px;
}

.detail-comment-rating svg {
    width: 14px;
    height: 14px;
}

.detail-comment-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--error-red);
}

.modal-body {
    padding: 20px;
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-info-row:last-child {
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
}

.modal-info-label {
    font-size: 14px;
    color: var(--text-muted);
}

.modal-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.modal-info-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-info-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-purple);
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.modal-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(233, 104, 214, 0.4);
}

/* Badge Styles */
.detail-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-purple);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.detail-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* Alert Messages */
.detail-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
}

.detail-alert.success {
    background: rgba(0, 184, 77, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(0, 184, 77, 0.3);
}

.detail-alert.error {
    background: rgba(232, 58, 58, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(232, 58, 58, 0.3);
}

/* Detail page responsive */
@media (max-width: 768px) {
    .detail-page {
        padding: 0 8px;
    }

    .detail-profile-card {
        padding: 16px;
    }

    .detail-section {
        padding: 16px;
    }

    .detail-time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-status-badge {
        align-self: flex-start;
    }
}
