/**
 * DoctorCard Component Styles
 * Namespaced with dc- prefix to avoid conflicts
 */

/* Phone Mockup Frame */
.dc-phone-mockup {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.dc-phone-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1d 50%, #0d0d0f 100%);
    border-radius: 44px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 25px 50px -12px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.dc-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.dc-phone-screen {
    position: relative;
    background: #212121;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ChatGPT Header */
.dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #212121;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dc-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-logo-icon {
    background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-logo-icon svg {
    fill: white;
}

.dc-logo-text {
    font-weight: 600;
    color: white;
}

.dc-model {
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Chat Messages */
.dc-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* User Message Bubble */
.dc-user-bubble {
    align-self: flex-end;
    max-width: 85%;
    background: #2f2f2f;
    color: white;
    border-radius: 16px 16px 4px 16px;
    line-height: 1.3;
}

/* AI Response */
.dc-ai-response {
    display: flex;
    align-items: flex-start;
}

.dc-ai-avatar {
    flex-shrink: 0;
    background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-ai-avatar svg {
    fill: white;
}

.dc-ai-message {
    flex: 1;
    min-width: 0;
}

.dc-ai-text {
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

/* Map Container */
.dc-map-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dc-map-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #e8e4dc;
}

.dc-map-pin {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 5;
}

.dc-map-pin svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Doctor Card */
.dc-doctor-card {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dc-card-content {
    display: flex;
}

/* Photo */
.dc-photo {
    object-fit: cover;
    flex-shrink: 0;
}

/* Initials (fallback for no photo) */
.dc-initials {
    background: linear-gradient(135deg, #006D77 0%, #83C5BE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

/* Doctor Info */
.dc-doctor-info {
    flex: 1;
    min-width: 0;
}

.dc-doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.dc-name {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-specialty {
    color: #006D77;
    margin-bottom: 4px;
}

.dc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.dc-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #1f2937;
}

.dc-rating svg {
    fill: #facc15;
}

.dc-badge {
    color: #006D77;
    display: flex;
    align-items: center;
    gap: 2px;
}

.dc-badge svg {
    stroke: currentColor;
    fill: none;
}

.dc-price {
    font-weight: 600;
    color: #006D77;
    white-space: nowrap;
}

.dc-location {
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Input */
.dc-input-area {
    background: #212121;
}

.dc-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2f2f2f;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dc-input-placeholder {
    flex: 1;
    color: rgba(255,255,255,0.4);
}

.dc-input-send {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-input-send svg {
    fill: rgba(255,255,255,0.5);
}

/* Interactive state (when onClick is provided) */
.dc-interactive {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dc-interactive:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.dc-interactive:active {
    transform: scale(0.98);
}
