/* Hero Section do WhatsApp - Mockups e Estilização */

/* ============================================================================ */
/* MOCKUP DA SIDEBAR REALISTA */
/* ============================================================================ */

.sidebar-mockup-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.sidebar-mockup {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid #475569;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 300px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Header da Sidebar */
.sidebar-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid #475569;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* User Info Section */
.sidebar-user-info {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #475569;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #60a5fa;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

.user-email {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.2;
}

/* Menu Items */
.sidebar-menu {
    padding: 0.5rem 0;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.modern-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #cbd5e1;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.modern-nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-left-color: #3b82f6;
}

.modern-nav-icon {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-text {
    font-weight: 500;
    flex: 1;
}

/* Notification Badge */
.notification-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Lock Icon for Premium Features */
.lock-icon {
    color: #fbbf24;
    font-size: 0.7rem;
}

/* Beta Badge for Financial System */
.financial-text-container {
    position: relative;
    display: flex;
    align-items: center;
}

.beta-badge {
    position: absolute;
    top: -8px;
    left: -4px;
    background: #dc2626;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    line-height: 1;
    z-index: 10;
}

/* Destaque especial para "Meu Link" */
.meu-link-highlight {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 10px;
    animation: pulseGlow 2s infinite;
    position: relative;
    overflow: visible;
    border-left-color: #10b981 !important;
    margin: 0.25rem 0.5rem;
}

.meu-link-highlight:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: scale(1.02);
    color: white !important;
}

.meu-link-highlight .modern-nav-icon {
    color: white !important;
}

.meu-link-highlight .sidebar-text {
    color: white !important;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.meu-link-highlight:hover .copy-tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
}

/* ============================================================================ */
/* MOCKUP DO CELULAR COM WHATSAPP */
/* ============================================================================ */

.phone-whatsapp-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.phone-whatsapp-device {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.phone-whatsapp-device:hover {
    transform: translateY(-5px);
}

.phone-whatsapp-device::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-whatsapp-screen {
    width: 100%;
    height: 100%;
    background: #e5ddd5;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header do WhatsApp */
.whatsapp-header {
    background: #075e54;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.whatsapp-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-weight: 600;
    font-size: 1rem;
}

.contact-status {
    font-size: 0.75rem;
    color: #b7d4d1;
}

.whatsapp-actions {
    display: flex;
    gap: 1rem;
    font-size: 1.1rem;
}

.whatsapp-actions i {
    cursor: pointer;
    transition: color 0.2s ease;
}

.whatsapp-actions i:hover {
    color: #b7d4d1;
}

/* Mensagens do WhatsApp */
.whatsapp-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: linear-gradient(to bottom, #e5ddd5, #d9cfc0);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: slideInMessage 0.3s ease;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    position: relative;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.received .message-content {
    background: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message.sent .message-content {
    background: #dcf8c6;
    color: #333;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.25rem;
    text-align: right;
}

.message.received .message-time {
    text-align: left;
}

/* Preview do Link no WhatsApp */
.link-preview {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.link-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.link-url {
    font-size: 0.75rem;
    color: #666;
    font-family: monospace;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.link-description {
    font-size: 0.8rem;
    color: #555;
}

/* Input do WhatsApp */
.whatsapp-input {
    background: #f0f0f0;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-field {
    flex: 1;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
}

.send-button {
    background: #25d366;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.send-button:hover {
    background: #20c55a;
}

/* Animações */
@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================ */
/* MELHORIAS ADICIONAIS DO MOCKUP DA SIDEBAR */
/* ============================================================================ */

/* Scrollbar Personalizada */
.sidebar-menu {
    max-height: 400px;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Efeitos de transição mais suaves */
.modern-nav-item {
    overflow: hidden;
}

.modern-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.modern-nav-item:hover::before {
    left: 100%;
}

.modern-nav-item > * {
    position: relative;
    z-index: 2;
}

/* Sombra interna para profundidade */
.sidebar-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    border-radius: 16px;
}

/* ============================================================================ */
/* RESPONSIVIDADE */
/* ============================================================================ */

@media (max-width: 768px) {
    .sidebar-mockup {
        width: 280px;
    }
    
    .phone-whatsapp-device {
        width: 280px;
        height: 560px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-content {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .sidebar-text {
        font-size: 0.8rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-email {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .sidebar-mockup {
        width: 260px;
    }
    
    .phone-whatsapp-device {
        width: 260px;
        height: 520px;
    }
    
    .whatsapp-messages {
        padding: 0.75rem;
    }
    
    .modern-nav-item {
        padding: 0.6rem 0.8rem;
    }
    
    .sidebar-text {
        font-size: 0.75rem;
    }
}

/* ============================================================================ */
/* ANIMAÇÕES INTERATIVAS */
/* ============================================================================ */

/* Efeito de clique no Meu Link */
.meu-link-highlight.clicked {
    animation: clickSuccess 0.6s ease;
}

@keyframes clickSuccess {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.95);
        background: linear-gradient(135deg, #059669, #047857);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animação para mostrar que o link foi copiado */
.link-copied-animation {
    animation: linkCopied 1s ease;
}

@keyframes linkCopied {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}