/**
 * Anke Favorites Styles
 */

/* お気に入りボタン */
.anke-favorite-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #ff6b35;
    border-radius: 20px;
    color: #ff6b35;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.anke-favorite-button:hover {
    background: #ff6b35;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.anke-favorite-button.favorited {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

.anke-favorite-button.favorited:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

.anke-favorite-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.anke-favorite-button .count {
    font-size: 12px;
    opacity: 0.8;
}

/* お気に入り一覧 */
.anke-favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.favorite-link {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.favorite-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.favorite-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-content {
    flex: 1;
}

.favorite-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.favorite-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.favorite-count {
    color: #ff6b35;
    font-weight: bold;
}

/* ランキング */
.anke-favorites-ranking {
    margin: 30px 0;
}

.anke-favorites-ranking h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b35;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: ranking;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.ranking-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.ranking-item.rank-1 .rank-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #fff;
    font-size: 24px;
}

.ranking-item.rank-2 .rank-number {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #fff;
    font-size: 22px;
}

.ranking-item.rank-3 .rank-number {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    color: #fff;
    font-size: 20px;
}

.ranking-link {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.ranking-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.ranking-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-content {
    flex: 1;
}

.ranking-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.ranking-meta {
    font-size: 14px;
    color: #666;
}

.ranking-meta .favorite-count {
    color: #ff6b35;
    font-weight: bold;
    font-size: 16px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .favorite-item,
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .favorite-link,
    .ranking-link {
        width: 100%;
    }
    
    .favorite-thumbnail,
    .ranking-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .anke-favorite-button {
        width: 100%;
        justify-content: center;
    }
}
