.ffl-container {
    margin: 20px 0;
}

.ffl-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    list-style: none;
    padding: 0;
}

@media screen and (max-width: 768px) {
    .ffl-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .ffl-links {
        grid-template-columns: 1fr;
    }
}

.ffl-link-item {
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid var(--farallon-border-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.ffl-link-item:hover {
    background-color: rgba(234, 243, 255, 0.5);
    background-image: linear-gradient(12deg, #fff 50%, hsla(0, 0%, 100%, 0));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .ffl-link-item:hover {
    background: linear-gradient(180deg, #1e1e1e, #121212);
}

.ffl-link-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ffl-link-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid var(--farallon-border-color);
}

.ffl-link-info {
    flex: 1;
}

.ffl-link-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--farallon-text-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.ffl-link-name:hover {
    color: var(--farallon-hover-color);
}

.ffl-link-description {
    font-size: 12px;
    color: var(--farallon-text-gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.ffl-rss-feed {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--farallon-border-color-light);
}

.ffl-rss-title {
    font-size: 12px;
    color: var(--farallon-text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.ffl-rss-title svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    fill: var(--farallon-main-color);
}

.ffl-rss-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ffl-rss-item {
    font-size: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
}

.ffl-rss-item:before {
    content: "•";
    color: var(--farallon-main-color);
    margin-right: 6px;
}

.ffl-rss-item a {
    color: var(--farallon-text-light);
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ffl-rss-item a:hover {
    color: var(--farallon-hover-color);
    text-decoration: underline;
}

.ffl-rss-date {
    font-size: 11px;
    color: var(--farallon-text-gray-lightest);
    margin-left: 8px;
}

.ffl-loading {
    text-align: center;
    padding: 40px;
    color: var(--farallon-text-gray);
}

.ffl-link-item.ffl-fade-in {
    animation: fflFadeIn 0.5s ease-in;
}

@keyframes fflFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
