/* Link Card - Complete redesign */
.link-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

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

.link-card-wrapper {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: flex-start;
}

/* Link Icon */
.link-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Link Content */
.link-content {
    flex: 1;
    min-width: 0;
}

.link-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
}

.title-badge {
    flex-shrink: 0;
    color: #48bb78;
    font-size: 0.9rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating Stars */
.link-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.icon-small {
    font-size: 0.9rem;
    color: #e8d8b0;
}

.icon-small.checked {
    color: #fbbf24;
}

/* Description */
.link-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Site URL */
.site-url {
    display: inline-block;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
    word-break: break-all;
}

/* Sticky Sidebar */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .link-card-wrapper {
        gap: 1rem;
        padding: 1rem;
    }

    .link-icon {
        width: 56px;
        height: 56px;
    }

    .link-title {
        font-size: 1rem;
    }

    .new-search-bar {
        margin-bottom: 1.5rem;
        padding: 0.6rem 1rem;
    }

    .links {
        gap: 1rem;
    }
}

/* ==============================
   Dark Mode Support (site uses .dark)
============================== */

.dark .link-card {
    background-color: hsl(var(--dark));
    border: 1px solid hsl(var(--white) / 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.dark .link-card:hover {
    background-color: hsl(var(--dark));
    border-color: hsl(var(--white) / 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.dark .link-title {
    color: hsl(var(--white)) !important;
}

.dark .link-description {
    color: hsl(var(--white) / 0.6) !important;
}

.dark .site-url {
    color: hsl(var(--base)) !important;
}

.dark .link-icon {
    background-color: hsl(var(--white) / 0.05);
}

.dark .icon-small {
    color: hsl(var(--white) / 0.3);
}

.dark .icon-small.checked {
    color: hsl(var(--base));
}

.dark .title-badge {
    color: hsl(var(--base));
}
