/* Link Tree Widget - MyLekha Style */

.sp-link-tree-widget {
    --primary: #22c59e;
    --card-bg: #030a09;
    --card-border: #143530;
    --bg-gradient: radial-gradient(circle at top right, #1a0b2e 0%, #000000 100%);
    --btn-bg: #37a486;
    --btn-text: #ffffff;
    --btn-sub: rgba(255, 255, 255, 0.8);
    --text-main: #ffffff;
    --text-desc: #b0b0b0;

    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
    overflow: hidden;
    perspective: 1200px;
    width: 100%;
}

.sp-link-tree-widget.light-mode {
    --primary: #209a80;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    --btn-bg: #37a486;
    --btn-text: #ffffff;
    --btn-sub: #666666;
    --text-main: #000000;
    --text-desc: #666666;
}

.sp-link-tree-widget #canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--bg-gradient);
    transition: background 0.5s ease;
}

.sp-link-tree-widget .card {
    background-color: var(--card-bg);
    background-image:
        linear-gradient(rgba(32, 154, 128, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(32, 154, 128, 0.08) 1.5px, transparent 1.5px);
    background-size: 45px 45px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: none !important;
    width: 90%;
    max-width: 400px;
    padding: 3.5rem 1.25rem 1.5rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
    transform: translateZ(0);
    opacity: 0;
    animation: floatUpLinkTree 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: background-color 0.3s, border-color 0.3s;
}

@keyframes floatUpLinkTree {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sp-link-tree-widget .kh-font {
    font-family: 'Kantumruy Pro', 'Noto Sans Khmer', sans-serif;
}









.sp-link-tree-widget .profile-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 5px;
    position: relative;
    transform: translateZ(30px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-link-tree-widget .profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid var(--primary);
    padding: 6px;
    background: transparent;
    box-shadow: 0 0 15px rgba(34, 197, 158, 0.2) !important;
}

.sp-link-tree-widget h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    transform: translateZ(20px);
    color: #000000;
}

.sp-link-tree-widget .subtitle {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    transform: translateZ(20px);
}

.sp-link-tree-widget .desc {
    color: var(--text-desc);
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 0 10px;
    transform: translateZ(20px);
}

.sp-link-tree-widget .link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateZ(40px);
}

.sp-link-tree-widget .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 60px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sp-link-tree-widget:not(.light-mode) .btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.sp-link-tree-widget .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: none !important;
}

.sp-link-tree-widget .btn-left {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.sp-link-tree-widget .btn-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.sp-link-tree-widget .btn-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
}

.sp-link-tree-widget .btn-sub {
    font-size: 0.7rem;
    color: #444444;
    font-weight: 400;
}

.sp-link-tree-widget:not(.light-mode) .btn-sub {
    color: rgba(255, 255, 255, 0.6);
}

.sp-link-tree-widget .btn-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-link-tree-widget .btn-arrow {
    color: #ccc;
    font-size: 0.9rem;
    transition: 0.3s;
}

.sp-link-tree-widget .btn:hover .btn-arrow {
    color: var(--btn-text);
    transform: translateX(5px);
}

.sp-link-tree-widget .logo-section {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
    transform: translateZ(40px);
}

.sp-link-tree-widget .logo-item {
    width: calc(50% - 7px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sp-link-tree-widget .logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid var(--primary);
    background: #ffffff;
    padding: 8px;
}

.sp-link-tree-widget .logo-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s;
}

.sp-link-tree-widget .download-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-desc);
    margin-top: 5px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .sp-link-tree-widget {
        perspective: none;
    }

    .sp-link-tree-widget .card {
        transform: none !important;
        width: 92%;
        border-radius: var(--borderRadiusLg);
    }
}