/* =========================================
   FMSC Favorits — Estils del connector
   ========================================= */

/* --- Botó de favorit (cor) --- */
.fmsc-fav-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: transform 0.2s ease;
    line-height: 1;
}

.fmsc-fav-toggle:hover {
    transform: scale(1.15);
}

/* SVG del cor */
.fmsc-fav-toggle svg {
    width: 28px;
    height: 28px;
    display: block;
    transition: opacity 0.15s ease;
}

/* Per defecte: mostra el cor buit, amaga el ple */
.fmsc-heart-empty {
    opacity: 1;
}

.fmsc-heart-full {
    display: none;
}

/* Actiu: amaga el buit, mostra el ple */
.fmsc-fav-toggle.is-active .fmsc-heart-empty {
    display: none;
}

.fmsc-fav-toggle.is-active .fmsc-heart-full {
    display: block;
}

/* --- Compartir --- */
.fmsc-share-wrapper {
    margin-top: 40px;
    text-align: left;
}

.fmsc-share-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.fmsc-share-networks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fmsc-share-btn-network {
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
    padding: 0;
}

.fmsc-share-btn-network svg {
    width: 18px;
    height: 18px;
}

.fmsc-share-btn-network:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.fmsc-share-feedback {
    font-size: 0.95rem;
    font-weight: 500;
}

.fmsc-post-share {
    margin-top: 0;
}

/* --- Llista de favorits --- */
.fmsc-favorits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

.fmsc-fav-card {
    border: 1px solid #eaeaea;
    border-radius: 0;
    overflow: hidden;
    background-color: var(--white-trans-60);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.fmsc-fav-img {
    width: 25%;
    flex-shrink: 0;
}

.fmsc-fav-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fmsc-fav-content {
    width: 75%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fmsc-fav-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.fmsc-fav-title a {
    text-decoration: none;
    color: #333;
}

.fmsc-fav-time {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.fmsc-list-remove-btn {
    background: none;
    border: none;
    color: #d32f2f;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    text-align: left;
    align-self: flex-start;
}

.fmsc-list-remove-btn:hover {
    color: #b71c1c;
}

.fmsc-empty-msg,
.fmsc-error-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #555;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .fmsc-favorits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fmsc-favorits-list {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .fmsc-fav-card {
        flex-direction: row;
    }
    .fmsc-fav-img {
        width: 30%;
    }
    .fmsc-fav-content {
        width: 70%;
        padding: 15px;
    }
    .fmsc-fav-title {
        font-size: 1.1rem;
    }
    .fmsc-fav-time {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .fmsc-list-remove-btn {
        font-size: 0.85rem;
    }
}
