/* Simulador de Perfil - Styles */

/* Base styles */
body {
    min-height: 100dvh;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Screen visibility */
.screen {
    display: none;
}
.screen.active {
    display: flex;
}

/* Bottom sheet */
.bottomsheet {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottomsheet.open {
    transform: translateY(0);
}

/* Animations */
@keyframes radar-rotate-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes radar-rotate-ccw {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes radar-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes fingerprint-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(25, 144, 230, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(25, 144, 230, 0.7));
    }
}

@keyframes progress-fill {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(5px);
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes toast-in {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
}

/* Animation classes */
.animate-radar-cw {
    animation: radar-rotate-cw 20s linear infinite;
}

.animate-radar-ccw {
    animation: radar-rotate-ccw 15s linear infinite;
}

.animate-pulse-ring {
    animation: radar-pulse 2s ease-in-out infinite;
}

.animate-fingerprint {
    animation: fingerprint-glow 2s ease-in-out infinite;
}

.animate-progress {
    animation: progress-fill 5s ease-out forwards;
}

.animate-cursor {
    animation: cursor-blink 1s step-end infinite;
}

.animate-particle {
    animation: particle-float 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

/* Terminal log entry */
.log-entry {
    opacity: 0;
    transform: translateY(10px);
}
.log-entry.visible {
    animation: slide-up 0.3s ease-out forwards;
}

/* Toast */
.toast {
    animation: toast-in 0.3s ease-out forwards;
}
.toast.hiding {
    animation: toast-out 0.3s ease-out forwards;
}

/* ========================================== */
/* iPhone Mockup & ChatGPT Conversation       */
/* ========================================== */

/* iPhone Frame */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1d 50%, #0d0d0f 100%);
    border-radius: 44px;
    padding: 12px;
    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);
}

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

.phone-screen {
    position: relative;
    background: #212121;
    border-radius: 34px;
    overflow: hidden;
    aspect-ratio: 9/16;
    min-height: 400px;
}

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

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

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

.chatgpt-logo-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.chatgpt-logo-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

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

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

/* AI Response */
.chat-response-ai {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

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

.ai-avatar svg {
    width: 16px;
    height: 16px;
    fill: white;
}

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

.ai-message-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

/* Doctor Card inside ChatGPT */
.chatgpt-doctor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chatgpt-doctor-card .card-content {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.chatgpt-doctor-card .doctor-photo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.chatgpt-doctor-card .doctor-initials {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #006D77 0%, #83C5BE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.chatgpt-doctor-card .doctor-info {
    flex: 1;
    min-width: 0;
}

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

.chatgpt-doctor-card .doctor-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatgpt-doctor-card .doctor-specialty {
    font-size: 11px;
    color: #006D77;
    margin-bottom: 4px;
}

.chatgpt-doctor-card .doctor-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chatgpt-doctor-card .rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #1f2937;
}

.chatgpt-doctor-card .rating svg {
    width: 10px;
    height: 10px;
    fill: #facc15;
}

.chatgpt-doctor-card .badge {
    font-size: 9px;
    color: #006D77;
    display: flex;
    align-items: center;
    gap: 2px;
}

.chatgpt-doctor-card .badge svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
}

.chatgpt-doctor-card .price {
    font-size: 12px;
    font-weight: 600;
    color: #006D77;
    white-space: nowrap;
}

.chatgpt-doctor-card .location {
    font-size: 10px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

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

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

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

.chatgpt-map-pin svg {
    width: 24px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.chatgpt-map-container .chatgpt-doctor-card {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Chat Input */
.chat-input-area {
    padding: 8px 12px 16px;
    background: #212121;
}

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

.chat-input-placeholder {
    flex: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

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

.chat-input-send svg {
    width: 14px;
    height: 14px;
    fill: rgba(255,255,255,0.5);
}

