/* ==================== PORTFOLIO SECTION ==================== */

.hi-portfolio-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Portfolio with URL */
.hi-portfolio-has-url {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hi-portfolio-url-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    flex: 1;
}

.hi-portfolio-url-display svg {
    flex-shrink: 0;
    color: rgba(56, 189, 248, 0.8);
}

.hi-portfolio-url-display span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.95);
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hi-portfolio-visit-btn,
.hi-portfolio-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.hi-portfolio-visit-btn {
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}

.hi-portfolio-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.hi-portfolio-edit-btn {
    background: rgba(148, 163, 184, 0.1);
    color: rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hi-portfolio-edit-btn:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

/* Portfolio Empty State with AI Animation */
.hi-portfolio-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
}

.hi-ai-agent-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.hi-agent-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0.3));
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 40px rgba(168, 85, 247, 0.4),
        0 0 80px rgba(56, 189, 248, 0.2),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
}

.hi-agent-orb::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(56, 189, 248, 0.6));
    animation: rotate 4s linear infinite;
}

.hi-agent-orb::after {
    content: '✨';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

.hi-agent-particles {
    position: absolute;
    inset: 0;
}

.hi-agent-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    box-shadow: 0 0 20px currentColor;
    animation: orbit 3s linear infinite;
}

.hi-agent-particles span:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.hi-agent-particles span:nth-child(2) {
    top: 25%;
    right: 0;
    animation-delay: 0.6s;
}

.hi-agent-particles span:nth-child(3) {
    bottom: 0;
    right: 25%;
    animation-delay: 1.2s;
}

.hi-agent-particles span:nth-child(4) {
    bottom: 25%;
    left: 0;
    animation-delay: 1.8s;
}

.hi-agent-particles span:nth-child(5) {
    top: 50%;
    left: 0;
    animation-delay: 2.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(60px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) translateX(60px) rotate(-360deg);
        opacity: 0;
    }
}

.hi-portfolio-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hi-portfolio-empty p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 24px;
}

.hi-portfolio-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.hi-btn--gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
    width: 100%;
}

.hi-btn--gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.hi-btn--gradient:active {
    transform: translateY(0);
}

.hi-btn--gradient svg {
    width: 18px;
    height: 18px;
}

.hi-btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.05);
    color: rgba(226, 232, 240, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.hi-btn--secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
}

.hi-btn--secondary svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .hi-portfolio-empty {
        padding: 32px 20px;
    }
    
    .hi-ai-agent-animation {
        width: 70px;
        height: 70px;
    }
    
    .hi-agent-orb::after {
        font-size: 24px;
    }
    
    .hi-portfolio-empty h3 {
        font-size: 16px;
    }
    
    .hi-portfolio-empty p {
        font-size: 12px;
    }
}
