/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #030712;       /* Deep matte black */
    --bg-secondary: #080f1d;     /* Deep navy blue */
    --card-bg: rgba(15, 23, 42, 0.65); /* Frosted dark-blue glass */
    --card-border: rgba(59, 130, 246, 0.2); /* Soft neon blue border */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;      /* Royal blue neon */
    --accent-cyan: #06b6d4;      /* Cyber cyan */
    --glow-color: rgba(59, 130, 246, 0.25);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Cyber Glowing Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation: floatOrb 12s infinite alternate ease-in-out;
}

.glow-orb-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation: floatOrb 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}

/* Container utama */
.container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2.5rem;
    z-index: 10;
    position: relative;
    align-items: start;
}

/* Glassmorphism utility card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

/* ==========================================================================
   KOLOM KIRI: STICKY PROFILE CARD
   ========================================================================== */
.profile-sidebar {
    position: sticky;
    top: 2.5rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 40px -10px var(--glow-color);
}

/* Avatar glowing circle animation */
.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-cyan));
    z-index: 1;
    opacity: 0.8;
    filter: blur(2px);
    animation: rotateGlow 6s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.profile-username {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Social Media Grid */
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    width: 100%;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon-btn:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Filter Pill Buttons */
.category-filter {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.filter-btn {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-btn .count-badge {
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.35);
}

.filter-btn.active .count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ==========================================================================
   KOLOM KANAN: LINKS/PRODUCTS SCROLL CONTENT
   ========================================================================== */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar */
.content-area::-webkit-scrollbar {
    width: 6px;
}
.content-area::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.1);
}
.content-area::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 9999px;
}
.content-area::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Cards Grid */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 25px -10px rgba(59, 130, 246, 0.25);
}

.link-card:hover::before {
    opacity: 1;
}

/* Thumbnail Card */
.card-thumb-container {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
}

.badge-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.badge-tag.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.card-category-indicator {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.card-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.link-card:hover .card-arrow {
    background: var(--accent-blue);
    color: #fff;
    border-color: transparent;
    transform: translateX(3px);
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--text-secondary);
}

/* Footer info */
.footer-tag {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 2rem;
}

.footer-tag a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.footer-tag a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   TATA LETAK KEDUA: CLASSIC SINGLE-COLUMN (LYNK.ID STYLE)
   ========================================================================== */
.layout-classic .container {
    grid-template-columns: 1fr;
    max-width: 650px;
    padding-top: 4rem;
}

.layout-classic .profile-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px -15px var(--glow-color);
}

.layout-classic .content-area {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.layout-classic .category-filter {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.layout-classic .filter-btn {
    width: auto;
    padding: 0.6rem 1.2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        max-width: 700px;
        padding: 2rem 1rem;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 0rem;
    }
    
    .content-area {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    
    .category-filter {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: auto;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .profile-sidebar {
        padding: 2rem 1rem;
        border-radius: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .link-card {
        padding: 1rem;
        border-radius: 1.2rem;
        gap: 0.85rem;
    }
    
    .card-thumb-container {
        width: 50px;
        height: 50px;
        border-radius: 0.75rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-price {
        font-size: 0.95rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }
}
